.loyalty-wheel-content { padding:28px 20px; border:0; border-radius:24px; background:#fffaf1; overflow:hidden; color:#29213f }
.loyalty-wheel-close { position:absolute; right:18px; top:14px }
.loyalty-wheel-tier { margin:0 30px 8px; font-size:13px; font-weight:700; color:#766141 }
#loyalty-wheel-title { font-size:28px; font-weight:800; color:#29213f }
#loyalty-wheel-status { font-size:14px; margin-bottom:0; height:42px; overflow-y:auto }
.loyalty-wheel-frame { position:relative; width:min(78vw,360px); height:min(78vw,360px); margin:24px auto; padding:12px; border-radius:50%; background:#d8a23d; box-shadow:0 8px 0 #a87525,0 0 28px #3d2a3226 }
.loyalty-wheel-frame::after { content:''; position:absolute; inset:5px; border:3px dotted #fff5c6; border-radius:50%; pointer-events:none }
.loyalty-wheel-pointer { position:absolute; z-index:3; top:-11px; left:50%; transform:translateX(-50%); width:0; height:0; border-left:16px solid transparent; border-right:16px solid transparent; border-top:35px solid #ed5745; filter:drop-shadow(0 3px 2px #0004) }
.loyalty-wheel-art { position:relative; width:100%; height:100%; border-radius:50%; background:conic-gradient(#fff5d6 0deg 59deg,#d8a23d 59deg 60deg,#f7d781 60deg 119deg,#d8a23d 119deg 120deg,#fff5d6 120deg 179deg,#d8a23d 179deg 180deg,#f7d781 180deg 239deg,#d8a23d 239deg 240deg,#fff5d6 240deg 299deg,#d8a23d 299deg 300deg,#f7d781 300deg 359deg,#d8a23d 359deg 360deg); will-change:transform }
.loyalty-wheel-slice { position:absolute; transform:translate(-50%,-50%); width:29%; display:flex; flex-direction:column; align-items:center; gap:5px; font-size:clamp(9px,2.6vw,12px); line-height:1.15; font-weight:700; color:#362b12; text-align:center }
.loyalty-wheel-slice img { display:block; width:clamp(34px,12vw,58px); height:clamp(34px,12vw,58px); object-fit:contain }
.loyalty-wheel-hub { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:16%; height:16%; border-radius:50%; background:#fffaf1; border:4px solid #d8a23d; box-shadow:0 0 8px #0003; color:#be7c25; line-height:0 }
.loyalty-wheel-hub svg { display:block; width:24px; height:24px; max-width:100%; max-height:100%; fill:currentColor }
#loyalty-wheel-prize-image { width:84px; height:84px; object-fit:contain }
/* Reveal the prize by expanding the section below the stationary result wheel. */
.loyalty-wheel-content { max-height:calc(100dvh - 32px); overflow-y:auto }
.loyalty-wheel-result-space { display:grid; grid-template-rows:0fr; margin-bottom:0; transition:grid-template-rows .4s ease,margin-bottom .4s ease }
.loyalty-wheel-result-space.has-result { grid-template-rows:1fr; margin-bottom:16px }
#loyalty-wheel-reveal { min-height:0; overflow:hidden; opacity:1; transform:translateY(0); transition:opacity .35s ease,transform .35s ease; animation:none }
#loyalty-wheel-reveal.is-hidden { opacity:0; visibility:hidden; transform:translateY(8px); pointer-events:none }
.loyalty-wheel-result-image { height:88px; display:flex; align-items:center; justify-content:center }
#loyalty-wheel-result { overflow-wrap:anywhere; font-size:20px; line-height:1.3; margin:8px 0 }
#loyalty-wheel-continue { width:100%; min-height:44px }
.loyalty-wheel-hub { z-index:2 }
.loyalty-punch { flex:1; min-width:0; display:flex; align-items:center; justify-content:center; min-height:12px }
.loyalty-progress-image { width:100%; max-width:60px; height:52px; object-fit:contain; opacity:.35; filter:grayscale(1) }
.loyalty-punch.is-earned .loyalty-progress-image { opacity:1; filter:none }
.loyalty-punch-bar { display:block; width:100%; height:12px; border-radius:9px; background:#ffffff55 }
.loyalty-punch.is-earned .loyalty-punch-bar { background:#f8c644 }
@media (max-width:575px) { .loyalty-wheel-content { padding:24px 16px } .loyalty-wheel-frame { width:min(72vw,300px); height:min(72vw,300px); margin:20px auto } }
@media (prefers-reduced-motion:reduce) { #loyalty-wheel-reveal, .loyalty-wheel-result-space { transition:none } }

@media (max-height:740px) { .loyalty-wheel-frame { width:min(65vw,240px); height:min(65vw,240px); margin:16px auto } .loyalty-wheel-content { padding-top:20px;padding-bottom:20px } }

/* Compact menu header: progress and coin balance follow the supplied menu design. */
.menu-loyalty-header { position:fixed; top:130px; left:0; width:100%; z-index:110; padding:0 0 12px }
.menu-loyalty-header[hidden] { display:none }
.menu-loyalty-panel { display:grid; grid-template-columns:minmax(0,3fr) minmax(110px,2fr); width:100%; margin:auto; border-radius:16px; background:linear-gradient(115deg,var(--loyalty-start),var(--loyalty-end)); color:#fff; box-shadow:0 4px 12px #0001; overflow:hidden }
/* Tier colors come from the API palette; do not override them here. */
.menu-loyalty-progress { padding:12px 16px; min-width:0 }
.menu-loyalty-title { font-size:16px; font-weight:700; line-height:1.3; margin:0 0 6px; color:#fff !important }
.menu-loyalty-title span { font-weight:400 }
.menu-loyalty-punches { display:flex; gap:8px; max-width:280px; height:30px; align-items:center }
.menu-loyalty-punches .loyalty-progress-image { height:30px; max-width:36px }
.menu-loyalty-punches .loyalty-punch-bar { height:8px }
.menu-loyalty-count, .menu-loyalty-note, .menu-loyalty-value { display:block; font-size:12px; line-height:1.4 }
.menu-loyalty-coins { padding:12px 16px; border-left:1px solid #ffffff50; min-width:0 }
.menu-loyalty-coin-name { display:block; font-size:13px; overflow-wrap:anywhere; line-height:1.3 }
.menu-loyalty-balance { display:flex; flex-wrap:wrap; gap:6px; align-items:center; min-height:32px }
.menu-loyalty-balance img { flex-shrink:0; width:30px; height:30px; object-fit:contain }
.menu-loyalty-balance strong { font-size:20px; line-height:1.2; white-space:nowrap; font-variant-numeric:tabular-nums }
.menu-loyalty-balance strong.is-large-balance { font-size:16px }
.menu-loyalty-sign-in { display:inline-flex; align-items:center; min-height:44px; color:#fff !important; font-size:13px; text-decoration:underline; font-weight:600 }
.menu-loyalty-action { grid-column:1 / -1; padding:8px 16px; border-top:1px solid #ffffff50; font-size:13px; overflow-wrap:anywhere }
.menu-loyalty-action > span { display:block; font-size:12px }
.menu-loyalty-spin { background:#fffaf1; color:#382819; min-height:44px; white-space:normal; margin:0 }
.menu-loyalty-spin:hover, .menu-loyalty-spin:focus { background:#fff; color:#382819 }
.menu-loyalty-panel a:focus-visible, .menu-loyalty-panel button:focus-visible { outline:3px solid #fff; outline-offset:2px }
@media(max-width:575px) {
 .menu-loyalty-header .container { padding-left:16px; padding-right:16px }
 .menu-loyalty-progress, .menu-loyalty-coins { padding:10px 12px }
 .menu-loyalty-title { font-size:14px }
 .menu-loyalty-punches { gap:5px }
 .menu-loyalty-coin-name { font-size:12px }
 .menu-loyalty-balance strong { font-size:18px }
 .menu-loyalty-balance strong.is-large-balance { font-size:12px }
}

.menu-rewards-expanded > .menu-search-box-cont { margin-top:0 !important; padding-top:0 !important }

.menu-loyalty-punches { height:30px; margin:6px 0 3px; max-width:200px; gap:6px }
.menu-loyalty-punches .has-progress-image { flex:1; max-width:30px; aspect-ratio:1; height:auto; min-height:0 }
.menu-loyalty-punches .has-progress-image:not(.is-earned) { border-radius:50%; border:1px solid #ffffff66; background:transparent }
.menu-loyalty-punches .has-progress-image:not(.is-earned) .loyalty-progress-image { display:none }
.menu-loyalty-punches .has-progress-image.is-earned .loyalty-progress-image { max-width:30px; height:28px; opacity:1; filter:none }
.menu-loyalty-count { font-weight:400; font-size:11px }
.menu-loyalty-title strong { font-weight:700 }

/* Scope positioning and backdrop changes to the rewards wheel only. */
#loyalty-wheel-modal .modal-dialog { width:calc(100% - 32px); max-width:500px; min-height:calc(100dvh - 32px); margin:16px auto; display:flex; align-items:center }
#loyalty-wheel-modal .modal-dialog::before { display:none }
#loyalty-wheel-modal .modal-content { width:100%; max-height:calc(100dvh - 32px) }
.modal-backdrop.loyalty-wheel-backdrop.show { opacity:.7 }
.loyalty-tier-card { background:linear-gradient(115deg,var(--loyalty-start),var(--loyalty-end)) }
.loyalty-tier-punches .has-progress-image { max-width:52px; aspect-ratio:1; min-height:0 }
.loyalty-tier-punches .has-progress-image:not(.is-earned) { border-radius:50%; border:1px solid #ffffff66 }
.loyalty-tier-punches .has-progress-image:not(.is-earned) .loyalty-progress-image { display:none }

/* Translucent panel without fading its text or progress icons. */
@supports (background:color-mix(in srgb,red,transparent)) {
 .menu-loyalty-panel { background:linear-gradient(115deg,color-mix(in srgb,var(--loyalty-start) 82%,transparent),color-mix(in srgb,var(--loyalty-end) 82%,transparent)) }
}
.menu-loyalty-panel:is([data-tier="2"],[data-tier="4"],[data-tier="5"]),
.loyalty-tier-card:is([data-tier="2"],[data-tier="4"],[data-tier="5"]) { --loyalty-text:#202832; color:#202832 }
.menu-loyalty-panel:is([data-tier="2"],[data-tier="4"],[data-tier="5"]) .menu-loyalty-title,
.loyalty-tier-card:is([data-tier="2"],[data-tier="4"],[data-tier="5"]) h3 { color:#202832 !important }
:is(.menu-loyalty-panel,.loyalty-tier-card):is([data-tier="2"],[data-tier="4"],[data-tier="5"]) .has-progress-image:not(.is-earned) { border-color:#20283288 }
:is(.menu-loyalty-panel,.loyalty-tier-card):is([data-tier="2"],[data-tier="4"],[data-tier="5"]) .loyalty-punch-bar { background:#20283233 }
:is(.menu-loyalty-panel,.loyalty-tier-card):is([data-tier="2"],[data-tier="4"],[data-tier="5"]) .is-earned .loyalty-punch-bar { background:#202832 }

/* Hala's tier palette, translucent backgrounds, fully opaque text and artwork. */
.menu-loyalty-panel, .loyalty-tier-card { color:#202832; --loyalty-text:#202832; background:linear-gradient(115deg,var(--loyalty-start),var(--loyalty-mid,var(--loyalty-end)),var(--loyalty-end)) }
.menu-loyalty-title, .menu-loyalty-sign-in { color:#202832 !important }
:is(.menu-loyalty-panel,.loyalty-tier-card) .has-progress-image:not(.is-earned) { border-color:#20283288 }
:is(.menu-loyalty-panel,.loyalty-tier-card) .loyalty-punch-bar { background:#20283233 }
:is(.menu-loyalty-panel,.loyalty-tier-card) .is-earned .loyalty-punch-bar { background:#202832 }
@supports (background:color-mix(in srgb,red,transparent)) {
 .menu-loyalty-panel, .loyalty-tier-card { background:linear-gradient(115deg,color-mix(in srgb,var(--loyalty-start) 75%,transparent),color-mix(in srgb,var(--loyalty-mid,var(--loyalty-end)) 75%,transparent),color-mix(in srgb,var(--loyalty-end) 75%,transparent)); backdrop-filter:blur(8px) }
}
.checkout-coins-trigger { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:64px; padding:10px 16px; border:0; border-radius:8px; background:#e95e59; color:#fff; text-align:center }
.checkout-coins-trigger > img { width:52px; height:52px; object-fit:contain; flex-shrink:0 }
.checkout-coins-trigger > span { flex:1; min-width:0; overflow-wrap:anywhere }
.checkout-coins-trigger #checkout-coins-default { font-size:80% }
.checkout-coins-trigger small { display:block }
.checkout-coins-trigger:disabled { opacity:.6; cursor:not-allowed }
.checkout-coins-trigger:focus-visible, .checkout-coin-reward:focus-visible { outline:3px solid #202832; outline-offset:3px }
.checkout-coins-balance img { width:80px; height:80px; object-fit:contain; margin-bottom:12px }
.checkout-coin-reward { display:block; width:100%; padding:16px; margin-bottom:12px; border:1px solid #ddd; border-radius:10px; background:#fff; color:#202832; text-align:start; overflow-wrap:anywhere }
.checkout-coin-reward strong { display:block; color:#c54642 }
.checkout-coin-reward.is-selected { border-color:#c54642; background:#fff5ef }
.checkout-coin-reward:disabled { opacity:.45; cursor:not-allowed }
#checkout-coins-modal { top:var(--coins-viewport-top,0); height:var(--coins-viewport-height,100dvh); padding:0 !important; overflow:hidden !important }
#checkout-coins-modal .modal-dialog { width:calc(100% - 32px); max-width:500px; min-height:0; height:calc(100% - 32px); max-height:calc(100% - 32px); margin:16px auto }
#checkout-coins-modal .modal-dialog::before { content:none }
#checkout-coins-modal .modal-content { min-width:0; max-height:100% }
#checkout-coins-modal .modal-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch }
/* October 14 review: white text; only panel colours are translucent. */
.menu-loyalty-panel, .loyalty-tier-card { --loyalty-text:#fff; color:#fff; text-shadow:0 1px 2px #0005 }
.menu-loyalty-panel .menu-loyalty-title, .menu-loyalty-sign-in,
.loyalty-tier-card:is([data-tier="2"],[data-tier="4"],[data-tier="5"]) h3 { color:#fff !important }
@supports (background:color-mix(in srgb,red,transparent)) {
 .menu-loyalty-panel, .loyalty-tier-card { background:linear-gradient(115deg,color-mix(in srgb,var(--loyalty-start) 60%,transparent),color-mix(in srgb,var(--loyalty-mid,var(--loyalty-end)) 40%,transparent),color-mix(in srgb,var(--loyalty-end) 25%,transparent)); backdrop-filter:blur(8px) }
}
:is(.menu-loyalty-panel,.loyalty-tier-card) .loyalty-punch:not(.is-earned) { border:1px solid #ffffffb3; border-radius:50%; background:transparent; aspect-ratio:1; height:auto; max-width:32px }
:is(.menu-loyalty-panel,.loyalty-tier-card) .loyalty-punch:not(.is-earned) .loyalty-punch-bar { visibility:hidden }
:is(.menu-loyalty-panel,.loyalty-tier-card) .is-earned .loyalty-punch-bar { background:#fff }
.menu-loyalty-saved-prize { display:flex; align-items:center; gap:10px; min-height:68px; overflow-wrap:anywhere }
.menu-loyalty-saved-prize img { width:56px; height:56px; object-fit:contain; flex-shrink:0 }
.loyalty-order-heading > div:first-child { flex:1; min-width:150px }
.loyalty-order-coin { display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; max-width:42%; overflow-wrap:anywhere }
.loyalty-order-coin img { width:52px; height:52px; object-fit:contain }
.loyalty-order-coin span { font-size:12px }
.loyalty-wheel-slice img { transform:rotate(var(--slice-icon-angle,45deg)) }
.checkout-wheel-prize, .loyalty-tier-card { background:linear-gradient(135deg,var(--loyalty-start),var(--loyalty-mid),var(--loyalty-end)); backdrop-filter:none }
.checkout-wheel-prize { border-radius:24px; text-align:center; color:#fff; text-shadow:0 1px 2px #0005 }
.checkout-wheel-prize h3 { color:inherit !important }
.checkout-wheel-prize strong { display:block; margin-top:8px }
.checkout-wheel-prize .text-muted { color:inherit !important }
.checkout-coins-bar { position:relative }
.checkout-coins-bar.is-redeemed .checkout-coins-trigger { background:#f5bd22; color:#fff; padding-inline-end:48px }
.checkout-coins-remove { position:absolute; inset-inline-end:8px; top:50%; transform:translateY(-50%); width:36px; height:44px; border:0; background:transparent; font-size:26px; color:#382819 }
.checkout-coins-remove[hidden] { display:none }
.checkout-coins-remove:focus-visible { outline:2px solid #382819; outline-offset:1px }

.menu-loyalty-panel:is([data-tier="2"],[data-tier="4"],[data-tier="5"]) .menu-loyalty-title { color:#fff !important }
:is(.menu-loyalty-panel,.loyalty-tier-card):is([data-tier="2"],[data-tier="4"],[data-tier="5"]) .loyalty-punch:not(.is-earned) { border-color:#ffffffb3 }
:is(.menu-loyalty-panel,.loyalty-tier-card)[data-tier] { --loyalty-text:#fff; color:#fff }
.loyalty-tier-punches { align-items:center }
.loyalty-tier-punches .loyalty-punch:not(.is-earned) { max-width:52px; min-height:0; align-self:center }
.menu-loyalty-punches .loyalty-punch:not(.is-earned) { max-width:30px }

/* Centre the wheel in the visible viewport before and after the result expands. */
#loyalty-wheel-modal { top:var(--wheel-viewport-top,0); height:var(--wheel-viewport-height,100dvh); padding:0 !important }
#loyalty-wheel-modal.show { display:flex !important; align-items:center; justify-content:center }
#loyalty-wheel-modal .modal-dialog { position:relative; top:auto; min-height:0; margin:16px auto; flex:0 1 auto; max-height:calc(var(--wheel-viewport-height,100dvh) - 32px) }
#loyalty-wheel-modal.show .modal-dialog { transform:none }
#loyalty-wheel-modal .modal-content { max-height:calc(var(--wheel-viewport-height,100dvh) - 32px) }
#loyalty-wheel-modal .loyalty-wheel-frame { flex-shrink:0 }

/* Keep the circular punch outline visible around earned tier artwork too. */
:is(.menu-loyalty-panel,.loyalty-tier-card) .loyalty-punch.has-progress-image {
 border:1px solid #ffffffb3; border-radius:50%; aspect-ratio:1; height:auto; min-height:0;
 align-self:center; padding:3px; overflow:hidden; box-sizing:border-box;
}
:is(.menu-loyalty-panel,.loyalty-tier-card) .loyalty-punch.has-progress-image .loyalty-progress-image {
 width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain;
}

.checkout-coins-bar.is-redeemed .checkout-coins-remove { color:#fff }

/* Post-checkout presentation only; the menu-header progress stays still. */
.loyalty-confirmation-progress .loyalty-progress-unroll { position:relative; margin:16px 0; isolation:isolate; overflow:hidden; border-radius:18px }
.loyalty-confirmation-progress .loyalty-tier-punches { justify-content:space-between; margin:0 !important; padding:7% 8%; gap:4% !important; border:1px solid #ffffff55; border-radius:18px; background:#ffffff1a }
.loyalty-confirmation-progress .loyalty-tier-punches .loyalty-punch { flex:1; width:0; max-width:none; min-height:0; height:auto; aspect-ratio:1; align-self:center; border:1px solid #ffffffb3; border-radius:50%; background:transparent }
.loyalty-confirmation-progress .loyalty-progress-fold { position:absolute; inset:0; pointer-events:none; visibility:hidden; background:linear-gradient(100deg,transparent,#ffffff30,#ffffff08); border-radius:inherit }
@media (prefers-reduced-motion:no-preference) {
 .loyalty-confirmation-progress .loyalty-progress-unroll > [data-loyalty-live-progress] { animation:loyalty-progress-unroll .85s linear both }
 .loyalty-confirmation-progress .loyalty-progress-fold { visibility:visible; transform-origin:left center; animation:loyalty-progress-fold .85s linear both }
 .loyalty-confirmation-progress .is-earned > :is(.loyalty-progress-image,.loyalty-punch-bar) { animation:loyalty-punch-stamp .6s cubic-bezier(.2,.8,.2,1) both; animation-delay:calc(.9s + var(--punch-index,0) * .12s) }
 .loyalty-confirmation-progress .loyalty-progress-caption { animation:loyalty-progress-caption .55s ease-out 1.7s both }
}
@keyframes loyalty-progress-unroll {
 0% { clip-path:polygon(0 0,0 0,0 100%,0 100%) }
 30% { clip-path:polygon(0 0,0 0,0 100%,0 100%) }
 53% { clip-path:polygon(0 0,55% 0,43% 100%,0 100%) }
 85% { clip-path:polygon(0 0,93% 0,88% 100%,0 100%) }
 100% { clip-path:polygon(0 0,100% 0,100% 100%,0 100%) }
}
@keyframes loyalty-progress-fold {
 0% { opacity:0; transform:translateX(-40%) skewX(-24deg); clip-path:polygon(0 0,40% 0,18% 100%,0 100%) }
 15% { opacity:.8 }
 53% { opacity:.65; transform:translateX(43%) skewX(-18deg); clip-path:polygon(0 0,12% 0,0 100%) }
 85% { opacity:.4; transform:translateX(88%) skewX(-8deg); clip-path:polygon(0 0,5% 0,0 100%) }
 100% { opacity:0; transform:translateX(100%) skewX(0); clip-path:polygon(0 0,0 0,0 100%); visibility:hidden }
}
@keyframes loyalty-punch-stamp {
 0% { opacity:0; transform:translateY(8px) scale(.15) rotate(-12deg) }
 62% { opacity:1; transform:translateY(-2px) scale(1.12) rotate(3deg) }
 82% { transform:translateY(1px) scale(.96) rotate(-1deg) }
 100% { opacity:1; transform:none }
}
@keyframes loyalty-progress-caption {
 from { opacity:0; transform:translateY(12px) }
 to { opacity:1; transform:none }
}

/* Ready-to-spin state replaces the header punches, matching the supplied design. */
.menu-loyalty-spin-ready { display:flex; flex-direction:column; justify-content:center; height:100% }
.menu-loyalty-spin-ready .loyalty-spin-cta { width:100% }
.loyalty-spin-cta { display:inline-flex; align-items:center; justify-content:center; gap:8px; max-width:100%; padding:10px 12px; border:0; border-radius:10px; background:linear-gradient(110deg,#f4a52a,#f6bd48); color:#fff; font-size:15px; font-weight:700; line-height:1.2; letter-spacing:0; box-shadow:none }
.loyalty-spin-cta:hover, .loyalty-spin-cta:focus { background:linear-gradient(110deg,#ef9820,#f4b63a); color:#fff }
.loyalty-spin-cta img { flex:none; width:36px; height:36px; object-fit:contain }
.menu-loyalty-spin-ready #loyalty-spin-message:empty { display:none }
@media(max-width:575px) {
 .loyalty-spin-cta { padding:8px 6px; gap:5px; font-size:12px }
 .loyalty-spin-cta img { width:30px; height:30px }
}

.loyalty-spin-cta:focus-visible { outline:3px solid #fff; outline-offset:3px }

/* Centre the ready action against the full height of the header's left cell. */
.menu-loyalty-progress.is-spin-ready { display:flex; align-items:center }
.menu-loyalty-progress.is-spin-ready .menu-loyalty-spin-ready { width:100%; height:auto }
