/* ── Enquiry drawer + header count badge ─────────────────────────────
   See hunza-quote-drawer.php. Tokens mirror the child header (Helvetica
   Neue, the mono greys, #d4622a for LuxR). Selectors are qualified enough
   to beat Flatsome's bare-element rules (h2, button, .product_list_widget). */

/* ── Badge on the two cart links in the header ────────────────────── */
.site-header .header-actions a.hunza-cart-link,
.mobile-account-icons a.hunza-cart-link {
    position: relative;
}
.hunza-cart-count {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #d92d20;
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}
.hunza-cart-count[hidden] {
    display: none;
}

/* ── Drawer shell ─────────────────────────────────────────────────── */
.hunza-qd {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: block;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #232323;
}
.hunza-qd[hidden] {
    display: none;
}
.hunza-qd__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(35, 35, 35, .45);
    opacity: 0;
    transition: opacity .25s ease;
}
.hunza-qd__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, .12);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.25, .46, .45, .94);
    outline: none;
}
.hunza-qd.is-open .hunza-qd__backdrop {
    opacity: 1;
}
.hunza-qd.is-open .hunza-qd__panel {
    transform: none;
}
html.hunza-qd-lock,
html.hunza-qd-lock body {
    overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
    .hunza-qd__backdrop,
    .hunza-qd__panel {
        transition: none;
    }
}

/* ── Head ─────────────────────────────────────────────────────────── */
.hunza-qd__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #eaeaea;
}
.hunza-qd h2.hunza-qd__title {
    margin: 0;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1a1a1a;
}
.hunza-qd__count {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}
.hunza-qd .hunza-qd__panel button.hunza-qd__close {
    width: 36px !important;
    height: 36px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #eaeaea !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #555;
    font-size: 20px;
    line-height: 1 !important;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.hunza-qd .hunza-qd__panel button.hunza-qd__close:hover,
.hunza-qd .hunza-qd__panel button.hunza-qd__close:focus-visible {
    border-color: #232323 !important;
    background: #f9f9f9 !important;
    color: #232323;
}

/* Confirmation line, only when the drawer opened because of an add */
.hunza-qd__added {
    display: none;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 22px;
    background: #f4f8f4;
    border-bottom: 1px solid #e2ede2;
    color: #1f6a34;
    font-size: 13px;
    font-weight: 700;
}
.hunza-qd.is-added .hunza-qd__added {
    display: flex;
}
/* ...but not over an empty list (the item just added was removed again) */
.hunza-qd.is-empty .hunza-qd__added {
    display: none;
}
.hunza-qd__tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1f6a34;
    color: #fff;
    font-size: 12px;
}

/* ── Body: the WooCommerce mini-cart list ────────────────────────── */
.hunza-qd__body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 22px;
}
.hunza-qd .woocommerce-mini-cart,
.hunza-qd .product_list_widget {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hunza-qd .product_list_widget li,
.hunza-qd .woocommerce-mini-cart li.mini_cart_item {
    position: relative;
    display: block;
    margin: 0;
    padding: 16px 0 16px 112px;
    min-height: 96px;
    border-bottom: 1px solid #eaeaea;
    font-size: 13px;
    line-height: 1.45;
}
.hunza-qd .product_list_widget li:last-child {
    border-bottom: 0;
}
.hunza-qd .product_list_widget li.is-removing {
    opacity: .4;
    pointer-events: none;
}
.hunza-qd .product_list_widget li img {
    position: absolute;
    left: 36px;
    top: 16px;
    width: 64px !important;
    height: 64px;
    max-width: none;
    margin: 0;
    float: none;
    object-fit: contain;
    border: 1px solid #eaeaea;
    border-radius: 2px;
    background: #f9f9f9;
}
.hunza-qd .product_list_widget li > a:not(.remove) {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}
.hunza-qd .product_list_widget li > a:not(.remove):hover {
    color: #555;
}
/* The remove control sits BEFORE the product, like the cart page's own. */
.hunza-qd .product_list_widget li a.remove {
    position: absolute;
    left: 0;
    top: 36px;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 1px solid #eaeaea;
    border-radius: 50%;
    background: transparent;
    color: #888 !important;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.hunza-qd .product_list_widget li a.remove:hover,
.hunza-qd .product_list_widget li a.remove:focus-visible {
    border-color: #232323;
    color: #232323 !important;
    background: transparent;
}
.hunza-qd .product_list_widget dl.variation {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    margin: 6px 0 0;
    font-size: 12px;
    color: #888;
}
.hunza-qd .product_list_widget dl.variation dt,
.hunza-qd .product_list_widget dl.variation dd {
    margin: 0;
    padding: 0;
    font-weight: 400;
    float: none;
    clear: none;
}
.hunza-qd .product_list_widget dl.variation dt {
    color: #aaa;
}
.hunza-qd .product_list_widget dl.variation dd p {
    margin: 0;
    color: #555;
}
/* Quantity stepper + (for price accounts) the line total */
.hunza-qd__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}
.hunza-qd__line.is-busy {
    opacity: .55;
    pointer-events: none;
}
.hunza-qd__qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #eaeaea;
    border-radius: 2px;
}
.hunza-qd .hunza-qd__panel button.hunza-qd__qtybtn {
    width: 30px !important;
    height: 30px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #555;
    font-size: 16px;
    line-height: 1 !important;
    cursor: pointer;
}
.hunza-qd .hunza-qd__panel button.hunza-qd__qtybtn:hover {
    background: #f9f9f9 !important;
    color: #232323;
}
.hunza-qd .hunza-qd__panel button.hunza-qd__qtybtn[disabled] {
    color: #d4d4d4;
    cursor: default;
}
.hunza-qd__qtyval {
    min-width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    border-left: 1px solid #eaeaea;
    border-right: 1px solid #eaeaea;
    line-height: 30px;
}
.hunza-qd__lineprice {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}
.hunza-qd .woocommerce-mini-cart__empty-message {
    display: none; /* the drawer prints its own */
}
.hunza-qd__empty {
    display: none;
    margin: 0;
    padding: 40px 0;
    text-align: center;
    color: #888;
    font-size: 13px;
}
.hunza-qd.is-empty .hunza-qd__empty {
    display: block;
}

/* ── Foot ─────────────────────────────────────────────────────────── */
.hunza-qd__foot {
    padding: 16px 22px 22px;
    border-top: 1px solid #eaeaea;
    background: #fff;
}
.hunza-qd__subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}
.hunza-qd__subtotal:empty {
    display: none;
}
.hunza-qd a.hunza-qd__view,
.hunza-qd a.hunza-qd__browse {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 2px;
    background: #1a1a1a;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s;
}
.hunza-qd a.hunza-qd__view:hover,
.hunza-qd a.hunza-qd__browse:hover {
    background: #2f2f2f;
    color: #fff;
}
/* BRANDING: LUXR */
.brand-luxr .hunza-qd a.hunza-qd__view,
.brand-luxr .hunza-qd a.hunza-qd__browse {
    background: #d4622a;
}
.brand-luxr .hunza-qd a.hunza-qd__view:hover,
.brand-luxr .hunza-qd a.hunza-qd__browse:hover {
    background: #a64c1f;
}
.hunza-qd a.hunza-qd__browse {
    display: none;
}
.hunza-qd.is-empty a.hunza-qd__view,
.hunza-qd.is-empty .hunza-qd__subtotal {
    display: none;
}
.hunza-qd.is-empty a.hunza-qd__browse {
    display: flex;
}
.hunza-qd .hunza-qd__panel button.hunza-qd__continue {
    display: block !important;
    width: 100%;
    min-height: 0 !important;
    margin: 10px 0 0 !important;
    padding: 6px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: #555;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: none;
    text-decoration: underline;
    line-height: 1.4 !important;
    cursor: pointer;
}
.hunza-qd .hunza-qd__panel button.hunza-qd__continue:hover {
    color: #232323;
}

/* ── Side tab on the right edge of every page ────────────────────── */
body button.hunza-qd-tab {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 10040;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 40px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 14px 0 12px !important;
    border: 0 !important;
    border-radius: 2px 0 0 2px !important;
    background: #1a1a1a !important;
    box-shadow: -4px 0 16px rgba(0, 0, 0, .14) !important;
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1 !important;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform .3s cubic-bezier(.25, .46, .45, .94), background .2s;
}
body button.hunza-qd-tab:hover,
body button.hunza-qd-tab:focus-visible {
    background: #2f2f2f !important;
    color: #fff;
}
/* BRANDING: LUXR */
body.brand-luxr button.hunza-qd-tab {
    background: #d4622a !important;
}
body.brand-luxr button.hunza-qd-tab:hover,
body.brand-luxr button.hunza-qd-tab:focus-visible {
    background: #a64c1f !important;
}
.hunza-qd-tab__arrow {
    display: flex;
}
.hunza-qd-tab__arrow svg {
    display: block;
    width: 16px;
    height: 16px;
}
.hunza-qd-tab__label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.hunza-qd-tab__count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #d92d20;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.hunza-qd-tab__count[hidden] {
    display: none;
}
/* Tucked away while the drawer is open, and while the mobile menu is */
html.hunza-qd-lock button.hunza-qd-tab,
body.nav-open button.hunza-qd-tab {
    transform: translate(100%, -50%);
}
@media (prefers-reduced-motion: reduce) {
    body button.hunza-qd-tab {
        transition: none;
    }
}

@media (max-width: 480px) {
    .hunza-qd__head,
    .hunza-qd__added,
    .hunza-qd__body,
    .hunza-qd__foot {
        padding-left: 16px;
        padding-right: 16px;
    }
}
