/* ============================================================
   Mobile App PWA Pro - WooCommerce styles
============================================================ */

/* Mini Cart Drawer */
.mapp-mini-cart-overlay {
    position: fixed; inset: 0; z-index: 99996;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; transition: opacity .3s;
}
.mapp-mini-cart-overlay.is-open { opacity: 1; }

.mapp-mini-cart {
    position: fixed; top: 0; bottom: 0;
    z-index: 99997;
    width: min(420px, 85vw);
    background: var(--mapp-bg);
    color: var(--mapp-text);
    display: flex; flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,.3);
    transition: transform .35s cubic-bezier(.25,.46,.45,.94);
    padding-top: var(--mapp-safe-top);
    padding-bottom: var(--mapp-safe-bottom);
}
html[dir="rtl"] .mapp-mini-cart { right: 0; transform: translateX(100%); }
html[dir="ltr"] .mapp-mini-cart { left: 0; transform: translateX(-100%); }
html[dir="rtl"] .mapp-mini-cart.is-open,
html[dir="ltr"] .mapp-mini-cart.is-open { transform: translateX(0); }

.mapp-mini-cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--mapp-border);
}
.mapp-mini-cart-header h3 { margin: 0; font-size: 18px; }
.mapp-mini-cart-close {
    background: var(--mapp-card); border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    color: var(--mapp-text);
    font-size: 22px; cursor: pointer;
}
.mapp-mini-cart-body { flex: 1; overflow-y: auto; padding: 16px; }
.mapp-mini-cart-footer { padding: 16px; border-top: 1px solid var(--mapp-border); background: var(--mapp-card); }

.mapp-mini-cart-items { list-style: none; padding: 0; margin: 0; }
.mapp-mini-cart-item {
    display: flex; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mapp-border);
    position: relative;
}
.mapp-mini-cart-item img {
    width: 64px; height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--mapp-card);
}
.mapp-mini-cart-item-info { flex: 1; }
.mapp-mini-cart-item-info strong { display: block; font-size: 14px; margin-bottom: 6px; }
.mapp-mini-cart-qty { display: inline-flex; align-items: center; gap: 8px; background: var(--mapp-card); border-radius: 10px; padding: 4px 8px; margin-bottom: 6px; }
.mapp-mini-cart-qty button { background: none; border: none; color: var(--mapp-text); width: 24px; height: 24px; font-size: 16px; cursor: pointer; border-radius: 6px; }
.mapp-mini-cart-qty button:hover { background: var(--mapp-border); }
.mapp-mini-cart-qty span { min-width: 20px; text-align: center; font-weight: 600; }
.mapp-mini-cart-price { font-weight: 600; color: var(--mapp-theme); }
.mapp-mini-cart-remove {
    position: absolute; top: 12px; right: 0;
    background: none; border: none;
    color: var(--mapp-text-dim);
    font-size: 22px; cursor: pointer;
}
html[dir="rtl"] .mapp-mini-cart-remove { right: auto; left: 0; }

.mapp-mini-cart-empty { text-align: center; padding: 40px 20px; }
.mapp-empty-icon { font-size: 64px; margin-bottom: 16px; opacity: .5; }

.mapp-mini-cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 16px; }
.mapp-mini-cart-subtotal strong { color: var(--mapp-theme); font-size: 18px; }
.mapp-mini-cart-actions { display: flex; gap: 8px; }
.mapp-mini-cart-actions .mapp-btn { flex: 1; }

/* Quick View */
.mapp-quickview-overlay {
    position: fixed; inset: 0; z-index: 99998;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; transition: opacity .3s;
}
.mapp-quickview-overlay.is-open { opacity: 1; }
.mapp-quickview-modal {
    background: var(--mapp-bg);
    color: var(--mapp-text);
    border-radius: 20px;
    width: 100%; max-width: 500px;
    max-height: 90vh; overflow-y: auto;
    position: relative;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    animation: mappQVin .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes mappQVin { from{opacity:0;transform:scale(.9)} to{opacity:1;transform:scale(1)} }
.mapp-quickview-close {
    position: absolute; top: 12px; right: 12px;
    background: var(--mapp-card); border: none;
    width: 36px; height: 36px; border-radius: 50%;
    color: var(--mapp-text); font-size: 20px; cursor: pointer; z-index: 2;
}
html[dir="rtl"] .mapp-quickview-close { right: auto; left: 12px; }
.mapp-quickview-inner { display: flex; flex-direction: column; gap: 16px; }
.mapp-quickview-image { border-radius: 14px; overflow: hidden; aspect-ratio: 16/12; background: var(--mapp-card); }
.mapp-quickview-image img { width: 100%; height: 100%; object-fit: cover; }
.mapp-quickview-details h2 { font-size: 20px; margin: 0 0 8px; }
.mapp-quickview-price { color: var(--mapp-theme); font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.mapp-quickview-desc { font-size: 14px; opacity: .8; margin-bottom: 16px; line-height: 1.6; }
.mapp-quickview-actions { display: flex; gap: 8px; }
.mapp-quickview-actions .mapp-btn { flex: 1; }

/* Sticky Add to Cart */
.mapp-sticky-atc {
    position: fixed;
    bottom: calc(var(--mapp-nav-h) + var(--mapp-safe-bottom) + 10px);
    left: 12px; right: 12px;
    z-index: 9987;
    background: var(--mapp-card);
    backdrop-filter: blur(var(--mapp-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--mapp-blur)) saturate(180%);
    border: 1px solid var(--mapp-border);
    border-radius: 18px;
    padding: 10px 12px;
    box-shadow: var(--mapp-shadow);
    transform: translateY(150%);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.mapp-sticky-atc.is-visible { transform: translateY(0); }
.mapp-sticky-atc-inner { display: flex; align-items: center; gap: 12px; }
.mapp-sticky-atc-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.mapp-sticky-atc-info img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.mapp-sticky-atc-info strong { display: block; font-size: 13px; color: var(--mapp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapp-sticky-atc-info span { font-size: 12px; color: var(--mapp-theme); font-weight: 600; }
.mapp-sticky-atc-btn {
    background: var(--mapp-theme); color: #fff;
    border: none; border-radius: 12px;
    padding: 10px 14px;
    display: flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--mapp-theme) 40%, transparent);
}
.mapp-sticky-atc-btn svg { width: 18px; height: 18px; }

/* WhatsApp FAB */
.mapp-chat-fab {
    position: fixed;
    bottom: calc(var(--mapp-nav-h) + var(--mapp-safe-bottom) + 16px);
    width: 56px; height: 56px;
    background: #25d366; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(37,211,102,.4);
    z-index: 9986;
    text-decoration: none;
    animation: mappChatPulse 2s infinite;
}
.mapp-chat-fab.bottom-left { left: 16px; }
.mapp-chat-fab.bottom-right { right: 16px; }
.mapp-chat-fab svg { width: 28px; height: 28px; }
@keyframes mappChatPulse {
    0%,100% { box-shadow: 0 6px 20px rgba(37,211,102,.4); }
    50% { box-shadow: 0 6px 25px rgba(37,211,102,.7); }
}

/* ============================================================
   Badge pulse animation when items added
============================================================ */
@keyframes mappBadgePulse {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.5); }
    60%  { transform: scale(.95); }
    100% { transform: scale(1); }
}
.mapp-nav-badge.is-pulse,
.mapp-header-badge.is-pulse {
    animation: mappBadgePulse .65s cubic-bezier(.34,1.56,.64,1);
}

/* Visual feedback on the add-to-cart button itself */
[data-mapp-atc].is-loading,
a.add_to_cart_button.is-loading,
button.add_to_cart_button.is-loading {
    opacity: .6;
    pointer-events: none;
    position: relative;
}
[data-mapp-atc].is-added,
a.add_to_cart_button.is-added,
button.add_to_cart_button.is-added {
    background-color: #22c55e !important;
    color: #fff !important;
    transition: background-color .25s;
}
[data-mapp-atc].is-added::after,
a.add_to_cart_button.is-added::after,
button.add_to_cart_button.is-added::after {
    content: '✓';
    font-weight: 800;
    margin: 0 4px;
}

/* ============================================================
   CART DRAWER (mobile bottom sheet / tablet card)
   Professional, app-store-style cart presentation. Slides up
   from the bottom on mobile (≤768px); appears as a floating
   card aligned to the bottom-right on tablet/desktop (>768px).
============================================================ */

.mapp-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 99992;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility 0s linear .3s;
    pointer-events: none;
    direction: inherit;
}
.mapp-cart-drawer[hidden] { display: none !important; }
.mapp-cart-drawer.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity .3s ease;
}

.mapp-cart-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 25, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.mapp-cart-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mapp-bg, #fff);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    max-height: 92dvh;
    min-height: 50dvh;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform .42s cubic-bezier(.32, .72, 0, 1);
    will-change: transform;
}
.mapp-cart-drawer.is-open .mapp-cart-sheet {
    transform: translateY(0);
}

/* Tablet & desktop: floating card aligned to bottom-right */
@media (min-width: 768px) {
    .mapp-cart-sheet {
        max-width: 480px;
        margin: 0 auto;
        bottom: 90px;
        right: 24px;
        left: auto;
        border-radius: 24px;
        max-height: min(720px, 85vh);
    }
    html[dir="rtl"] .mapp-cart-sheet { right: auto; left: 24px; }
}

/* Drag handle on mobile only */
.mapp-cart-handle {
    width: 40px;
    height: 4px;
    background: #d8dde6;
    border-radius: 99px;
    margin: 8px auto 0;
    flex: 0 0 auto;
}
@media (min-width: 768px) { .mapp-cart-handle { display: none; } }

.mapp-cart-head {
    flex: 0 0 auto;
    padding: 14px 20px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.mapp-cart-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: var(--mapp-text, #0f172a);
    letter-spacing: -.3px;
}
.mapp-cart-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background .2s, transform .15s;
    padding: 0;
}
.mapp-cart-close-btn:hover { background: #e2e8f0 !important; }
.mapp-cart-close-btn:active { transform: scale(.92); }
.mapp-cart-close-btn span {
    display: block;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    color: #0f172a !important;
    margin-top: -3px;
    font-family: Arial, sans-serif;
}

.mapp-cart-content {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 16px 16px;
    position: relative;
}

/* Initial loading spinner (centered) */
.mapp-cart-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}
.mapp-cart-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid color-mix(in srgb, var(--mapp-theme, #0ea5e9) 20%, transparent);
    border-top-color: var(--mapp-theme, #0ea5e9);
    border-radius: 50%;
    animation: mappCartSpin .85s linear infinite;
}
@keyframes mappCartSpin { to { transform: rotate(360deg); } }

.mapp-cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mapp-cart-item {
    background: color-mix(in srgb, var(--mapp-text, #0f172a) 4%, var(--mapp-bg, #fff));
    border-radius: 16px;
    padding: 14px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: opacity .25s, transform .25s;
}
.mapp-cart-item.is-removing {
    opacity: 0;
    transform: translateX(20px);
}

/* Inline spinner overlay: appears centered on the item while we
   update its quantity or remove it — exactly the "C-shaped" loader
   the user circled in their reference. */
.mapp-cart-item.is-updating > * { opacity: .35; transition: opacity .2s; }
.mapp-cart-item.is-updating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid rgba(0, 0, 0, .12);
    border-top-color: var(--mapp-theme, #0ea5e9);
    border-radius: 50%;
    animation: mappCartSpin .85s linear infinite;
    z-index: 2;
}

.mapp-cart-item-thumb {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 6px;
}
.mapp-cart-item-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mapp-cart-item-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.mapp-cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--mapp-text, #0f172a);
    line-height: 1.4;
    margin: 0;
    /* Wrap naturally to as many lines as needed — long product titles
       (with sizes, variants etc.) shouldn't be truncated. */
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
.mapp-cart-item-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--mapp-text, #0f172a);
    margin: 0;
}
.mapp-cart-item-meta {
    font-size: 12px;
    color: color-mix(in srgb, var(--mapp-text, #0f172a) 55%, transparent);
    margin: 0;
}

.mapp-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.mapp-cart-qty-pill {
    display: inline-flex;
    align-items: center;
    background: var(--mapp-bg, #fff);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 0 0 1px rgba(0, 0, 0, .04);
}
.mapp-cart-qty-btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--mapp-text, #0f172a);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s;
}
.mapp-cart-qty-btn:hover { background: rgba(0, 0, 0, .04); }
.mapp-cart-qty-btn:active { transform: scale(.92); }
.mapp-cart-qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.mapp-cart-qty-num {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--mapp-text, #0f172a);
}

.mapp-cart-remove-btn {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    width: 26px;
    height: 26px;
    border: 0;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 999px;
    padding: 0;
    z-index: 2;
    transition: background .15s, color .15s, transform .15s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.mapp-cart-remove-btn:hover { background: #fee2e2 !important; color: #dc2626 !important; }
.mapp-cart-remove-btn:active { transform: scale(.85); }
.mapp-cart-remove-btn span {
    display: block;
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
    margin-top: -3px;
    color: inherit;
    font-family: Arial, sans-serif;
}

/* Empty cart */
.mapp-cart-empty {
    text-align: center;
    padding: 40px 20px;
}
.mapp-cart-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.mapp-cart-empty-text {
    font-size: 16px;
    color: color-mix(in srgb, var(--mapp-text, #0f172a) 70%, transparent);
    margin: 0 0 20px;
}
.mapp-cart-shop-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--mapp-theme, #0ea5e9);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
}

/* Cart note (expandable) */
.mapp-cart-note {
    margin-top: 16px;
}
.mapp-cart-note-details {
    background: color-mix(in srgb, var(--mapp-text, #0f172a) 4%, var(--mapp-bg, #fff));
    border-radius: 12px;
    overflow: hidden;
}
.mapp-cart-note-details summary {
    padding: 14px 16px;
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--mapp-text, #0f172a);
    user-select: none;
}
.mapp-cart-note-details summary::-webkit-details-marker { display: none; }
.mapp-cart-chev { transition: transform .2s; }
.mapp-cart-note-details[open] .mapp-cart-chev { transform: rotate(180deg); }
.mapp-cart-note-input {
    width: 100%;
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--mapp-text, #0f172a) 10%, transparent);
    padding: 12px 16px;
    background: transparent;
    color: var(--mapp-text, #0f172a);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    outline: none;
    box-sizing: border-box;
}

/* Footer: actions, totals, CTA */
.mapp-cart-foot {
    flex: 0 0 auto;
    border-top: 1px solid color-mix(in srgb, var(--mapp-text, #0f172a) 8%, transparent);
    background: var(--mapp-bg, #fff);
}

.mapp-cart-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--mapp-text, #0f172a) 8%, transparent);
}
.mapp-cart-qa {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    padding: 10px 4px;
    color: var(--mapp-text, #0f172a);
    cursor: pointer;
    border-radius: 12px;
    transition: background .15s;
}
.mapp-cart-qa:hover { background: rgba(0, 0, 0, .03); }
.mapp-cart-qa:active { transform: scale(.96); }
.mapp-cart-qa-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--mapp-text, #0f172a) 6%, transparent);
    display: grid;
    place-items: center;
    color: var(--mapp-text, #0f172a);
}
.mapp-cart-qa-icon svg { width: 18px; height: 18px; }
.mapp-cart-qa-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.mapp-cart-totals {
    padding: 14px 20px;
    background: color-mix(in srgb, var(--mapp-text, #0f172a) 3%, var(--mapp-bg, #fff));
}
.mapp-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.mapp-cart-total-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--mapp-text, #0f172a);
}
.mapp-cart-total-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--mapp-text, #0f172a);
    letter-spacing: -.3px;
}
.mapp-cart-tax-note {
    font-size: 11px;
    color: color-mix(in srgb, var(--mapp-text, #0f172a) 55%, transparent);
    margin: 4px 0 0;
}

.mapp-cart-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
}
.mapp-cart-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    transition: transform .15s, box-shadow .15s;
}
.mapp-cart-cta-btn:active { transform: scale(.97); }
.mapp-cart-cta-secondary {
    background: color-mix(in srgb, var(--mapp-theme, #0ea5e9) 15%, transparent);
    color: var(--mapp-theme, #0ea5e9);
}
.mapp-cart-cta-primary {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .25);
}

/* Coupon input panel (revealed by Discount quick action) */
.mapp-cart-coupon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: color-mix(in srgb, var(--mapp-theme, #0ea5e9) 8%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--mapp-text, #0f172a) 8%, transparent);
}
.mapp-cart-coupon[hidden] { display: none; }
.mapp-cart-coupon-input {
    flex: 1 1 auto;
    border: 1px solid color-mix(in srgb, var(--mapp-text, #0f172a) 15%, transparent);
    background: var(--mapp-bg, #fff);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--mapp-text, #0f172a);
    outline: none;
    min-width: 0;
}
.mapp-cart-coupon-input:focus {
    border-color: var(--mapp-theme, #0ea5e9);
}
.mapp-cart-coupon-apply {
    border: 0;
    background: var(--mapp-theme, #0ea5e9);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}
.mapp-cart-coupon-cancel {
    border: 0;
    background: transparent;
    color: color-mix(in srgb, var(--mapp-text, #0f172a) 60%, transparent);
    font-size: 24px;
    width: 32px;
    height: 32px;
    line-height: 1;
    cursor: pointer;
}

/* Dark-mode safety net: even when the site is in dark mode, we keep the
   cart drawer light-themed. Purchase decisions need maximum contrast and
   the user-reference design (mobile2000) keeps the cart light regardless
   of site theme. We scope the CSS variables locally on `.mapp-cart-sheet`
   so every descendant that resolves `var(--mapp-bg)` etc. picks up our
   forced light palette instead of whatever the site has set on :root. */
.mapp-cart-sheet {
    --mapp-bg: #ffffff !important;
    --mapp-text: #0f172a !important;
    --mapp-card: #f5f7fa !important;
    --mapp-border: #e5e7eb !important;
    color-scheme: light;
    background: #ffffff !important;
    color: #0f172a !important;
}
.mapp-cart-sheet .mapp-cart-item-thumb { background: #ffffff !important; }

/* RTL */
html[dir="rtl"] .mapp-cart-cta-btn,
html[dir="rtl"] .mapp-cart-qa-label { direction: rtl; }

/* ============================================================
   GIFT ITEMS (Bundles_Rezk integration)
   Gift items get a distinct gradient card + "🎁 Free Gift" badge
   in place of the +/- controls. Users can't change a gift's
   quantity directly — it's locked to the parent product.
============================================================ */
.mapp-cart-item.is-gift {
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    border: 1px dashed #f59e0b;
    position: relative;
}
.mapp-cart-item.is-gift::before {
    content: '🎁';
    position: absolute;
    top: 6px;
    inset-inline-start: 8px;
    font-size: 16px;
    line-height: 1;
}
.mapp-cart-item.is-gift .mapp-cart-item-thumb {
    background: #ffffff !important;
}
.mapp-cart-item.is-gift .mapp-cart-item-name {
    padding-top: 4px;
}
.mapp-cart-item.is-gift .mapp-cart-item-price {
    color: #b45309 !important;
}

.mapp-cart-gift-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f59e0b;
    color: #ffffff !important;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, .35);
}
.mapp-cart-gift-icon {
    font-size: 16px;
}
.mapp-cart-gift-qty {
    background: rgba(255, 255, 255, .25);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    margin-inline-start: 2px;
}
