.evo-mobile-dock,
.evo-mobile-departments {
    display: none;
}

.orders-page .order-item-row,
.checkout-summary .order-item-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 10px 0;
}

.orders-page .order-product-image,
.checkout-summary .order-product-image {
    width: clamp(42px, 12vw, 64px);
    height: auto;
    aspect-ratio: 1;
}

.order-item-amount {
    font-size: .92rem;
    white-space: nowrap;
}

.orders-page .order-card-head,
.orders-page .order-card-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    gap: 6px 12px;
}

.orders-page .order-card-head {
    margin-bottom: 5px;
}

.orders-page .order-card-actions:not(:has(.btn)),
.order-action-status:empty,
#checkoutPaymentStatus:empty {
    display: none;
}

.order-action-status:not(:empty) {
    margin-top: .75rem;
}

.checkout-summary .order-item-row + .summary-row,
.checkout-summary .order-item-row + .checkout-coupon-note {
    margin-top: 8px;
}

.checkout-payment-feedback:has(#checkoutPaymentStatus:not(:empty)) {
    margin-top: 12px;
    padding: 12px;
    background: #edf2f9;
    border-radius: 10px;
}

.order-support-details summary {
    cursor: pointer;
    font-weight: 650;
    padding: 10px 0;
}

.order-support-form {
    display: grid;
    gap: 8px;
}

.order-support-form .btn {
    justify-self: start;
}

.order-support-tickets li {
    padding: 8px 0;
    border-bottom: 1px solid #e7ebef;
    overflow-wrap: anywhere;
}

@media (min-width: 992px) {
    body[data-theme="bihar"] .site-header .header-container {
        gap: clamp(16px, 1.65vw, 30px);
        min-height: 76px;
        padding-block: 10px;
    }

    body[data-theme="bihar"] .site-header .evo-desktop-mark {
        flex: 0 0 122px;
        align-items: center;
        justify-content: center;
        width: 122px;
        height: 42px;
        margin: 0;
        padding: 0;
        border-radius: 12px;
    }

    .evo-desktop-mark img {
        display: block;
        width: 122px;
        height: 42px;
    }

    body[data-theme="bihar"] .site-header .header-utilities .header-search {
        min-height: 46px;
        border-radius: 13px;
        background: #f6f8fc;
        border-color: #dce3ee;
    }

    .evo-desktop-mark:focus-visible,
    body[data-theme="bihar"] .site-header .header-search:focus-within {
        outline: 2px solid #426ba5;
        outline-offset: 2px;
    }
}

@media (max-width: 991.98px) {
    body[data-theme="bihar"] .site-header {
        background: #fff !important;
        padding-block: 0;
    }

    body[data-theme="bihar"] .site-header .header-container {
        box-sizing: border-box;
        width: 100%;
    }

    .evo-mobile-header {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        width: 100%;
        min-width: 0;
        padding: 9px 12px;
    }

    body[data-theme="bihar"] .evo-mobile-header > .mobile-brand {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        background: transparent;
    }

    .evo-mobile-header > .mobile-brand img {
        display: block;
    }

    body[data-theme="bihar"] .evo-mobile-header .evo-mobile-search {
        box-sizing: border-box;
        position: relative;
        display: flex;
        align-items: center;
        gap: 0;
        min-width: 0;
        width: 100%;
        max-width: none;
        height: 48px;
        margin: 0;
        padding: 0 12px 0 0;
        border: 1px solid #dce3ee;
        border-radius: 14px;
        background: #f6f8fc;
    }

    .evo-mobile-search button {
        display: grid;
        flex: 0 0 44px;
        min-height: 44px;
        place-items: center;
        border: 0;
        border-radius: 16px;
        background: transparent;
        color: #203452;
    }

    .evo-mobile-search button svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
    }

    body[data-theme="bihar"] .evo-mobile-search #headerSearchInputMobile {
        flex: 1 1 0;
        min-width: 0;
        width: 0;
        padding: 0;
        font-size: 16px;
    }

    body[data-theme="bihar"] .evo-mobile-search:focus-within {
        outline: 2px solid #426ba5;
        outline-offset: 2px;
    }

    body[data-page="home"] main > .store-category-nav,
    body[data-page="shop"] main > .store-category-nav {
        display: none;
    }

    .evo-mobile-departments {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 0 12px;
        overflow-x: auto;
        scrollbar-width: none;
        background: #fdf6e9;
    }

    .evo-mobile-departments a {
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        min-height: 32px;
        padding: 2px 10px;
        border-block: 3px solid transparent;
        border-radius: 12px;
        color: #203452;
        font-size: 12px;
        font-weight: 650;
    }

    .evo-mobile-departments a[aria-current] {
        background: #e8eef8 padding-box;
    }

    .evo-mobile-dock {
        position: fixed;
        z-index: 1035;
        bottom: calc(8px + env(safe-area-inset-bottom));
        left: 12px;
        right: 12px;
        display: flex;
        gap: 8px;
        align-items: center;
        width: auto;
        max-width: 540px;
        margin-inline: auto;
        pointer-events: none;
    }

    .evo-mobile-dock > * {
        pointer-events: auto;
    }

    .evo-mobile-dock .mobile-bottom-nav {
        position: static;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: center;
        flex: 1;
        min-width: 0;
        height: 50px;
        padding: 0 4px;
        border: 1px solid #e0e5ee;
        border-radius: 32px;
        background: #fff;
        box-shadow: 0 4px 18px #182b4f1c;
    }

    .evo-mobile-dock .mobile-bottom-nav a {
        min-height: 44px;
        padding: 0;
        position: relative;
        border-radius: 24px;
        color: #536478;
    }

    .evo-mobile-dock .mobile-bottom-nav svg {
        display: block;
        width: 20px;
        height: 20px;
    }

    .evo-mobile-dock .mobile-bottom-nav .active {
        background: linear-gradient(145deg, #f1f6ff, #e1eafb);
        color: #214d9f;
    }

    .evo-mobile-dock .mobile-bottom-nav .active::after {
        content: none;
    }

    .evo-mobile-dock .mobile-bottom-nav .mobile-bottom-nav-icon-wrap {
        display: grid;
        place-items: center;
        width: 22px;
        height: 22px;
    }

    .evo-mobile-dock .mobile-bottom-nav .mobile-bottom-cart-badge {
        position: absolute;
        inset: -4px -7px auto auto;
        display: grid;
        place-items: center;
        box-sizing: border-box;
        min-width: 15px;
        height: 15px;
        padding: 0 2px;
        border: 1px solid #fff;
        background: #b52439;
        color: #fff;
        font-size: 9px;
        font-weight: 750;
        font-variant-numeric: tabular-nums;
        line-height: 1;
        white-space: nowrap;
        box-shadow: none;
    }

    body[data-theme="bihar"] .evo-mobile-dock .printing-nav-icon {
        display: grid;
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
        place-items: center;
        padding: 0;
        border: 2px solid #fff;
        border-radius: 50%;
        background: linear-gradient(135deg, #214d9f, #6246a0);
        color: #fff;
        box-shadow: 0 4px 18px #182b4f33;
    }

    .evo-mobile-dock .printing-nav-icon svg {
        width: 25px;
        height: 25px;
    }
}

/* Shared Bihar storefront colours and floating mobile navigation. */
body[data-theme="bihar"] {
    background-color: #faf7ed;
    --evo-indigo: #243c68;
}
@media (max-width: 991.98px) {
    body[data-theme="bihar"] #siteHeaderFixed,
    body[data-theme="bihar"] #siteHeaderFixed .site-header,
    body[data-theme="bihar"] #siteHeaderFixed .evo-mobile-departments {
        background: #fff !important;
        box-shadow: none;
        border: 0;
        backdrop-filter: none;
    }
    body[data-theme="bihar"] .evo-mobile-dock {
        background: transparent !important;
        box-shadow: none;
        border: 0;
        backdrop-filter: none;
    }
    #siteHeaderFixed { pointer-events: none; }
    #siteHeaderFixed :is(a, button, input, form, .evo-mobile-departments) { pointer-events: auto; }
    body[data-theme="bihar"] .evo-mobile-departments a {
        background: #fffdf6;
        color: #243c68;
        border: 1px solid #e5dfd0;
        border-radius: 999px;
        margin-block: 3px;
    }
    body[data-theme="bihar"] .evo-mobile-departments a[aria-current],
    body[data-theme="bihar"] .evo-mobile-dock .mobile-bottom-nav .active { background: #f6ead1; color: #243c68; }
    body[data-theme="bihar"] .evo-mobile-dock .printing-nav-icon { background: #243c68; }
    body[data-nav-direction="down"] #siteHeaderFixed:not(:focus-within) { transform: translateY(-105%); }
    body[data-nav-direction="up"] .evo-mobile-dock:not(:focus-within) { transform: translateY(calc(110% + 12px + env(safe-area-inset-bottom))); }
    @media (prefers-reduced-motion: no-preference) {
        #siteHeaderFixed, .evo-mobile-dock { transition: transform .18s ease-out; }
    }
}
