/*! Buraq Gifts & UX v1.4.7 — visual language copied from the البراق storefront (gifts, purchase journey, hesitation, flight). Fonts inherit from the installed theme. */
.buraq-ux, .buraq-ux-scope {
  --primary: var(--buraq-primary, #701c32);
  --primary-foreground: oklch(.99 0 0);
  --background: oklch(1 0 0);
  --foreground: oklch(.22 .02 30);
  --secondary: oklch(.95 .003 80);
  --muted: oklch(.95 .003 80);
  --muted-foreground: oklch(.5 .018 40);
  --border: oklch(.9 .012 65);
  --card: oklch(1 0 0);
  --accent: oklch(.85 .12 95);
  --photo-stage: oklch(1 0 0);
  --chart-2: oklch(.72 .11 75); --chart-3: oklch(.35 .03 50); --chart-4: oklch(.828 .189 84.429); --chart-5: oklch(.769 .188 70.08);
  --positive: oklch(.55 .13 155); --offer-accent: oklch(.85 .12 95);
}
html.buraq-lock { overflow: hidden; }
.buraq-ux, .buraq-ux * { box-sizing: border-box; }
.buraq-ux { font-family: inherit; line-height: 1.5; direction: rtl; }
/* Scoped reset (theme-proof, zero extra specificity beyond one class so the copied site rules still win). */
.buraq-ux :where(h1,h2,h3,h4,p,ul,ol,li,figure,dl,dd) { margin: 0; padding: 0; }
.buraq-ux :where(ul,ol) { list-style: none; }
.buraq-ux :where(button) { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; line-height: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; min-height: 0; min-width: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.buraq-ux :where(a) { color: inherit; text-decoration: none; }
.buraq-ux :where(img,svg) { display: block; max-width: 100%; }
.buraq-ux :where(svg.lucide) { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.buraq-ux .size-3 { width: 12px; height: 12px; } .buraq-ux .size-4 { width: 16px; height: 16px; } .buraq-ux .size-5 { width: 20px; height: 20px; }
.buraq-ux .size-8 { width: 32px; height: 32px; } .buraq-ux .size-9 { width: 36px; height: 36px; } .buraq-ux .size-10 { width: 40px; height: 40px; } .buraq-ux .size-12 { width: 48px; height: 48px; }
.buraq-ux .shrink-0 { flex-shrink: 0; }
.buraq-ux .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== site: purchase palette, royal blue, WhatsApp green, hesitation ===== */

.buraq-ux, .buraq-ux-scope { --purchase-success: oklch(.508 .118 165.612); --purchase-success-deep: oklch(.437 .078 188.216); --purchase-foreground: oklch(1 0 0); --purchase-gold: oklch(.84 .14 85); --purchase-glow: oklch(.87 .10 164); --purchase-sheen: linear-gradient(110deg, transparent 30%, color-mix(in oklab,var(--purchase-foreground) 40%,transparent) 50%,transparent 70%); --purchase-gradient: linear-gradient(120deg,var(--purchase-success),var(--purchase-success-deep)); }
@media (prefers-reduced-motion: reduce) { .hesitation-card, .hesitation-wa { animation: none; } }
.buraq-ux, .buraq-ux-scope { --whatsapp-green: oklch(.77 .2 148); }
@media (prefers-reduced-motion: reduce) { .hesitation-seal, .hesitation-wa-cta, .hesitation-wa-cta::after, .hesitation-wa-icon::before { animation: none !important; } }
.buraq-ux, .buraq-ux-scope { --royal-blue: oklch(.46 .17 264); }
.hes-overlay { position: fixed; inset: 0; z-index: 86; display: grid; place-items: center; padding: 16px; background: color-mix(in oklab, var(--foreground) 34%, transparent); backdrop-filter: blur(4px); animation: hes-fade 380ms ease both; }
.hes-panel { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(100%, 340px); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px 20px 16px; text-align: center; border-radius: 26px; background: linear-gradient(180deg, color-mix(in oklab, var(--royal-blue) 6%, var(--background)), var(--background) 46%); color: var(--foreground); box-shadow: 0 34px 70px -28px color-mix(in oklab, var(--royal-blue) 50%, transparent), 0 0 0 1px color-mix(in oklab, var(--foreground) 8%, transparent); animation: hes-rise 620ms 120ms cubic-bezier(.22, 1, .36, 1) both; }
.hes-close { position: absolute; top: 8px; left: 8px; width: 32px; height: 32px; color: var(--muted-foreground); }
.hes-stage { --hes-size: 148px; position: relative; display: grid; place-items: center; width: var(--hes-size); height: var(--hes-size); margin-bottom: 8px; }
.hes-glow { position: absolute; inset: -16%; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--purchase-gold) 26%, transparent) 0%, color-mix(in oklab, var(--royal-blue) 18%, transparent) 45%, transparent 70%); filter: blur(6px); animation: hes-in 600ms 500ms ease both, hes-glow 5s 1.1s ease-in-out infinite; }
.hes-frame { position: absolute; inset: -7px; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--foreground) 12%, transparent); animation: hes-in 600ms 500ms ease both; }
.hes-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: hes-in 500ms 900ms ease both, hes-spin 7s 900ms linear infinite; }
.hes-orbit circle { fill: none; }
.hes-orbit-track { stroke: color-mix(in oklab, var(--royal-blue) 10%, transparent); stroke-width: 1.5; }
.hes-orbit-arc { stroke-width: 3; stroke-linecap: round; stroke-dasharray: 62 38; stroke-dashoffset: -13; filter: drop-shadow(0 0 3px color-mix(in oklab, var(--purchase-gold) 55%, transparent)); }
.hes-orbit-dot { fill: var(--background); stroke: var(--royal-blue); stroke-width: 1; filter: drop-shadow(0 0 4px var(--background)) drop-shadow(0 0 6px color-mix(in oklab, var(--royal-blue) 75%, transparent)); }
.hes-photo { position: relative; display: grid; place-items: center; width: 82%; height: 82%; border-radius: 50%; overflow: hidden; background: var(--photo-stage, var(--background)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--foreground) 8%, transparent), 0 10px 24px -14px color-mix(in oklab, var(--royal-blue) 55%, transparent); animation: hes-photo-in 700ms 380ms cubic-bezier(.34, 1.4, .64, 1) both; }
.hes-panel .hes-photo img { box-sizing: border-box; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 10px; animation: hes-breathe 4.5s 1.2s ease-in-out infinite; }
.hes-title { font-size: 19px; font-weight: 800; line-height: 1.4; animation: hes-slide 520ms 1.05s cubic-bezier(.22, 1, .36, 1) both; }
.hes-text { font-size: 13.5px; line-height: 1.75; color: var(--muted-foreground); padding-inline: 6px; animation: hes-slide 520ms 1.3s cubic-bezier(.22, 1, .36, 1) both; }
.hes-name { max-width: 100%; font-size: 12px; font-weight: 600; color: var(--royal-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: hes-slide 520ms 1.4s ease both; }
.hes-cta { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin-top: 10px; padding: 10px 20px; border-radius: 999px; overflow: hidden; font-size: 15px; font-weight: 800; color: var(--purchase-foreground); background: var(--whatsapp-green); box-shadow: 0 12px 26px -12px color-mix(in oklab, var(--whatsapp-green) 85%, transparent); transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease; animation: hes-cta-in 640ms 1.6s cubic-bezier(.34, 1.4, .64, 1) both; }
.hes-cta::after { content: ""; position: absolute; inset: 0; background: var(--purchase-sheen); transform: translateX(-120%); animation: hes-sheen 3.6s 2.4s ease-in-out infinite; pointer-events: none; }
.hes-cta:hover, .hes-cta:focus-visible { filter: brightness(1.05); box-shadow: 0 0 0 4px color-mix(in oklab, var(--whatsapp-green) 22%, transparent), 0 14px 30px -10px color-mix(in oklab, var(--whatsapp-green) 90%, transparent); }
.hes-cta:active { transform: scale(.96); }
.hes-cta-icon { width: 22px; height: 22px; flex: none; }
.hes-later { margin-top: 2px; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted-foreground); animation: hes-in 400ms 1.85s ease both; }
.hes-later:hover { color: var(--foreground); }
@media (min-width: 768px) { .hes-panel { width: 420px; padding: 34px 32px 22px; gap: 8px; border-radius: 30px; } .hes-stage { --hes-size: 184px; margin-bottom: 12px; } .hes-title { font-size: 22px; } .hes-text { font-size: 14.5px; } .hes-cta { width: auto; min-width: 280px; } }
@media (max-height: 560px) { .hes-stage { --hes-size: 112px; } .hes-panel { padding-top: 18px; } }
@keyframes hes-fade { from { opacity: 0; } }
@keyframes hes-rise { from { opacity: 0; transform: translateY(36px) scale(.94); } }
@keyframes hes-in { from { opacity: 0; } }
@keyframes hes-photo-in { from { opacity: 0; transform: scale(.7); } }
@keyframes hes-spin { to { transform: rotate(360deg); } }
@keyframes hes-glow { 0%, 100% { opacity: .75; transform: scale(1) rotate(0deg); } 50% { opacity: 1; transform: scale(1.06) rotate(20deg); } }
@keyframes hes-breathe { 0%, 100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.04) translateY(-2px); } }
@keyframes hes-slide { from { opacity: 0; transform: translateY(10px); } }
@keyframes hes-cta-in { from { opacity: 0; transform: translateY(14px) scale(.92); } }
@keyframes hes-sheen { 0%, 65% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .hes-overlay, .hes-panel, .hes-panel *, .hes-panel *::after { animation: none !important; transition: none !important; } }
.hes-panel[data-gifts] { --purchase-gold: var(--gift-accent-soft); color: var(--gift-ink); background: linear-gradient(175deg, color-mix(in oklab, oklch(1 0 0) 90%, transparent), color-mix(in oklab, oklch(1 0 0) 74%, transparent) 75%); backdrop-filter: var(--gift-glass-blur); border: 1px solid var(--gift-glass-border); box-shadow: var(--gift-glass-shadow); }
.hes-panel[data-gifts] .hes-text, .hes-panel[data-gifts] .hes-close, .hes-panel[data-gifts] .hes-later { color: var(--gift-readable); }
.hes-panel[data-gifts] .hes-name { color: var(--gift-accent); }
.hes-panel[data-gifts] .hes-photo { background: color-mix(in oklab, oklch(1 0 0) 80%, transparent); }
.hes-gift-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 2px; padding: 5px 12px; overflow: hidden; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--gift-accent-deep); background: color-mix(in oklab, var(--gift-accent-mist) 80%, transparent); backdrop-filter: var(--gift-glass-blur); border: 1px solid var(--gift-item-border); animation: hes-slide 620ms 1.2s var(--gift-ease) both; }
.hes-gift-chip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, color-mix(in oklab, oklch(1 0 0) 75%, transparent) 50%, transparent 65%); transform: translateX(-120%); animation: gift-sweep 4s 2s ease-in-out infinite; pointer-events: none; }
.hes-gift-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hes-panel[data-gifts] .hes-title { animation: hes-slide 520ms 1.05s cubic-bezier(.22, 1, .36, 1) both, gift-title-sheen 6s 1.6s linear infinite; }
.hes-gift-open { cursor: pointer; border: 0; font: inherit; transition: transform .2s; }
.hes-gift-open:hover { transform: translateY(-1px); }
.hes-gift-open:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===== site: steps + success seal ===== */

.purchase-journey { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-block: 14px 24px; padding: 0; list-style: none; color: var(--foreground); }
.purchase-journey li { display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; min-width: 0; font-size: 11px; text-align: center; }
.purchase-journey li::after { content: ""; position: absolute; top: 17px; inset-inline-start: calc(50% + 20px); width: calc(100% - 32px); height: 2px; background: var(--border); }
.purchase-journey li:last-child::after { display: none; }
.purchase-journey li[data-state="done"]::after { background: var(--primary); }
.purchase-journey li > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--secondary); color: var(--muted-foreground); border: 1px solid var(--border); }
.purchase-journey svg { width: 16px; height: 16px; }
.purchase-journey li[data-state="done"] > span, .purchase-journey li[data-state="current"] > span { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.purchase-journey li[data-state="current"] > span { outline: 3px solid color-mix(in oklab,var(--primary) 15%,transparent); }
.purchase-feedback { position: fixed; z-index: 80; inset-inline: 12px; top: max(12px,env(safe-area-inset-top)); display: flex; align-items: center; gap: 12px; max-width: 400px; margin-inline: auto; padding: 12px; border-radius: 8px; background: var(--background); color: var(--foreground); border: 1px solid var(--border); box-shadow: var(--shadow-soft); animation: purchase-feedback-enter 320ms ease both; pointer-events: none; }
.purchase-feedback button { pointer-events: auto; }
.purchase-success-seal { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: none; background: var(--primary); color: var(--primary-foreground); border-radius: 50%; }
.purchase-success-seal > svg { width: 20px; height: 20px; animation: purchase-check 450ms ease both; }
.purchase-success-seal i { position: absolute; top: 50%; left: 50%; width: 3px; height: 7px; background: var(--primary); border-radius: 1px; animation: purchase-rays 700ms ease-out both; }
.purchase-success-seal i:nth-of-type(1) { --ray: 0deg; } .purchase-success-seal i:nth-of-type(2) { --ray: 45deg; } .purchase-success-seal i:nth-of-type(3) { --ray: 90deg; } .purchase-success-seal i:nth-of-type(4) { --ray: 135deg; } .purchase-success-seal i:nth-of-type(5) { --ray: 180deg; } .purchase-success-seal i:nth-of-type(6) { --ray: 225deg; } .purchase-success-seal i:nth-of-type(7) { --ray: 270deg; } .purchase-success-seal i:nth-of-type(8) { --ray: 315deg; }
@keyframes purchase-rays { from { transform: rotate(var(--ray)) translateY(-16px); opacity: 1; } to { transform: rotate(var(--ray)) translateY(-32px) scale(.4); opacity: 0; } }
@keyframes purchase-check { from { transform: scale(.4) rotate(-20deg); } to { transform: none; } }
@keyframes purchase-feedback-enter { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Purchase-only success palette, independent of the owner's store brand. */
:root { --purchase-success: oklch(.508 .118 165.612); --purchase-success-deep: oklch(.437 .078 188.216); --purchase-foreground: oklch(1 0 0); --purchase-gold: oklch(.84 .14 85); --purchase-glow: oklch(.87 .10 164); --purchase-sheen: linear-gradient(110deg, transparent 30%, color-mix(in oklab,var(--purchase-foreground) 40%,transparent) 50%,transparent 70%); --purchase-gradient: linear-gradient(120deg,var(--purchase-success),var(--purchase-success-deep)); }

/* ===== site: centre celebration card ===== */


@keyframes purchase-sonar-ring { 0% { opacity: .7; transform: scale(1); } 40%, 100% { opacity: 0; transform: scale(1.06, 1.22); } }
.purchase-celebration { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 20px; background: color-mix(in oklab, var(--foreground) 28%, transparent); backdrop-filter: blur(3px); animation: purchase-fade-in 220ms ease both; }
.purchase-celebration-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(100%, 320px); padding: 22px 20px 18px; overflow: hidden; text-align: center; border-radius: 20px; background: var(--background); color: var(--foreground); box-shadow: 0 30px 60px -20px color-mix(in oklab, var(--purchase-success-deep) 55%, transparent), 0 0 0 1px color-mix(in oklab, var(--purchase-gold) 35%, transparent); animation: purchase-spring 620ms cubic-bezier(.34, 1.56, .64, 1) both; }
.purchase-celebration-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 86px; background: var(--purchase-gradient); opacity: .12; pointer-events: none; }
.purchase-celebration-close { position: absolute; top: 6px; left: 6px; width: 32px; height: 32px; color: var(--muted-foreground); }
.purchase-celebration-visual { position: relative; display: grid; place-items: center; min-height: 92px; }
.purchase-celebration-photo { display: grid; place-items: center; width: 132px; height: 96px; border-radius: 14px; background: var(--photo-stage, var(--secondary)); animation: purchase-photo-pop 700ms 120ms cubic-bezier(.34, 1.56, .64, 1) both; }
.purchase-celebration-photo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.purchase-celebration-photo + .purchase-celebration-seal { position: absolute; bottom: -10px; left: calc(50% + 44px); }
.purchase-celebration-seal { width: 44px; height: 44px; background: var(--purchase-success); color: var(--purchase-foreground); box-shadow: 0 0 0 4px var(--background); }
.purchase-celebration-seal i { background: var(--purchase-gold); }
.purchase-celebration-seal > svg { width: 24px; height: 24px; stroke-width: 3; animation: purchase-check 520ms 260ms cubic-bezier(.34, 1.56, .64, 1) both; }
.purchase-celebration-title { margin-top: 6px; font-size: 18px; font-weight: 800; color: var(--purchase-success-deep); }
.purchase-celebration-name { margin-top: 2px; font-size: 13px; line-height: 1.6; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.purchase-celebration-next { font-size: 12px; font-weight: 600; color: var(--foreground); }


/* ===== site: journey shot ===== */


/* 2-second cinematic journey shot. */
.purchase-journey-shot { position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin-top: 4px; }
.purchase-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.purchase-orbit circle { fill: none; }
.purchase-orbit-track { stroke: color-mix(in oklab, var(--purchase-success) 14%, transparent); stroke-width: 3; }
.purchase-orbit-draw { stroke: url(#purchase-orbit-ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px color-mix(in oklab, var(--purchase-gold) 60%, transparent)); animation: purchase-orbit-draw 1.1s .15s cubic-bezier(.65, 0, .35, 1) forwards; }
.purchase-orbit-spark { fill: var(--purchase-gold); transform-origin: 60px 60px; filter: drop-shadow(0 0 5px var(--purchase-gold)); animation: purchase-orbit-spin 1.1s .15s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes purchase-orbit-draw { to { stroke-dashoffset: 0; } }
@keyframes purchase-orbit-spin { from { transform: rotate(0); opacity: 1; } 90% { opacity: 1; } to { transform: rotate(360deg); opacity: 0; } }
.purchase-journey-photo { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: var(--photo-stage, var(--secondary)); color: var(--purchase-success); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--purchase-success) 18%, transparent); animation: purchase-shot-in 650ms cubic-bezier(.34, 1.56, .64, 1) both; }
.purchase-journey-photo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; animation: purchase-shot-ride 1.4s .35s cubic-bezier(.22, 1, .36, 1) both; }
.purchase-journey-photo svg { width: 40px; height: 40px; }
.purchase-journey-shot .purchase-celebration-seal { position: absolute; bottom: 0; inset-inline-end: 2px; width: 36px; height: 36px; }
.purchase-journey-shot .purchase-celebration-seal > svg { width: 20px; height: 20px; }
@keyframes purchase-shot-in { from { opacity: 0; transform: scale(.5) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes purchase-shot-ride { from { transform: translateX(26px); } 60% { transform: translateX(-4px); } to { transform: none; } }
.purchase-shot-confetti { position: absolute; top: 50%; left: 50%; width: 6px; height: 10px; border-radius: 2px; background: var(--purchase-gold); opacity: 0; animation: purchase-shot-confetti 1.2s calc(.55s + var(--i) * 40ms) ease-out both; --a: calc(var(--i) * 36deg); }
.purchase-shot-confetti:nth-of-type(even) { background: var(--purchase-success); width: 5px; height: 5px; border-radius: 50%; }
@keyframes purchase-shot-confetti { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-58px) scale(.6); } 100% { opacity: 0; transform: rotate(calc(var(--a) + 40deg)) translateY(-92px) scale(1); } }
.purchase-celebration-title { color: var(--purchase-success-deep); animation: purchase-title-rise 500ms .25s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes purchase-title-rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .purchase-orbit-draw { animation: none; stroke-dashoffset: 0; } .purchase-orbit-spark, .purchase-shot-confetti { display: none; } .purchase-journey-photo, .purchase-journey-photo img, .purchase-celebration-title { animation: none; } }


/* ===== site: steps details ===== */


/* Three-step purchase indicator (prompt-258): one row on every screen, no sideways scrolling. */
.purchase-journey li strong { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.purchase-journey li[data-state="upcoming"] { opacity: .72; }
.purchase-journey li:first-child::before { display: none; }
.purchase-journey li[data-state="current"]::before { content: ""; display: block; position: absolute; z-index: 1; top: 17px; inset-inline-start: calc(50% + 20px); width: calc(100% - 32px); height: 2px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--purchase-gold), var(--purchase-foreground), var(--purchase-gold), transparent) no-repeat; background-size: 40% 100%; animation: purchase-beam-flow 1.8s ease-in-out infinite; }
.purchase-journey li:last-child[data-state="current"]::before { display: none; }
[dir="rtl"] .purchase-journey li[data-state="current"]::before, .purchase-journey:dir(rtl) li[data-state="current"]::before { animation-direction: reverse; }
@keyframes purchase-beam-flow { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.purchase-journey svg[data-landed] { animation: purchase-check-land 520ms cubic-bezier(.3,1.6,.5,1) both; }
@keyframes purchase-check-land { from { transform: scale(.2) rotate(-25deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.buraq-drawer .purchase-journey li[data-state="current"]::before { top: 11px; inset-inline-start: calc(50% + 15px); width: calc(100% - 24px); }
@media (max-width: 380px) { .purchase-journey li { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .purchase-journey li[data-state="current"]::before, .purchase-journey svg[data-landed] { animation: none !important; } }


/* ===== site: free-shipping truck ===== */

/* 286.2 — illustrated free-shipping truck inside the 1.5s add-to-cart card (brand maroon + ivory, CSS-only). */
.purchase-free-ship { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: .5rem auto 0; padding-top: .55rem; border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent); font-size: .8rem; font-weight: 600; color: var(--foreground); overflow: hidden; }
.purchase-free-ship-truck { position: relative; display: inline-flex; padding-bottom: 2px; animation: free-ship-drive .62s cubic-bezier(.2,.9,.25,1.12) .1s both; }
.fs-truck { display: block; overflow: visible; }
.fs-box { fill: var(--primary); }
.fs-box-shine { fill: color-mix(in oklab, var(--primary-foreground) 16%, transparent); }
.fs-stripe { fill: color-mix(in oklab, var(--primary-foreground) 78%, transparent); }
.fs-mark { fill: none; stroke: color-mix(in oklab, var(--primary-foreground) 70%, transparent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.fs-parcel { fill: color-mix(in oklab, var(--primary-foreground) 88%, var(--primary)); }
.fs-parcel-tape { stroke: var(--primary); stroke-width: .9; opacity: .55; }
.fs-cab { fill: color-mix(in oklab, var(--primary) 78%, var(--foreground)); }
.fs-glass { fill: color-mix(in oklab, var(--primary-foreground) 80%, var(--primary)); opacity: .92; }
.fs-handle { fill: color-mix(in oklab, var(--primary-foreground) 55%, transparent); }
.fs-light { fill: var(--primary-foreground); animation: free-ship-light .5s ease-out .62s both; }
.fs-beam { fill: color-mix(in oklab, var(--primary) 22%, transparent); opacity: 0; transform-box: fill-box; transform-origin: right center; animation: free-ship-beam .7s ease-out .62s both; }
.fs-chassis { fill: color-mix(in oklab, var(--foreground) 82%, var(--primary)); }
.fs-shadow { fill: color-mix(in oklab, var(--foreground) 16%, transparent); }
.fs-tire { fill: color-mix(in oklab, var(--foreground) 88%, transparent); }
.fs-rim { fill: color-mix(in oklab, var(--background) 85%, var(--muted)); }
.fs-spokes { stroke: color-mix(in oklab, var(--foreground) 70%, transparent); stroke-width: .8; }
.fs-hub { fill: var(--primary); }
.fs-wheel { transform-box: fill-box; transform-origin: center; animation: free-ship-spin .62s cubic-bezier(.2,.8,.3,1) .1s both; }
.fs-body { transform-box: fill-box; transform-origin: 20% 100%; animation: free-ship-brake .45s ease-out .64s both; }
.purchase-free-ship-road { position: absolute; inset-inline: -40px; bottom: 0; height: 1.5px; border-radius: 9999px; background: repeating-linear-gradient(90deg, color-mix(in oklab, var(--muted-foreground) 45%, transparent) 0 7px, transparent 7px 13px); background-size: 26px 100%; opacity: 0; animation: free-ship-road .62s linear .1s both; }
.purchase-free-ship-wind { position: absolute; left: calc(100% - 2px); height: 1.5px; border-radius: 9999px; background: color-mix(in oklab, var(--primary) 55%, transparent); opacity: 0; animation: free-ship-wind .45s cubic-bezier(.4,0,.2,1) .15s 2 both; }
.purchase-free-ship-wind:nth-child(1) { top: 6px; width: 12px; }
.purchase-free-ship-wind:nth-child(2) { top: 12px; width: 18px; animation-delay: .22s; }
.purchase-free-ship-wind:nth-child(3) { top: 18px; width: 9px; animation-delay: .29s; }
.purchase-free-ship-dust { position: absolute; bottom: 2px; width: 6px; height: 6px; border-radius: 9999px; background: color-mix(in oklab, var(--muted-foreground) 30%, transparent); opacity: 0; animation: free-ship-dust .5s ease-out .6s both; }
.purchase-free-ship-dust:nth-of-type(4) { left: 62%; }
.purchase-free-ship-dust:nth-of-type(5) { left: 90%; animation-delay: .66s; }
.purchase-free-ship-text { position: relative; overflow: hidden; padding: .1rem .15rem; animation: free-ship-fade .35s ease-out .68s both; }
.purchase-free-ship-text b { color: var(--primary); font-weight: 800; }
.purchase-free-ship-text::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in oklab, var(--background) 85%, transparent) 50%, transparent 70%); transform: translateX(-120%); animation: free-ship-shine .6s ease-out .85s both; }
@keyframes free-ship-drive { from { transform: translateX(170px); opacity: 0; } 25% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes free-ship-spin { from { transform: rotate(0); } to { transform: rotate(-900deg); } }
@keyframes free-ship-brake { 0% { transform: none; } 35% { transform: rotate(-3deg) translateY(-.4px); } 70% { transform: rotate(1deg); } 100% { transform: none; } }
@keyframes free-ship-light { 0%, 100% { fill: var(--primary-foreground); } 30%, 60% { fill: color-mix(in oklab, var(--primary-foreground) 70%, oklch(0.9 0.15 90)); } }
@keyframes free-ship-beam { 0% { opacity: 0; transform: scaleX(.3); } 35% { opacity: 1; transform: none; } 100% { opacity: .4; transform: none; } }
@keyframes free-ship-road { 0% { opacity: 0; background-position: 0 0; } 20% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; background-position: -78px 0; } }
@keyframes free-ship-wind { 0% { opacity: 0; transform: translateX(0) scaleX(.4); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateX(12px) scaleX(1); } }
@keyframes free-ship-dust { 0% { opacity: .7; transform: scale(.4); } 100% { opacity: 0; transform: translate(10px, -6px) scale(1.8); } }
@keyframes free-ship-fade { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes free-ship-shine { to { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .purchase-free-ship-truck, .purchase-free-ship-text, .fs-wheel, .fs-body, .fs-light { animation: none; } .fs-beam { animation: none; opacity: .5; } .purchase-free-ship-wind, .purchase-free-ship-dust, .purchase-free-ship-road, .purchase-free-ship-text::after { display: none; } }



/* ===== site: product-to-cart flight ===== */

.cart-flight-layer { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.cart-flight-trail { position: absolute; inset: 0; overflow: visible; }
.cart-flight-line, .cart-flight-glow { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cart-flight-line { stroke-width: 2.5; }
.cart-flight-glow { stroke-width: 9; opacity: .28; filter: blur(4px); }
.cart-flight-ghost { position: absolute; display: grid; place-items: center; overflow: hidden; border-radius: 22%; background: var(--photo-stage, var(--background)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--purchase-gold) 45%, transparent), 0 10px 30px -10px color-mix(in oklab, var(--royal-blue) 60%, transparent), 0 0 22px color-mix(in oklab, var(--purchase-gold) 30%, transparent); will-change: transform, opacity; transform-origin: center; }
.cart-flight-ghost img { width: 100%; height: 100%; object-fit: contain; }
.cart-flight-orb { border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--background) 0 18%, var(--purchase-gold) 45%, var(--royal-blue) 100%); }
.cart-flight-dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--background); box-shadow: 0 0 6px 2px var(--background), 0 0 14px 4px color-mix(in oklab, var(--royal-blue) 60%, transparent); will-change: transform, opacity; }
.cart-flight-flash { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--background) 90%, transparent) 0%, color-mix(in oklab, var(--purchase-gold) 45%, transparent) 40%, color-mix(in oklab, var(--royal-blue) 20%, transparent) 65%, transparent 72%); animation: cart-flight-flash 560ms ease-out forwards; }
.cart-flight-spark { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--purchase-gold); box-shadow: 0 0 6px var(--purchase-gold); animation: cart-flight-spark 620ms cubic-bezier(.2, .7, .3, 1) forwards; }
.cart-flight-spark:nth-child(even) { background: var(--background); box-shadow: 0 0 6px color-mix(in oklab, var(--royal-blue) 70%, transparent); }
@keyframes cart-flight-flash { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes cart-flight-spark { from { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } to { transform: rotate(var(--a)) translateY(-26px) scale(.3); opacity: 0; } }
.cart-flight-hit { animation: cart-flight-hit 560ms cubic-bezier(.34, 1.56, .64, 1); }
.cart-flight-hit :is(.header-cart-count, .sporty-cart-count, .classic-nav-badge, .velo-nav-badge, [class*="cart-count"]) { animation: cart-count-roll 460ms cubic-bezier(.22, 1, .36, 1); }
.cart-flight-hit-soft { animation: cart-flight-soft 400ms ease; }
@keyframes cart-flight-hit { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 65% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes cart-count-roll { from { transform: translateY(70%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes cart-flight-soft { 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .cart-flight-hit, .cart-flight-hit * { animation: none !important; } }
.cart-flight-gift { position: fixed; z-index: 1; width: 22px; height: 22px; opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 8px color-mix(in oklab, var(--gift-accent) 45%, transparent)); will-change: transform, opacity; }
.cart-flight-gift svg { display: block; width: 100%; height: 100%; }
.cart-flight-gift { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in oklab, oklch(1 0 0) 95%, transparent), color-mix(in oklab, var(--gift-accent-mist, var(--secondary)) 90%, transparent)); border: 1.5px solid var(--gift-amber-300, var(--accent)); box-shadow: 0 0 0 3px color-mix(in oklab, var(--gift-amber-300, var(--accent)) 30%, transparent), 0 6px 16px color-mix(in oklab, var(--gift-accent) 45%, transparent); }

/* ===== site: gifts (badge, ticket, cart line, reveal, unbox, mystery, surprise box) ===== */

/* prompt-313 (replaces prompt-272 royal blue): free-gift presentation — the active template's primary colour with warm gold/amber accents on light glass; transform/opacity motion, reduced-motion aware. */
/* Tokens are re-evaluated on each [data-store-theme] scope so gifts follow that template's primary colour. */
.buraq-ux, .buraq-ux-scope {
  --gift-amber-50: oklch(.987 .022 95.3);
  --gift-amber-100: oklch(.962 .059 95.6);
  --gift-amber-300: oklch(.879 .169 91.6);
  --gift-amber-600: oklch(.666 .179 58.3);
  --gift-amber-800: oklch(.473 .137 46.2);
  --gift-accent: var(--primary);
  --gift-cart-gold: oklch(.76 .14 85);
  --gift-cart-gold-deep: oklch(.53 .12 75);
  --gift-cart-gold-light: oklch(.95 .08 93);
  --gift-accent-deep: color-mix(in oklab, var(--primary) 70%, var(--gift-amber-800));
  --gift-accent-soft: color-mix(in oklab, var(--gift-amber-300) 80%, transparent);
  --gift-accent-mist: var(--gift-amber-50);
  --gift-on-accent: oklch(.995 .008 95);
  --gift-ink: color-mix(in oklab, var(--primary) 30%, oklch(.22 .02 50));
  --gift-readable: oklch(.40 .05 55);
  --gift-glass: color-mix(in oklab, oklch(.99 .012 95) 38%, transparent);
  --gift-glass-strong: color-mix(in oklab, var(--gift-amber-50) 90%, transparent);
  --gift-glass-item: color-mix(in oklab, oklch(1 0 0) 62%, transparent);
  --gift-glass-border: color-mix(in oklab, var(--gift-amber-300) 80%, transparent);
  --gift-item-border: color-mix(in oklab, var(--gift-amber-300) 55%, transparent);
  --gift-glass-blur: blur(28px) saturate(160%);
  --gift-glass-shadow: 0 1px 0 color-mix(in oklab, oklch(1 0 0) 80%, transparent) inset, 0 18px 50px -18px color-mix(in oklab, var(--gift-amber-800) 32%, transparent);
  --gift-sheen: linear-gradient(100deg, var(--primary) 0%, var(--gift-amber-800) 40%, var(--gift-amber-600) 50%, var(--gift-amber-800) 60%, var(--primary) 100%);
  --gift-button: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 65%, var(--gift-amber-800)));
  --gift-ease: cubic-bezier(.16, 1, .3, 1);
}
@keyframes gift-cine-in { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(8px); } }
@keyframes gift-title-sheen { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes gift-shimmer { to { transform: translateX(120%); } }
@keyframes gift-sweep { 0%, 75% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.buraq-has-gifts { position: relative; min-width: 0; height: 100%; container-type: inline-size; }
.gift-badge { position: absolute; z-index: 11; top: .5rem; right: .5rem; left: auto; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 3.75rem); padding: 4px 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.3; pointer-events: none; color: var(--primary); background: color-mix(in oklab, var(--gift-amber-100, oklch(0.96 0.04 85)) 92%, var(--background)); backdrop-filter: blur(8px); border: 1px solid color-mix(in oklab, var(--gift-amber-300, oklch(0.85 0.1 85)) 60%, transparent); box-shadow: 0 4px 14px -6px color-mix(in oklab, var(--gift-amber-800) 45%, transparent); transform: translateZ(0); transition: transform .5s var(--gift-ease), box-shadow .5s var(--gift-ease); }
/* Aura's discount badge also sits top-right: the gift badge steps below it. */
.gift-badge svg { color: var(--primary); }
.gift-badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, color-mix(in oklab, oklch(1 0 0) 75%, transparent) 50%, transparent 65%); transform: translateX(-120%); }
@media (hover: hover) { .buraq-has-gifts:hover .gift-badge { transform: translateY(-1px) scale(1.05); } .buraq-has-gifts:hover .gift-badge::after { animation: gift-shimmer .9s var(--gift-ease); } }
.gift-badge-value { white-space: pre; }
@container (max-width: 210px) { .gift-badge-value { display: none; } }

.gift-ticket { position: relative; margin-top: 1rem; display: grid; gap: .75rem; padding: 16px; overflow: hidden; border-radius: 20px; color: var(--gift-ink); background: linear-gradient(160deg, color-mix(in oklab, oklch(1 0 0) 88%, transparent), color-mix(in oklab, oklch(1 0 0) 66%, transparent)); backdrop-filter: var(--gift-glass-blur); border: 1px solid var(--gift-glass-border); box-shadow: var(--gift-glass-shadow); animation: gift-cine-in .9s .1s var(--gift-ease) both; }
.gift-ticket::before, .gift-ticket::after { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--background); border: 1px solid var(--gift-item-border); }
.gift-ticket::before { left: -9px; } .gift-ticket::after { right: -9px; }
.gift-ticket-title { font-weight: 800; color: var(--primary); }
.gift-ticket-sub { font-size: 12px; color: var(--gift-readable); line-height: 1.65; overflow-wrap: anywhere; }
.gift-ticket-note { font-size: 11px; color: var(--gift-readable); }
.gift-reveal-btn { position: relative; overflow: hidden; min-height: 44px; border-radius: 14px; font-weight: 700; color: var(--gift-on-accent); background: var(--gift-button); box-shadow: 0 12px 28px -14px color-mix(in oklab, var(--gift-accent) 80%, transparent); transform: translate(var(--mx, 0), var(--my, 0)); transition: transform .35s var(--gift-ease), box-shadow .35s var(--gift-ease); }
.gift-reveal-btn:hover { box-shadow: 0 16px 34px -14px color-mix(in oklab, var(--gift-accent) 90%, transparent); }
.gift-reveal-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, color-mix(in oklab, oklch(1 0 0) 35%, transparent) 50%, transparent 65%); transform: translateX(-120%); animation: gift-sweep 4s ease-in-out infinite; }
.gift-reveal-btn:focus-visible { outline: 2px solid var(--gift-accent); outline-offset: 3px; }

.gift-box-icon rect { fill: var(--gift-accent); } .gift-box-icon .gift-box-ribbon { stroke: var(--gift-on-accent); stroke-width: 2; } .gift-box-icon .gift-box-bow { fill: var(--gift-accent-soft); stroke: var(--gift-accent-deep); stroke-width: .8; }
.cart-gift-line { margin-top: 4px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; width: 100%; min-width: 0; column-gap: 6px; row-gap: 1px; padding: 4px 8px; border-radius: 10px; font-size: 11.5px; line-height: 1.45; text-align: start; cursor: pointer; color: var(--gift-ink); background: color-mix(in oklab, oklch(1 0 0) 82%, var(--background)); border: 1px solid var(--gift-glass-border); animation: gift-cine-in .6s var(--gift-ease) both; transition: transform .25s var(--gift-ease), box-shadow .25s var(--gift-ease); }
.cart-gift-line:hover { box-shadow: 0 6px 16px -10px color-mix(in oklab, var(--gift-amber-800) 60%, transparent); }
.cart-gift-line:active { transform: scale(.98); }
.cart-gift-line:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cart-gift-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; color: var(--primary); }
.cart-gift-free { grid-column: 2 / -1; grid-row: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800; color: var(--gift-amber-800); }
.cart-gift-view { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; padding: 1px 6px 1px 4px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; color: var(--primary-foreground); background: var(--primary); }
.cart-gift-value { margin-top: 4px; display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11.5px; font-weight: 800; line-height: 1.4; color: var(--primary); overflow-wrap: anywhere; }
.cart-gift-line .gift-box-icon rect { fill: var(--gift-cart-gold); }
.cart-gift-line .gift-box-icon .gift-box-ribbon { stroke: var(--gift-cart-gold-light); }
.cart-gift-line .gift-box-icon .gift-box-bow { fill: var(--gift-cart-gold-light); stroke: var(--gift-cart-gold-deep); }
.cart-gift-line .gift-box-icon { filter: drop-shadow(0 1px 1px var(--gift-cart-gold-deep)); }

/* Product slots keep their template card geometry; the last row centres instead of stretching. */

.gift-reveal-overlay { --unbox-light: radial-gradient(ellipse, oklch(1 0 0) 0%, oklch(.917 .08 205 / .9) 30%, oklch(.828 .111 230 / .6) 52%, transparent 70%); position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 12px; background: color-mix(in oklab, var(--gift-ink) 48%, transparent); backdrop-filter: blur(10px); }
.gift-unbox-dialog { position: relative; width: min(95vw, 640px); max-height: 90dvh; min-height: 140px; }
.gift-reveal-panel { display: flex; flex-direction: column; width: 100%; max-height: 90dvh; overflow: hidden; border-radius: 12px; color: var(--gift-ink); background: color-mix(in oklab, oklch(1 0 0) 85%, transparent); backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%); border: 1px solid color-mix(in oklab, oklch(1 0 0) 60%, transparent); box-shadow: 0 25px 50px -12px color-mix(in oklab, oklch(0 0 0) 25%, transparent); }
.gift-reveal-header { flex-shrink: 0; padding: 20px 20px 12px; padding-inline-end: 58px; }
.gift-reveal-eyebrow { margin-bottom: 4px; font-size: 12px; color: var(--gift-readable); }
.gift-reveal-title { font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; }
.gift-unbox-dialog > .gift-reveal-close { position: absolute; z-index: 3; top: 14px; inset-inline-end: 14px; }
.gift-reveal-close { display: grid; flex-shrink: 0; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--gift-ink); background: var(--gift-on-accent); border: 1px solid var(--gift-item-border); opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.85); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.gift-reveal-close.is-ready { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.gift-reveal-close:hover { transform: rotate(90deg); }
.gift-reveal-scroll { min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.gift-reveal-grid { padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .gift-reveal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* prompt-316: owner-chosen 3-column bundles stay inside the window on phones with compact cards. */
.gift-reveal-grid[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; }
@media (min-width: 640px) { .gift-reveal-grid[data-columns="3"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px; } }
@media (max-width: 639px) {
  .gift-reveal-grid[data-columns="3"] .gift-reveal-item { gap: 5px; padding: 6px; }
  .gift-reveal-grid[data-columns="3"] .gift-reveal-name { font-size: 10.5px; line-height: 1.5; }
  .gift-reveal-grid[data-columns="3"] .gift-reveal-value { gap: 3px; font-size: 10px; }
  .gift-reveal-grid[data-columns="3"] .gift-reveal-value strong { padding: 0 5px; }
  .gift-reveal-grid[data-columns="3"] .gift-reveal-number { top: 4px; inset-inline-start: 4px; min-width: 22px; padding: 1px 4px; font-size: 9.5px; }
}
.gift-reveal-grid { overflow-x: hidden; }
.gift-reveal-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px 16px calc(16px + env(safe-area-inset-bottom)); }
.gift-footer-btn { min-width: 0; height: 44px; gap: 5px; padding-inline: 12px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1; }
@media (min-width: 640px) { .gift-footer-btn { font-size: 14px; } }
.gift-footer-btn svg { width: 16px; height: 16px; }
.gift-footer-buy { color: var(--gift-on-accent); background: var(--gift-button); border: 0; }
.gift-footer-buy:hover { filter: brightness(1.06); }
.gift-footer-wide { grid-column: 1 / -1; }
.gift-reveal-item { position: relative; isolation: isolate; min-width: 0; display: grid; align-content: start; justify-items: center; gap: 8px; padding: 10px; border-radius: 10px; background: var(--gift-glass-item); border: 1px solid var(--gift-item-border); text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gift-reveal-media { display: block; width: 100%; }
.gift-reveal-number { position: absolute; z-index: 2; top: 6px; inset-inline-start: 6px; min-width: 26px; padding: 2px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 800; line-height: 1.4; letter-spacing: .04em; font-variant-numeric: tabular-nums; direction: ltr; color: var(--primary-foreground); background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 55%, var(--gift-amber-600))); box-shadow: 0 0 0 1.5px var(--gift-amber-300), 0 3px 8px -3px color-mix(in oklab, var(--gift-amber-800) 60%, transparent); }
.gift-reveal-fx { position: absolute; z-index: 3; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.gift-reveal-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 2px var(--gift-amber-300), inset 0 0 18px color-mix(in oklab, var(--gift-amber-300) 70%, transparent); }
.gift-reveal-shimmer { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, color-mix(in oklab, var(--gift-amber-100) 85%, transparent) 48%, color-mix(in oklab, oklch(1 0 0) 70%, transparent) 52%, transparent 70%); }
.gift-reveal-value { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 11px; color: var(--gift-readable); }
.gift-reveal-value strong { padding: 0 8px; border-radius: 999px; font-weight: 800; color: var(--gift-amber-800); background: var(--gift-amber-100); border: 1px solid var(--gift-glass-border); }
.gift-unbox-stage { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; pointer-events: none; }
.gift-unbox-box { position: relative; width: 112px; height: 104px; perspective: 550px; }
.gift-unbox-base { position: absolute; inset: 24px 6px 0; border-radius: 6px; background: var(--gift-button); box-shadow: var(--gift-glass-shadow); }
.gift-unbox-base::after { content: ''; position: absolute; inset: 0 42%; background: var(--gift-accent-soft); }
.gift-unbox-lid { position: absolute; inset: 14px 0 auto; height: 28px; border-radius: 5px; background: var(--gift-accent); border: 1px solid var(--gift-glass-border); transform-origin: center top; }
.gift-unbox-bow { position: absolute; top: -15px; left: 36px; }
.gift-unbox-radiance { position: absolute; width: min(85vw, 360px); aspect-ratio: 1; background: var(--unbox-light); }
.gift-unbox-spark { position: absolute; color: oklch(1 0 0); filter: drop-shadow(0 0 4px oklch(.746 .16 233)); }
.gift-unbox-spark:nth-child(odd) { color: oklch(.828 .111 230); }
.gift-unbox-spark-0 { top: 20%; left: 30%; } .gift-unbox-spark-1 { top: 28%; left: 65%; }
.gift-unbox-spark-2 { top: 48%; left: 23%; } .gift-unbox-spark-3 { top: 56%; left: 74%; }
.gift-unbox-spark-4 { top: 69%; left: 35%; } .gift-unbox-spark-5 { top: 75%; left: 58%; }
.gift-unbox-spark-6 { top: 38%; left: 48%; } .gift-unbox-spark-7 { top: 15%; left: 53%; }
.gift-reveal-photo { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: color-mix(in oklab, oklch(1 0 0) 70%, transparent); }
.gift-reveal-name { font-size: 11.5px; line-height: 1.6; color: var(--gift-ink); overflow-wrap: anywhere; }
.gift-mystery { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; }
.gift-mystery-aura { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--gift-accent) 40%, transparent), transparent 70%); filter: blur(8px); animation: gift-aura 3.4s ease-in-out infinite; }
.gift-mystery-box { position: relative; width: 56%; height: 56%; animation: gift-float 3.4s ease-in-out infinite; }
@keyframes gift-float { 50% { transform: translateY(-5px); } }
@keyframes gift-aura { 50% { opacity: .55; transform: scale(1.1); } }

/* Saved order gifts: static, wrapping, read-only; isolated from store/admin theme palettes. */
.order-gift-snapshots { min-width: 0; margin-top: 10px; padding: 12px; border-inline-start: 3px solid var(--gift-accent); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.order-gift-heading { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; }
.order-gift-heading svg { color: var(--gift-accent); }
.order-gift-compact { color: var(--foreground); background: color-mix(in oklab, var(--primary) 4%, var(--background)); }
.order-gift-celebration { margin-top: 24px; padding: 20px; color: var(--gift-ink); background: linear-gradient(160deg, color-mix(in oklab, oklch(1 0 0) 88%, transparent), color-mix(in oklab, oklch(1 0 0) 66%, transparent)); backdrop-filter: var(--gift-glass-blur); border: 1px solid var(--gift-glass-border); border-radius: 16px; box-shadow: var(--gift-glass-shadow); animation: gift-cine-in .9s .2s var(--gift-ease) both; }
.order-gift-celebration .order-gift-heading { font-size: 16px; }
.order-gift-packing { color: var(--gift-ink); background: var(--gift-glass-strong); backdrop-filter: var(--gift-glass-blur); border: 1px solid var(--gift-glass-border); border-radius: 12px; box-shadow: var(--gift-glass-shadow); }
.order-gift-packing .order-gift-heading { font-size: 14px; }
.order-gift-photo-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(90px,1fr)); gap: 16px; margin-top: 12px; }
.order-gift-photo-grid > li { padding: 10px; border-radius: 12px; background: var(--gift-glass-item); border: 1px solid var(--gift-item-border); }
.order-gift-photo { width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: contain; background: color-mix(in oklab, oklch(1 0 0) 70%, transparent); border: 1px solid var(--gift-item-border); border-radius: 8px; }

/* prompt-270/272: gift micro-interactions — add-to-cart gift line, gift trail icons, gift-aware hesitation panel. */
.purchase-gift-line { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 12px; overflow: hidden; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--gift-accent-deep); background: var(--gift-glass-strong); backdrop-filter: var(--gift-glass-blur); border: 1px solid var(--gift-glass-border); box-shadow: var(--gift-glass-shadow); animation: gift-cine-in 520ms 180ms var(--gift-ease) both; }
.purchase-gift-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, color-mix(in oklab, oklch(1 0 0) 75%, transparent) 50%, transparent 65%); transform: translateX(-120%); animation: gift-shimmer 900ms 600ms var(--gift-ease) both; pointer-events: none; }
.cart-flight-gift { position: fixed; z-index: 1; width: 22px; height: 22px; opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 8px color-mix(in oklab, var(--gift-accent) 45%, transparent)); will-change: transform, opacity; }
.cart-flight-gift svg { display: block; width: 100%; height: 100%; }
.hes-panel[data-gifts] { --purchase-gold: var(--gift-accent-soft); color: var(--gift-ink); background: linear-gradient(175deg, color-mix(in oklab, oklch(1 0 0) 90%, transparent), color-mix(in oklab, oklch(1 0 0) 74%, transparent) 75%); backdrop-filter: var(--gift-glass-blur); border: 1px solid var(--gift-glass-border); box-shadow: var(--gift-glass-shadow); }
.hes-panel[data-gifts] .hes-text, .hes-panel[data-gifts] .hes-close, .hes-panel[data-gifts] .hes-later { color: var(--gift-readable); }
.hes-panel[data-gifts] .hes-name { color: var(--gift-accent); }
.hes-panel[data-gifts] .hes-photo { background: color-mix(in oklab, oklch(1 0 0) 80%, transparent); }
.hes-gift-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 2px; padding: 5px 12px; overflow: hidden; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--gift-accent-deep); background: color-mix(in oklab, var(--gift-accent-mist) 80%, transparent); backdrop-filter: var(--gift-glass-blur); border: 1px solid var(--gift-item-border); animation: hes-slide 620ms 1.2s var(--gift-ease) both; }
.hes-gift-chip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, color-mix(in oklab, oklch(1 0 0) 75%, transparent) 50%, transparent 65%); transform: translateX(-120%); animation: gift-sweep 4s 2s ease-in-out infinite; pointer-events: none; }
.hes-gift-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Headline hierarchy: primary-to-gold sheen text, slowly sweeping. */
.gift-ticket-title, .gift-reveal-title, .order-gift-celebration .order-gift-heading,
.order-gift-packing .order-gift-heading, .hes-panel[data-gifts] .hes-title {
  color: var(--gift-accent-deep); background: var(--gift-sheen); background-size: 200% 100%; background-clip: text;
  -webkit-text-fill-color: transparent; animation: gift-title-sheen 6s linear infinite;
}
.hes-panel[data-gifts] .hes-title { animation: hes-slide 520ms 1.05s cubic-bezier(.22, 1, .36, 1) both, gift-title-sheen 6s 1.6s linear infinite; }
.order-gift-heading svg { -webkit-text-fill-color: initial; }
@media (prefers-reduced-motion: reduce) {
  .gift-badge, .gift-reveal-btn, .gift-reveal-close { transition: none; }
  .gift-badge::after, .gift-reveal-btn::after, .gift-mystery-box, .gift-mystery-aura, .gift-ticket, .cart-gift-line, .order-gift-celebration,
  .purchase-gift-line, .purchase-gift-line::after, .hes-gift-chip::after, .gift-ticket-title, .gift-reveal-title, .order-gift-heading { animation: none; }
  .gift-reveal-item { animation-duration: .01ms; animation-delay: 0s; }
  .cart-flight-gift { display: none; }
}

.surprise-box { position: relative; isolation: isolate; margin-top: 24px; padding: 20px 16px; overflow: hidden; border-radius: 16px; text-align: center; color: var(--gift-ink); background: linear-gradient(160deg, color-mix(in oklab, oklch(1 0 0) 90%, transparent), color-mix(in oklab, oklch(1 0 0) 70%, transparent)); backdrop-filter: blur(12px); border: 1px solid var(--gift-glass-border); box-shadow: var(--gift-glass-shadow); }
.surprise-box-title { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.surprise-box-closed { display: grid; place-items: center; margin-top: 12px; }
.surprise-box-trigger { height: auto; display: grid; justify-items: center; gap: 10px; padding: 12px 20px; border-radius: 16px; white-space: normal; }
.surprise-box-trigger:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.surprise-box-art { position: relative; display: block; width: 104px; height: 96px; }
.surprise-box-base { position: absolute; inset: 26px 8px 0; border-radius: 8px; background: var(--gift-button); box-shadow: 0 14px 30px -14px color-mix(in oklab, var(--primary) 70%, transparent); }
.surprise-box-lid { position: absolute; inset: 14px 0 auto; height: 24px; border-radius: 6px; background: var(--primary); box-shadow: inset 0 -2px 0 color-mix(in oklab, oklch(0 0 0) 15%, transparent); }
.surprise-box-ribbon { position: absolute; inset: 14px 44% 0; background: linear-gradient(180deg, var(--gift-amber-300), var(--gift-amber-600)); }
.surprise-box-bow { position: absolute; top: -12px; left: 50%; width: 40px; height: 40px; transform: translateX(-50%); }
.surprise-box-cta { display: inline-flex; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--gift-on-accent); background: var(--gift-button); box-shadow: 0 0 0 1px var(--gift-amber-300); }
.surprise-box-open { position: relative; margin-top: 12px; }
.surprise-box-burst { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.surprise-box-radiance { position: absolute; width: min(80vw, 320px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, oklch(1 0 0) 0%, oklch(.917 .08 205 / .9) 30%, oklch(.828 .111 230 / .6) 52%, transparent 70%); }
.surprise-box-spark { position: absolute; color: oklch(1 0 0); filter: drop-shadow(0 0 4px oklch(.746 .16 233)); }
.surprise-box-spark:nth-child(even) { color: oklch(.828 .111 230); }
.surprise-box-gifts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.surprise-box-gift { display: grid; justify-items: center; gap: 8px; width: min(42%, 160px); min-width: 0; padding: 10px; border-radius: 12px; background: color-mix(in oklab, oklch(1 0 0) 80%, transparent); border: 1px solid var(--gift-item-border); }
.surprise-box-photo { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
.surprise-box-name { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.surprise-box-message { margin-top: 14px; font-size: 13px; line-height: 1.8; color: var(--gift-readable); }
@media (prefers-reduced-motion: reduce) { .surprise-box-art { animation: none; } }

/* prompt-318: gift window colours only — emerald «مجاناً», white cards with soft slate borders, plain brand numbers. */
.gift-reveal-value strong { color: oklch(.508 .118 165.6); background: oklch(.979 .021 166.1); border: 1px solid oklch(.905 .093 164.2 / .8); font-weight: 700; }
.gift-reveal-item { background: oklch(1 0 0); border: 1px solid oklch(.968 .007 247.9); box-shadow: 0 2px 10px -4px oklch(.2 .02 260 / .12); }
.gift-reveal-close { background: oklch(1 0 0); border: 1px solid oklch(.929 .013 255.5); }
.gift-reveal-number { background: var(--primary); color: oklch(1 0 0); box-shadow: none; }

/* prompt-321: surprise gift card in the reveal window + compact cart footer */
.gift-reveal-item[data-mystery] { background: linear-gradient(160deg, oklch(1 0 0), color-mix(in oklab, var(--primary) 7%, oklch(.985 .01 20))); border: 1.5px solid color-mix(in oklab, var(--primary) 30%, transparent); box-shadow: 0 4px 16px -6px color-mix(in oklab, var(--primary) 30%, transparent); }
.gift-mystery-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--primary) 22%, transparent), transparent 70%); filter: blur(6px); }
.gift-mystery-wrap { position: relative; display: grid; place-items: center; width: 58%; height: 58%; color: var(--primary); }
.gift-mystery-wrap .gift-mystery-box { width: 100%; height: 100%; animation: none; }
.gift-mystery-star { position: absolute; display: grid; color: oklch(.78 .14 80); }
.gift-mystery-star svg { width: 100%; height: 100%; }
.gift-mystery-star-0 { top: 10%; right: 14%; width: 16px; height: 16px; }
.gift-mystery-star-1 { bottom: 16%; left: 12%; width: 12px; height: 12px; }
.gift-mystery-star-2 { top: 22%; left: 20%; width: 10px; height: 10px; }
.gift-mystery-tease { display: block; font-size: 10.5px; font-weight: 600; color: color-mix(in oklab, var(--primary) 80%, var(--foreground)); }
/* ===== plugin: stacking above any theme (Elessi sidebars, quick-view, popups) ===== */
.buraq-ux.gift-reveal-overlay, .buraq-ux.purchase-celebration, .buraq-ux.hes-overlay, .buraq-ux.buraq-layer { z-index: 2147483000; }
.buraq-ux.cart-flight-layer { z-index: 999995; }
.cart-flight-hit, .cart-flight-hit-soft { display: inline-flex; }

/* ===== plugin: CSS versions of the site's framer-motion timings ===== */
.gift-reveal-overlay { animation: buraq-fade .15s ease both; }
.gift-reveal-overlay.is-closing { animation: buraq-fade-out .15s ease both; }
.gift-unbox-stage { animation: buraq-unbox-fly .5s cubic-bezier(.34,1.35,.64,1) both; }
.gift-unbox-radiance { opacity: 0; animation: buraq-radiance .65s .55s both; }
.gift-unbox-box { animation: buraq-box-wobble .6s .45s both; }
.gift-unbox-lid { animation: buraq-lid-open .35s .6s ease-out both; }
.gift-unbox-spark { opacity: 0; animation: buraq-unbox-spark .55s calc(.58s + var(--i) * 25ms) both; }
.gift-unbox-spark svg { width: 16px; height: 16px; }
.gift-reveal-panel { animation: buraq-panel-in .3s .85s both; }
.gift-reveal-item { animation: buraq-item-in .22s var(--d, 0s) cubic-bezier(.34,1.56,.64,1) both; transition: transform .15s ease; }
.gift-reveal-item:active { transform: scale(.95); }
.gift-reveal-number { animation: buraq-num-in .45s calc(var(--d, 0s) + .12s) cubic-bezier(.34,1.56,.64,1) both; }
.gift-reveal-item.is-tapped .gift-reveal-number { animation: buraq-num-tap .45s ease both; }
.gift-reveal-item.is-tapped .gift-reveal-media { animation: buraq-media-tap .5s cubic-bezier(.34,1.56,.64,1) both; }
.gift-reveal-glow { animation: buraq-glow .7s ease both; }
.gift-reveal-shimmer { animation: buraq-shimmer-pass .65s ease-out both; }
.gift-mystery-glow { animation: buraq-myst-glow 3s ease-in-out infinite; }
.gift-mystery-wrap { animation: buraq-myst-wrap 3.2s ease-in-out infinite; }
.gift-mystery-star { opacity: 0; animation: buraq-myst-star 2.4s calc(var(--k) * .8s) infinite; }
.gift-mystery-box { width: 100%; height: 100%; }
.surprise-box-art { animation: buraq-surprise-wiggle 2.8s ease-in-out infinite; }
.surprise-box-open .surprise-box-radiance { opacity: 0; animation: buraq-radiance-s .9s both; }
.surprise-box-spark { opacity: 0; animation: buraq-surprise-spark .7s calc(.1s + var(--i) * 30ms) both; }
.surprise-box-spark svg { width: 16px; height: 16px; }
.surprise-box-gift { animation: buraq-surprise-gift .55s calc(.35s + var(--i) * 120ms) cubic-bezier(.34,1.56,.64,1) both; }
.surprise-box-message { animation: buraq-fade .4s .8s both; }
.surprise-box-closed.is-leaving { animation: buraq-shrink-out .25s both; }
@keyframes buraq-fade { from { opacity: 0; } }
@keyframes buraq-fade-out { to { opacity: 0; } }
@keyframes buraq-unbox-fly { from { transform: translate(var(--ox, 0px), var(--oy, 0px)) scale(.24); } to { transform: none; } }
@keyframes buraq-radiance { 0% { opacity: 0; transform: scale(.2); } 50% { opacity: .95; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes buraq-box-wobble { 0% { transform: rotate(0); opacity: 1; } 33% { transform: rotate(-3deg); } 66% { transform: rotate(3deg); opacity: 1; } 100% { transform: rotate(0) scale(.85); opacity: 0; } }
@keyframes buraq-lid-open { to { transform: rotateX(-115deg) translateY(-30px); } }
@keyframes buraq-unbox-spark { 0% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1) translateY(-17px); } 100% { opacity: 0; transform: scale(.4) translateY(-35px); } }
@keyframes buraq-panel-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes buraq-item-in { from { opacity: 0; transform: translateY(24px) scale(.92); } }
@keyframes buraq-num-in { from { opacity: 0; transform: scale(0) rotate(-20deg); } }
@keyframes buraq-num-tap { 50% { transform: scale(1.3); } }
@keyframes buraq-media-tap { 50% { transform: scale(1.08); } }
@keyframes buraq-glow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes buraq-shimmer-pass { 0% { transform: translateX(-130%); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(130%); opacity: 0; } }
@keyframes buraq-myst-glow { 0%, 100% { opacity: .5; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes buraq-myst-wrap { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-3px); } }
@keyframes buraq-myst-star { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes buraq-surprise-wiggle { 0% { transform: none; } 11% { transform: rotate(-4deg) translateY(-2px); } 22% { transform: rotate(4deg) translateY(-4px); } 32% { transform: rotate(-2deg) translateY(-2px); } 43%, 100% { transform: none; } }
@keyframes buraq-radiance-s { 0% { opacity: 0; transform: scale(.2); } 50% { opacity: .9; transform: scale(1.2); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes buraq-surprise-spark { 0% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.5); } }
@keyframes buraq-surprise-gift { from { opacity: 0; transform: translateY(28px) scale(.7) rotate(-6deg); } }
@keyframes buraq-shrink-out { to { opacity: 0; transform: scale(.9); } }

/* ===== plugin: gift line inside theme mini carts ===== */
.buraq-mini-line { display: block; width: 100%; margin-top: 4px; }
.buraq-ux.cart-gift-line { font-family: inherit; }
.cart-gift-line svg.lucide { width: 12px; height: 12px; }
.gift-ticket .gift-ticket-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; }
.gift-ticket .gift-ticket-row { display: flex; align-items: center; gap: 12px; }
.gift-ticket .gift-ticket-copy { min-width: 0; }
.gift-reveal-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 0 16px; }
.gift-footer-btn { display: inline-flex; align-items: center; justify-content: center; }
.gift-footer-btn:not(.gift-footer-buy) { color: var(--foreground); background: var(--background); border: 1px solid var(--border); }
.gift-footer-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== plugin: celebration actions (owner request: view cart / keep shopping) ===== */
.purchase-celebration-card [role="status"] { display: grid; justify-items: center; }
.purchase-celebration-close { display: grid; place-items: center; border-radius: 999px; }
.purchase-celebration-close svg { width: 16px; height: 16px; }
.purchase-success-seal > svg { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.purchase-celebration-actions { display: grid; gap: 8px; width: 100%; margin-top: 4px; }
.purchase-celebration-actions a, .purchase-celebration-actions button { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.purchase-celebration-actions .buraq-go { color: var(--purchase-foreground); background: var(--purchase-gradient); }
.purchase-celebration-actions .buraq-stay { min-height: 32px; font-size: 12px; color: var(--foreground); }
@media (hover: hover) { .purchase-celebration-card:hover .purchase-celebration-timer { animation-play-state: paused; } }
.purchase-free-ship-text { white-space: nowrap; }
.purchase-free-ship[data-left] .purchase-free-ship-text { white-space: normal; }

/* ===== plugin: hesitation (site markup, plugin z-index) ===== */
.hes-close { display: grid; place-items: center; border-radius: 999px; }
.hes-close svg { width: 16px; height: 16px; }
.hes-cta svg { fill: currentColor; stroke: none; }
.hes-gift-chip svg.gift-box-icon { width: 16px; height: 16px; }

/* ===== plugin: side cart in the site's emerald "joy" drawer style (opens from the left) ===== */
.buraq-drawer { position: fixed; inset: 0; z-index: 999980; visibility: hidden; pointer-events: none; transition: visibility 0s linear .32s; }
.buraq-drawer__backdrop { position: absolute; inset: 0; background: oklch(0 0 0 / .42); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility 0s linear .25s; cursor: pointer; }
.buraq-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: 80vw; max-width: 28rem; display: flex; flex-direction: column; background: var(--background); color: var(--foreground); box-shadow: 20px 0 60px -20px oklch(0 0 0 / .35); transform: translateX(-102%); transition: transform .32s cubic-bezier(.2,.9,.3,1); outline: none; }
.buraq-drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.buraq-drawer.is-open .buraq-drawer__backdrop { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.buraq-drawer.is-open .buraq-drawer__panel { transform: none; }
.buraq-drawer .cart-sheet-head { position: relative; display: block; flex-shrink: 0; padding: 10px 16px 8px; padding-right: 40px; background: var(--purchase-gradient); color: var(--purchase-foreground); }
.buraq-drawer .cart-sheet-head h2 { font-size: 17px; line-height: 26px; font-weight: 800; color: inherit; display: flex; align-items: center; gap: 6px; }
.buraq-drawer .buraq-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; background: color-mix(in oklab, var(--purchase-foreground) 22%, transparent); }
.buraq-drawer .buraq-drawer-x { position: absolute; top: 8px; right: 6px; z-index: 5; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; color: var(--purchase-foreground); background: color-mix(in oklab, var(--purchase-foreground) 18%, transparent); }
.buraq-drawer .buraq-drawer-x svg { width: 14px; height: 14px; }
.buraq-drawer .purchase-journey { margin: 6px 0 0; gap: 4px; color: inherit; margin-right: -32px; }
.buraq-drawer .purchase-journey li { gap: 3px; font-size: 10px; }
.buraq-drawer .purchase-journey li strong { white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.4; }
.buraq-drawer .purchase-journey li > span { width: 24px; height: 24px; background: transparent; color: var(--purchase-foreground); border-color: color-mix(in oklab, var(--purchase-foreground) 60%, transparent); }
.buraq-drawer .purchase-journey li[data-state="done"] > span { background: var(--purchase-foreground); color: var(--purchase-success); border-color: var(--purchase-foreground); }
.buraq-drawer .purchase-journey li[data-state="current"] > span { color: var(--purchase-gold); border-color: var(--purchase-gold); background: transparent; outline: 0; }
.buraq-drawer .purchase-journey li::after { top: 11px; inset-inline-start: calc(50% + 15px); width: calc(100% - 24px); background: color-mix(in oklab, var(--purchase-foreground) 55%, transparent); }
.buraq-drawer .purchase-journey li[data-state="current"]::before, .buraq-drawer .purchase-journey li:first-child::before { top: 11px; inset-inline-start: calc(50% + 15px); width: calc(100% - 24px); }
.buraq-drawer .purchase-journey svg { width: 12px; height: 12px; }
.buraq-drawer__items { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 12px; }
.buraq-item { position: relative; display: flex; gap: 10px; padding: 10px 0; min-height: 106px; border-bottom: 1px solid var(--border); transition: opacity .2s; }
.buraq-item.is-busy { opacity: .5; pointer-events: none; }
.buraq-item img { width: 80px; height: 72px; flex: none; object-fit: contain; border-radius: 6px; background: var(--photo-stage); }
.buraq-item__info { flex: 1; min-width: 0; padding-left: 26px; }
.buraq-item__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.5; font-weight: 700; color: var(--foreground); }
.buraq-item__meta { display: block; font-size: 11px; color: var(--muted-foreground); }
.buraq-item__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.buraq-item__price { font-size: 13px; font-weight: 800; color: var(--foreground); white-space: nowrap; }
.buraq-item__remove { position: absolute; top: 10px; left: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; color: var(--muted-foreground); }
.buraq-item__remove svg { width: 14px; height: 14px; }
.buraq-qty { display: inline-flex; align-items: center; height: 28px; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.buraq-qty button { display: grid; place-items: center; width: 28px; height: 28px; color: var(--foreground); }
.buraq-qty button svg { width: 12px; height: 12px; }
.buraq-qty button:disabled { opacity: .35; cursor: not-allowed; }
.buraq-qty span { min-width: 22px; text-align: center; font-size: 12px; font-weight: 700; }
.buraq-drawer__foot { flex-shrink: 0; display: grid; gap: 6px; padding: 8px 12px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--background); }
.buraq-ship-note { display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; line-height: 1.6; color: var(--foreground); background: color-mix(in oklab, var(--primary) 5%, var(--background)); }
.buraq-ship-note.is-reached { color: var(--purchase-success-deep); background: oklch(.979 .021 166.1); }
.buraq-ship-bar { height: 5px; border-radius: 999px; background: color-mix(in oklab, var(--purchase-success) 14%, transparent); overflow: hidden; }
.buraq-ship-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purchase-gold), var(--purchase-success)); transition: width .6s ease; }
.buraq-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--muted-foreground); }
.buraq-subtotal b { font-size: 17px; font-weight: 800; color: var(--foreground); }
.buraq-drawer .cart-checkout { display: flex; align-items: center; justify-content: center; width: 100%; height: 42px; padding: 0 12px; border-radius: 6px; background: var(--purchase-gradient); color: var(--purchase-foreground); font-weight: 700; font-size: 14px; }
.buraq-drawer .cart-continue { display: flex; align-items: center; justify-content: center; width: 100%; height: 28px; font-size: 11px; color: var(--foreground); }
.buraq-empty { display: grid; justify-items: center; gap: 10px; padding: 60px 0; font-size: 13px; color: var(--muted-foreground); text-align: center; }
.buraq-empty svg { width: 40px; height: 40px; color: var(--purchase-success); }
.buraq-cart-loading::before { content: ""; width: 24px; height: 24px; border: 3px solid color-mix(in oklab, var(--purchase-success) 20%, transparent); border-top-color: var(--purchase-success); border-radius: 50%; animation: buraq-cart-spin .7s linear infinite; }
.buraq-cart-retry { padding: 8px 14px !important; border: 1px solid var(--border) !important; border-radius: 8px !important; color: var(--purchase-success-deep) !important; font-weight: 700 !important; }
@keyframes buraq-cart-spin { to { transform: rotate(360deg); } }

/* ===== plugin: retention window (site .cart-retention) ===== */
.buraq-layer { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: color-mix(in oklab, var(--foreground) 28%, transparent); backdrop-filter: blur(3px); animation: buraq-fade .2s ease both; }
.cart-retention { display: grid; gap: 12px; width: calc(100% - 32px); max-width: 400px; padding: 22px 18px 16px; border-radius: 8px; text-align: center; background: var(--background); color: var(--foreground); box-shadow: 0 30px 60px -20px oklch(0 0 0 / .35); animation: purchase-spring 520ms cubic-bezier(.34,1.56,.64,1) both; }
.cart-retention h2 { font-size: 17px; font-weight: 800; }
.cart-retention p { font-size: 13px; line-height: 1.7; color: var(--muted-foreground); }
.cart-retention .buraq-retain-gifts { color: var(--primary); font-weight: 700; }
.cart-retention-photo { display: grid; place-items: center; width: 100px; height: 76px; margin-inline: auto; background: var(--photo-stage); border-radius: 6px; }
.cart-retention-photo img { width: 100%; height: 100%; object-fit: contain; }
.cart-retention .cart-retain { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border-radius: 8px; font-weight: 700; background: var(--purchase-gradient); color: var(--purchase-foreground); }
.cart-retention .cart-remove-confirm { font-size: 12px; color: var(--muted-foreground); padding: 6px; }

/* ===== plugin: thank-you ===== */
.buraq-thankyou { margin: 20px 0; }
.buraq-thankyou .order-gift-heading { font-size: 16px; }
.buraq-thankyou .order-gift-photo-grid { list-style: none; padding: 0; }
.buraq-thankyou .order-gift-photo-grid li > div { display: grid; gap: 8px; justify-items: center; text-align: center; }
.buraq-confetti { position: fixed; inset: 0; z-index: 999990; overflow: hidden; pointer-events: none; }
.buraq-confetti span { position: absolute; display: block; will-change: transform, opacity; }

/* ===== plugin: toast ===== */
.buraq-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 999999; max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 14px; background: oklch(.22 .02 30); color: oklch(1 0 0); font-size: 14px; box-shadow: 0 12px 30px -12px oklch(0 0 0 / .4); animation: buraq-fade .3s both; transition: opacity .4s; }
.buraq-toast.is-out { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .gift-reveal-overlay, .gift-reveal-panel, .gift-reveal-item, .gift-reveal-number, .gift-mystery-glow, .gift-mystery-wrap, .gift-mystery-star,
  .surprise-box-art, .surprise-box-gift, .surprise-box-message, .cart-retention, .buraq-layer { animation: none !important; }
  .gift-mystery-star { opacity: .8; }
  .gift-unbox-stage, .surprise-box-burst { display: none; }
}
.gift-badge svg.lucide { width: 14px; height: 14px; }
.buraq-ty-bundle { margin-top: 12px; font-size: 13px; }
.buraq-ty-bundle span { font-weight: 400; }
.order-gift-heading svg.lucide { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; }
.buraq-ux :is(.gift-reveal-close, .purchase-celebration-close, .hes-close, .gift-ticket-icon):focus { outline: none; }
.buraq-ux :is(.gift-reveal-close, .purchase-celebration-close, .hes-close, .gift-ticket-icon):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Theme-proofing: these controls are transparent on the site; beat theme "button { background }" rules. */
.buraq-ux .surprise-box-trigger, .buraq-ux .gift-ticket-icon, .buraq-ux .hes-close, .buraq-ux .purchase-celebration-close, .buraq-ux .hes-later,
.buraq-ux .buraq-stay, .buraq-ux .cart-remove-confirm, .buraq-ux .buraq-qty button, .buraq-ux .buraq-item__remove, .buraq-ux .cart-continue { background: transparent; border: 0; box-shadow: none; }
.buraq-ux .surprise-box-trigger { padding: 12px 20px; }
.buraq-ux .hes-later { padding: 8px 14px; }
.buraq-ux [tabindex="-1"]:focus { outline: none; }
.buraq-ux.buraq-savings { display: grid; gap: 5px; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; clear: both; align-self: stretch; overflow-wrap: anywhere; margin-block: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in oklab, var(--purchase-success) 5%, var(--background)); color: var(--foreground); font-size: 12px; }
.buraq-savings > strong { color: var(--purchase-success-deep); font-size: 13px; }
.buraq-savings p { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; margin: 0; }
.buraq-savings p > span { min-width: 0; overflow-wrap: anywhere; }
.buraq-savings b { flex: none; white-space: nowrap; }
.buraq-savings .buraq-savings-total { border-top: 1px solid var(--border); padding-top: 5px; font-weight: 700; }
.buraq-mini-savings { display: block !important; width: 100%; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.buraq-mini-savings .buraq-savings { margin-block: 8px; }

/* Closed layers do not retain an Android compositor backdrop or hit-test surface. */
.buraq-drawer[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.buraq-drawer[aria-hidden="true"] .buraq-drawer__backdrop { display: none; }
.buraq-layer { z-index: 2147483001; }
.gift-reveal-overlay { z-index: 2147483001; }

/* v1.4.5: temporary landing dock when the theme cart icon is scrolled out of view. */
.buraq-ux.cart-flight-dock { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 999994; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; color: var(--primary-foreground); background: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--background) 85%, transparent), 0 10px 24px -8px color-mix(in oklab, var(--primary) 70%, transparent); pointer-events: none; animation: cart-dock-in 260ms cubic-bezier(.34, 1.56, .64, 1) both; }
.buraq-ux.cart-flight-dock svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.buraq-ux.cart-flight-dock b { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; font-size: 11px; line-height: 18px; text-align: center; color: var(--primary); background: var(--background); box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 30%, transparent); }
.buraq-ux.cart-flight-dock.is-leaving { opacity: 0; transform: translateY(-8px) scale(.85); transition: opacity .3s ease, transform .3s ease; }
@keyframes cart-dock-in { from { opacity: 0; transform: translateY(-10px) scale(.7); } }
@media (prefers-reduced-motion: reduce) { .buraq-ux.cart-flight-dock { animation: none; } }
