
:root{--rushd-navy:#0E1F3D;--rushd-navy-2:#081327;--rushd-red:#E43036;--rushd-red-dark:#B7222A;--rushd-off:#F7F4EE}
[data-cart="overlay"]{background:rgba(3,8,18,.78)!important;backdrop-filter:none!important}
[data-cart="panel-container"]{padding-left:0!important;padding-right:0!important}
[data-cart="panel"]{width:min(95vw,470px)!important;max-width:470px!important}
[data-cart="panel-inner"]{position:relative!important;isolation:isolate!important;overflow:hidden!important;background:radial-gradient(circle at 78% 12%,rgba(228,48,54,.17),transparent 27%),radial-gradient(circle at 14% 76%,rgba(228,48,54,.09),transparent 31%),linear-gradient(180deg,#081327 0%,#0E1F3D 50%,#0A1830 100%)!important;box-shadow:18px 0 60px rgba(0,0,0,.46),inset 1px 0 0 rgba(255,255,255,.05)!important}
[data-cart="panel-inner"]::before{content:"";position:absolute;inset:-6%;z-index:-2;pointer-events:none;opacity:.28;background:repeating-radial-gradient(circle at 78% 22%,transparent 0 35px,rgba(255,255,255,.12) 36px 37px,transparent 38px 68px),repeating-conic-gradient(from 4deg at 78% 22%,rgba(255,255,255,.12) 0deg 1deg,transparent 1deg 21deg);mask-image:radial-gradient(circle at 78% 22%,#000 0%,rgba(0,0,0,.9) 36%,rgba(0,0,0,.38) 62%,transparent 82%)}
[data-cart="panel-inner"]::after{content:"";position:absolute;left:-28%;bottom:-16%;width:78%;aspect-ratio:1;z-index:-1;pointer-events:none;opacity:.18;background:repeating-radial-gradient(circle at 50% 50%,transparent 0 28px,rgba(228,48,54,.55) 29px 30px,transparent 31px 56px),repeating-conic-gradient(from 8deg at 50% 50%,rgba(228,48,54,.48) 0deg 1deg,transparent 1deg 24deg)}
[data-cart="content"]{position:relative;z-index:2;padding:18px 18px 24px!important}
[data-cart="header"]{position:sticky;top:0;z-index:40;min-height:62px;margin:-18px -18px 0!important;padding:16px 18px 13px!important;align-items:center!important;background:linear-gradient(180deg,rgba(8,19,39,.98),rgba(14,31,61,.93));border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 10px 28px rgba(0,0,0,.12)}
[data-cart="title"]{margin:0!important;color:#fff!important;font-size:20px!important;font-weight:800!important;line-height:1.2!important}
[data-cart="title"]::after{content:"";display:block;width:44px;height:3px;margin-top:7px;border-radius:999px;background:linear-gradient(90deg,#E43036,#FF6B70)}
[data-cart="close-wrapper"]{margin:0!important}
[data-cart="close-button"]{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:50%!important;color:#fff!important;background:rgba(255,255,255,.055)!important}
.rushd-cart-character{position:relative;width:100%;display:flex;align-items:flex-end;justify-content:center;overflow:visible!important;pointer-events:none;user-select:none}
.rushd-cart-character::before{content:"";position:absolute;left:50%;bottom:8px;width:72%;height:28%;transform:translateX(-50%);background:radial-gradient(ellipse at center,rgba(228,48,54,.22),rgba(228,48,54,.08) 38%,transparent 72%)}
.rushd-cart-character img{position:relative;z-index:2;display:block;width:auto;height:auto;max-width:100%;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 18px 22px rgba(0,0,0,.28))}
.rushd-cart-character--empty{height:330px;margin:18px 0 -10px;padding-top:22px}
.rushd-cart-character--empty img{max-height:300px;transform:translateY(8px)}
.rushd-cart-character--filled{height:205px;margin:14px 0 8px;padding-top:12px}
.rushd-cart-character--filled img{max-height:188px;transform:translateY(6px)}
[data-cart="empty-state"]{height:auto!important;min-height:0!important;margin-top:0!important;gap:0!important;justify-content:flex-start!important}
[data-cart="empty-animation-wrapper"]{display:none!important}
[data-cart="empty-state"]>div:last-child{width:100%}
[data-cart="empty-title"]{margin:0!important;color:#fff!important;font-size:24px!important;font-weight:800!important;line-height:1.35!important;text-align:center!important}
[data-cart="empty-subtitle"]{max-width:310px;margin:9px auto 0!important;color:rgba(247,244,238,.64)!important;font-size:12px!important;font-weight:600!important;line-height:1.8!important;text-align:center!important}
.rushd-cart-empty-cta{display:flex;align-items:center;justify-content:center;width:min(100%,300px);min-height:48px;margin:19px auto 0;padding:12px 18px;border:1px solid rgba(255,255,255,.12);border-radius:999px;color:#fff!important;background:linear-gradient(135deg,#E43036,#B7222A);font:800 13px/1.1 "Almarai",sans-serif;text-decoration:none!important;box-shadow:0 14px 30px rgba(228,48,54,.22);pointer-events:auto}
[data-cart="items-section"]{margin-top:4px!important}
[data-cart="items-section"]>.flow-root{margin-top:0!important}
[data-cart="items-list"]{margin:0!important}
[data-cart="item"]{position:relative;gap:12px;margin:0 0 12px!important;padding:12px!important;border:1px solid rgba(255,255,255,.095)!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.035))!important;box-shadow:0 14px 30px rgba(0,0,0,.11),inset 0 1px 0 rgba(255,255,255,.08)}
[data-cart="item"]::before{content:"";position:absolute;top:0;right:12%;left:12%;height:1px;background:linear-gradient(90deg,transparent,rgba(228,48,54,.60),transparent)}
[data-cart="item-image-wrapper"]{width:88px!important;height:88px!important;flex:0 0 88px!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:15px!important;background:rgba(255,255,255,.06)!important}
[data-cart="item-body"]{min-width:0;margin-inline-start:0!important}
[data-cart="item-header"]{gap:7px}
[data-cart="item-name"]{color:#fff!important;font-size:13px!important;font-weight:800!important;line-height:1.55!important}
[data-cart="item-price"]{margin:0!important;color:#FF656B!important;font-size:12px!important;font-weight:800!important;white-space:nowrap}
[data-cart="item-footer"]{margin-top:6px;gap:8px!important}
[data-cart="item-total"]{margin:0!important;color:rgba(247,244,238,.55)!important;font-size:10.5px!important;font-weight:600!important}
[data-cart="item-actions"]{align-items:center}
[data-cart="item-quantity-counter"]{align-items:center;padding:3px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(255,255,255,.045)}
[data-cart="item-increase"],[data-cart="item-decrease"]{display:grid!important;place-items:center!important;width:27px!important;height:27px!important;padding:0!important;border:0!important;border-radius:50%!important;color:#fff!important;background:rgba(255,255,255,.08)!important}
[data-cart="item-increase"] svg,[data-cart="item-decrease"] svg{color:#fff!important}
[data-cart="item-quantity"]{width:32px!important;color:#fff!important;font-size:12px!important;font-weight:800!important}
[data-cart="item-remove"]{display:grid!important;place-items:center!important;width:31px;height:31px;margin-inline-start:7px!important;border-radius:50%;background:rgba(228,48,54,.12)}
[data-cart="item-remove"] svg{width:16px!important;height:16px!important;color:#FF656B!important}
[data-cart="footer"]{position:relative;z-index:10;padding:16px 18px max(17px,env(safe-area-inset-bottom))!important;background:linear-gradient(180deg,rgba(8,19,39,.98),rgba(6,15,31,.99))!important;border-top:1px solid rgba(255,255,255,.08);box-shadow:0 -18px 36px rgba(0,0,0,.14)}
[data-invoice="invoice"]{padding-top:0!important;border-top:0!important}
[data-invoice="invoice-subtotal"] dt{color:rgba(247,244,238,.62)!important;font-size:11px!important;font-weight:700!important}
[data-invoice="invoice-subtotal-value"]{color:#fff!important;font-size:18px!important;font-weight:800!important}
[data-cart="checkout-wrapper"]{margin-top:12px!important}
[data-cart="checkout-wrapper"] button{min-height:49px!important;padding:12px 22px!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:999px!important;color:#fff!important;background:linear-gradient(135deg,#E43036,#B7222A)!important;font-weight:800!important;box-shadow:0 15px 30px rgba(228,48,54,.24)!important}
[data-cart="continue-wrapper"]{margin-top:11px!important;color:rgba(247,244,238,.48)!important;font-size:10.5px!important}
[data-cart="continue-shopping"]{color:#fff!important;text-decoration:none!important}
@media(max-width:640px){
[data-cart="panel"]{width:min(96vw,430px)!important;max-width:430px!important}
[data-cart="content"]{padding:15px 13px 18px!important}
[data-cart="header"]{min-height:56px;margin:-15px -13px 0!important;padding:13px 13px 11px!important}
[data-cart="title"]{font-size:18px!important}
[data-cart="close-button"]{width:35px!important;height:35px!important}
.rushd-cart-character--empty{height:min(40vh,300px);margin:12px 0 -6px;padding-top:28px}
.rushd-cart-character--empty img{max-height:min(35vh,265px);transform:translateY(12px)}
.rushd-cart-character--filled{height:165px;margin:8px 0 6px;padding-top:20px}
.rushd-cart-character--filled img{max-height:145px;transform:translateY(10px)}
[data-cart="empty-title"]{font-size:21px!important}
[data-cart="empty-subtitle"]{font-size:11.5px!important}
[data-cart="item"]{gap:9px;padding:10px!important;border-radius:17px!important}
[data-cart="item-image-wrapper"]{width:74px!important;height:74px!important;flex-basis:74px!important;border-radius:13px!important}
[data-cart="item-name"]{font-size:11.5px!important}
[data-cart="item-price"]{font-size:10.5px!important}
[data-cart="footer"]{padding:13px 13px max(14px,env(safe-area-inset-bottom))!important}
}


/* =========================================================
   V2.3 — PROVEN NATIVE DRAWER SCROLL LOGIC
   ONE scroll container only: panel-inner
   No touchmove JS / no nested scroll container
   ========================================================= */

[data-cart="panel"]{
    height:100dvh !important;
    max-height:100dvh !important;
}

[data-cart="panel-inner"]{
    display:block !important;

    width:100% !important;
    height:100dvh !important;
    max-height:100dvh !important;

    overflow-x:hidden !important;
    overflow-y:auto !important;

    overscroll-behavior:contain !important;
    -webkit-overflow-scrolling:touch !important;
    touch-action:pan-y !important;

    scrollbar-width:thin;
    scrollbar-color:
        rgba(228,48,54,.68)
        rgba(255,255,255,.055);
}

/* IMPORTANT:
   content is NOT a second scroll container anymore */
[data-cart="content"]{
    display:block !important;

    height:auto !important;
    max-height:none !important;
    min-height:0 !important;

    overflow:visible !important;

    overscroll-behavior:auto !important;
    touch-action:auto !important;
}

/* Header scrolls naturally with drawer.
   Avoid sticky layer fighting touch scrolling on phones. */
[data-cart="header"]{
    position:relative !important;
    top:auto !important;
}

/* Footer is part of the same scroll flow.
   User can naturally scroll down to checkout. */
[data-cart="footer"]{
    position:relative !important;
    bottom:auto !important;
    flex:none !important;
}

/* Prevent old V2.1/V2.2 rules from creating nested flex scrolling */
[data-cart="panel-inner"]{
    flex-direction:initial !important;
}

[data-cart="root"],
[data-cart="wrapper"],
[data-cart="panel-container"],
[data-cart="panel"]{
    overscroll-behavior:contain !important;
}

@media(max-width:640px){
    [data-cart="panel"],
    [data-cart="panel-inner"]{
        height:100dvh !important;
        max-height:100dvh !important;
    }

    [data-cart="panel-inner"]{
        overflow-y:auto !important;
        -webkit-overflow-scrolling:touch !important;
        touch-action:pan-y !important;
    }

    [data-cart="content"]{
        overflow:visible !important;
        touch-action:auto !important;
    }
}
