.nlhw-widget-wrap {
    display: flex;
    align-items: center;
    position: relative;
    font-family: inherit;
}

.nlhw-dropdown-holder {
    position: relative;
    display: inline-flex;
    align-items: center;
    direction: rtl;
}

.nlhw-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 38px;
    min-height: 38px;
    color: #1f2937;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    transition: color .18s ease, transform .18s ease;
}

.nlhw-trigger:hover,
.nlhw-trigger:focus {
    color: #111827;
    text-decoration: none;
}

.nlhw-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nlhw-trigger-icon i,
.nlhw-trigger-icon svg {
    display: block;
}

.nlhw-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.nlhw-count {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    transform: translate(-25%, -12%);
    box-sizing: border-box;
}

.nlhw-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    z-index: 9999;
    width: 320px;
    max-width: calc(100vw - 24px);
    background: #fff;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .13);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nlhw-dropdown-left .nlhw-dropdown {
    left: 0;
}

.nlhw-dropdown-right .nlhw-dropdown {
    right: 0;
}

.nlhw-dropdown-center .nlhw-dropdown {
    left: 50%;
    transform: translate(-50%, 8px);
}

.nlhw-dropdown-holder:hover .nlhw-dropdown,
.nlhw-dropdown-holder.is-open .nlhw-dropdown,
.nlhw-dropdown-holder:focus-within .nlhw-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nlhw-dropdown-center:hover .nlhw-dropdown,
.nlhw-dropdown-center.is-open .nlhw-dropdown,
.nlhw-dropdown-center:focus-within .nlhw-dropdown {
    transform: translate(-50%, 0);
}

.nlhw-dropdown::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nlhw-dropdown-inner {
    padding: 18px;
}

.nlhw-dropdown-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.nlhw-empty-message,
.nlhw-note {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.8;
}

.nlhw-note {
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 12px;
    color: #4b5563;
}

.nlhw-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.nlhw-actions-column {
    flex-direction: column;
    align-items: stretch;
}

.nlhw-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    flex: 1;
}

.nlhw-button:hover {
    transform: translateY(-1px);
}

.nlhw-button-primary {
    background: #111827;
    color: #fff !important;
}

.nlhw-button-secondary {
    background: #f3f4f6;
    color: #111827 !important;
}

.nlhw-inline-link {
    display: block;
    margin-top: 2px;
    color: #4b5563;
    text-decoration: none;
    font-size: 12px;
    text-align: center;
}

.nlhw-inline-link:hover {
    color: #111827;
}

.nlhw-account-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.nlhw-avatar,
.nlhw-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: block;
}

.nlhw-account-head strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 14px;
}

.nlhw-account-head small {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

.nlhw-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nlhw-menu-list li {
    margin: 0;
    padding: 0;
}

.nlhw-menu-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    color: #1f2937;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #f6f7f9;
}

.nlhw-menu-list li:last-child a {
    border-bottom: 0;
}

.nlhw-menu-list a:hover {
    color: #000;
}

.nlhw-mini-cart .woocommerce-mini-cart {
    max-height: 280px;
    overflow: auto;
    margin: 0;
    padding: 0 0 2px;
}

.nlhw-mini-cart .woocommerce-mini-cart-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    position: relative;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.nlhw-mini-cart .woocommerce-mini-cart-item a:not(.remove) {
    display: contents;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.6;
}

.nlhw-mini-cart .woocommerce-mini-cart-item img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    grid-row: span 2;
}

.nlhw-mini-cart .woocommerce-mini-cart-item .quantity {
    grid-column: 2;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
}

.nlhw-mini-cart .remove {
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    color: #ef4444 !important;
    text-align: center;
    line-height: 20px;
    text-decoration: none !important;
}

.nlhw-mini-cart .woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    font-size: 14px;
}

.nlhw-mini-cart .woocommerce-mini-cart__buttons {
    display: none;
}

@media (max-width: 767px) {
    .nlhw-dropdown {
        position: fixed;
        top: auto;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        transform: translateY(8px) !important;
    }

    .nlhw-dropdown-holder:hover .nlhw-dropdown:not(.force-mobile-hover) {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nlhw-dropdown-holder.is-open .nlhw-dropdown {
        top: var(--nlhw-mobile-top, 70px);
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
}
