.tne-header-icons,
.tne-header-icons * {
    box-sizing: border-box;
}

.tne-header-icons {
    --tne-hi-transition: 260ms ease;
    position: relative;
    direction: rtl;
}

.tne-hi-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.tne-hi-item {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform var(--tne-hi-transition);
}

.tne-hi-item:hover {
    transform: translateY(-2px);
}

.tne-hi-icon-circle {
    position: relative;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color var(--tne-hi-transition), background-color var(--tne-hi-transition), border-color var(--tne-hi-transition), box-shadow var(--tne-hi-transition);
}

.tne-hi-icon-circle svg {
    display: block;
    fill: currentColor;
}

.tne-hi-label {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}

.tne-hi-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 5px 14px rgba(0,0,0,.15);
}

.tne-hi-badge[aria-hidden="true"],
.tne-hi-badge:empty {
    display: none;
}

.tne-hi-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 30, .42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 99997;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--tne-hi-transition);
}

.tne-header-icons.is-open .tne-hi-overlay {
    opacity: 1;
    pointer-events: auto;
}

.tne-hi-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow: hidden;
    transform: translateX(-105%);
    transition: transform var(--tne-hi-transition);
}

.tne-hi-side-left .tne-hi-drawer {
    left: 0;
    right: auto;
    transform: translateX(-105%);
}

.tne-hi-side-right .tne-hi-drawer {
    right: 0;
    left: auto;
    transform: translateX(105%);
}

.tne-hi-drawer.is-active {
    transform: translateX(0);
}

.tne-hi-drawer-head {
    min-height: 72px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(2, 6, 23, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 0 0 auto;
}

.tne-hi-drawer-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
}

.tne-hi-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(2, 6, 23, .1);
    border-radius: 999px;
    background: #fff;
    color: #001832;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tne-hi-transition);
}

.tne-hi-close:hover {
    background: #001832;
    color: #fff;
}

.tne-hi-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px;
}

.tne-hi-loading {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667085;
}

.tne-hi-empty {
    padding: 28px 18px;
    border-radius: 16px;
    background: #f8fafc;
    color: #667085;
    text-align: center;
}

.tne-hi-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tne-hi-cart-item {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
}

.tne-hi-cart-thumb {
    width: 78px;
    height: 78px;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(2, 6, 23, .06);
}

.tne-hi-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tne-hi-cart-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tne-hi-cart-item-title {
    text-decoration: none;
    font-weight: 700;
    line-height: 1.7;
}

.tne-hi-cart-price {
    font-weight: 800;
    color: #001832;
    font-size: 13px;
}

.tne-hi-cart-qty-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: #fff;
    border: 1px solid rgba(2, 6, 23, .08);
    border-radius: 999px;
    padding: 4px;
}

.tne-hi-cart-qty {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: #eef2f7;
    color: #001832;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tne-hi-cart-qty svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.tne-hi-cart-qty:hover {
    background: #001832;
    color: #fff;
}

.tne-hi-cart-qty-number {
    min-width: 24px;
    text-align: center;
    font-weight: 800;
}

.tne-hi-cart-footer,
.tne-hi-wishlist-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(2, 6, 23, .08);
}

.tne-hi-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #001832;
}

.tne-hi-cart-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tne-hi-button {
    min-height: 44px;
    border-radius: 12px;
    padding: 11px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid rgba(2, 6, 23, .12);
    transition: all var(--tne-hi-transition);
}

.tne-hi-button-secondary {
    color: #001832;
    background: #fff;
}

.tne-hi-button-secondary:hover {
    color: #001832;
    background: #f8fafc;
}

.tne-hi-button-primary:hover {
    color: #fff;
}

.tne-hi-wishlist-shell {
    border-radius: 16px;
    padding: 12px;
}

.tne-hi-wishlist-shell .wishlist-title,
.tne-hi-wishlist-shell .shop_table th,
.tne-hi-wishlist-shell .product-stock-status,
.tne-hi-wishlist-shell .product-add-to-cart {
    font-size: 13px;
}

.tne-hi-wishlist-shell table {
    width: 100%;
}

.tne-hi-wishlist-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    margin-bottom: 10px;
}

.tne-hi-wishlist-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(2, 6, 23, .08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tne-hi-wishlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tne-hi-account-user {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.tne-hi-account-user img {
    width: 56px;
    height: 56px;
    border-radius: 999px;
}

.tne-hi-account-user span {
    display: block;
    color: #667085;
    font-size: 12px;
    margin-top: 3px;
}

.tne-hi-account-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tne-hi-account-menu a {
    min-height: 44px;
    border-radius: 14px;
    padding: 12px 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all var(--tne-hi-transition);
}

.tne-hi-account-menu a:hover {
    transform: translateX(-3px);
}

.tne-hi-login-form .woocommerce-form-login,
.tne-hi-login-form .woocommerce-form-register {
    border: 0;
    padding: 0;
    margin: 0;
}

.tne-hi-login-form input.input-text,
.tne-hi-login-form input[type="text"],
.tne-hi-login-form input[type="password"],
.tne-hi-login-form input[type="email"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(2, 6, 23, .12);
    border-radius: 12px;
    padding: 8px 12px;
}

.tne-hi-login-form button.button,
.tne-hi-login-form .woocommerce-button {
    min-height: 44px;
    border-radius: 12px;
}

@media (max-width: 767px) {
    .tne-hi-label {
        font-size: 11px;
    }

    .tne-hi-drawer-head {
        min-height: 64px;
        padding: 16px;
    }

    .tne-hi-drawer-body {
        padding: 14px;
    }

    .tne-hi-cart-item {
        grid-template-columns: 68px 1fr;
        padding: 10px;
    }

    .tne-hi-cart-thumb {
        width: 68px;
        height: 68px;
    }

    .tne-hi-cart-buttons {
        grid-template-columns: 1fr;
    }
}

html.tne-hi-no-scroll {
    overflow: hidden;
}
