/* 0.30: layout-scoped rules outrank old shared theme selectors without moving dialogs. */
body.dop-experience .products-section:not([data-card-layout=horizontal]) .product-cards>.product-card.dm-inverted-card>.product-card-button{position:absolute!important;inset:auto 0 0 auto!important;width:clamp(98px,44%,156px)!important;min-width:0!important;height:auto!important;min-height:50px!important;padding:11px 13px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;font-size:13px!important;line-height:1.6!important;text-indent:0!important;white-space:nowrap!important;border-radius:24px!important;overflow:visible!important;color:#fff!important;z-index:3}
body.dop-experience .products-section:not([data-card-layout=horizontal]) .product-cards>.product-card.dm-inverted-card>.product-card-button::after{content:none!important}
body.dop-experience .products-section:not([data-card-layout=horizontal]) .product-card-button .dm-add-label{display:inline!important;color:#fff!important;font-size:13px!important;opacity:1!important}
body.dop-experience .products-section:not([data-card-layout=horizontal]) .product-card-button .dm-add-icon{display:block!important;width:22px!important;height:22px!important;flex:none}
/* Arch: the back sheet reaches x=0 exactly; no negative arc radius overshoot. */
body .products-section[data-dm-reference="27"][data-header-layout=arch] .dm-search-surface{height:calc(320*var(--dm-r));background:radial-gradient(ellipse 8% 23% at 85% 58%,rgb(255 255 255 / calc(.24 + var(--dm-glass-light,.7)*.48)),transparent 90%),radial-gradient(ellipse 8% 14% at 88% 87%,#ffffff6b,transparent 95%),linear-gradient(145deg,rgb(255 255 255 / calc(.06 + var(--dm-back-white)*.65)),rgb(255 255 255 / calc(.02 + var(--dm-back-white)*.3)));mask-image:linear-gradient(125deg,#000 0 82%,#000d 85%,#0004 90%,transparent 94%);-webkit-mask-image:linear-gradient(125deg,#000 0 82%,#000d 85%,#0004 90%,transparent 94%);mask-composite:intersect;-webkit-mask-composite:source-in}
body .products-section[data-dm-reference="27"][data-header-layout=arch] .dm-search-frame>.search-section{inset:calc(25*var(--dm-r)) calc(184*var(--dm-r)) calc(25*var(--dm-r)) calc(26*var(--dm-r))!important}
body .products-section[data-dm-reference="27"][data-header-layout=arch] .dm-search-surface .dm-header-rim{opacity:.72;filter:none}
body .products-section[data-dm-reference="27"][data-header-layout=arch] .dm-search-surface .dm-header-rim>path:nth-of-type(2){opacity:.3}
/* Increase breathing room evenly on the island's two search sheets. */
body .products-section[data-dm-reference="27"][data-header-layout=organic] .dm-search-frame{height:max(64px,calc(164*var(--dm-r)))!important}
body .products-section[data-dm-reference="27"][data-header-layout=organic] .dm-search-frame>.search-section{inset:var(--dm-island-search-padding,8px)!important}
/* Identity strip: clear spacing on both ends; no bright double ring around availability. */
body .products-section[data-dm-reference="27"][data-header-layout=search] .dm-availability{right:calc(40*var(--dm-r))!important;padding:clamp(6px,calc(18*var(--dm-r)),10px)!important;box-shadow:inset 1px 1px #ffffffa0,0 3px 9px #26344c0a!important;border-color:#ffffff70!important}
body .products-section[data-dm-reference="27"][data-header-layout=search] .dm-header-logo{left:calc(34*var(--dm-r))!important}
body .products-section[data-dm-reference="27"][data-header-layout=search] .dm-banner{border-color:#ffffff60!important;box-shadow:inset 0 1px 1px #ffffff8a,0 10px 25px #26374a0c!important}
body .products-section[data-dm-reference="27"][data-header-layout=search] .dm-banner>.dm-header-rim{display:none!important}
/* Compact floating categories: matching gap on either side of the search control. */
body .products-section[data-dm-reference="27"][data-header-layout] .dm-sticky-shell.dm-sticky-visible{padding:2px 6px!important;column-gap:6px!important}
body .products-section[data-dm-reference="27"][data-header-layout] .dm-sticky-shell .dm-category-viewport{padding:5px 0 1px!important}
body .products-section[data-dm-reference="27"][data-header-layout] .dm-sticky-search{margin:0!important;flex:none}
/* Receipt controls live outside the restaurant table dock in both editions. */
.dop-current-orders{position:fixed;right:12px;bottom:calc(108px + env(safe-area-inset-bottom));z-index:9990;max-width:min(340px,calc(100vw - 24px));direction:rtl}
.dop-current-orders>summary{list-style:none;display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px!important;border:1px solid #ffffffbc;border-radius:22px;color:#1d2430!important;background:linear-gradient(145deg,#ffffffe8,#ffffff92)!important;backdrop-filter:blur(16px) saturate(1.25);-webkit-backdrop-filter:blur(16px) saturate(1.25);box-shadow:inset 1px 1px #fff,0 6px 20px #25364b16;cursor:pointer;font-size:13px;font-weight:700}
.dop-current-orders>summary::-webkit-details-marker{display:none}.dop-current-orders>div{display:grid;gap:6px;background:#fffffff5;border:1px solid #fff;border-radius:18px;padding:8px;margin-top:6px}.dop-current-orders>div a{color:#252c39;text-decoration:none;padding:9px 12px;min-height:44px}.dop-current-orders[hidden]{display:none!important}
.dop-receipt-only{min-height:100dvh;display:grid;place-items:center;padding:20px!important;box-sizing:border-box}.dop-receipt-only .dop-status-page{width:min(420px,100%);padding:24px!important;box-sizing:border-box}.dop-receipt-only .dop-order-number{flex-direction:column;padding:32px 12px!important}.dop-receipt-only .dop-order-number strong{font-size:clamp(64px,20vw,110px)!important}.dop-receipt-only .dop-back{display:block;text-align:center;margin:12px 0 0!important;min-height:46px;box-sizing:border-box}.dop-receipt-only [data-receipt-invoice][hidden]{display:none!important}.dop-receipt-only [data-receipt-connection]:empty{display:none}
/* A clipped photo stage only; the card and its fixed dialog never become a clipped ancestor. */
body.dop-menu-modern .products-section[data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal] .product-card-upper{min-height:220px!important;padding:14px 14px 14px 12px!important;overflow:hidden!important;border-radius:var(--dm-radius-override,24px)!important;isolation:isolate}
body.dop-menu-modern .products-section[data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal] .product-image{position:absolute!important;left:0!important;bottom:-34px!important;top:10px!important;width:50%!important;height:calc(100% + 24px)!important;border-radius:0!important;overflow:visible!important;aspect-ratio:auto!important;min-height:0!important;filter:drop-shadow(0 12px 12px #26344a18);background:none!important}
body.dop-menu-modern .products-section[data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal] .product-image img{object-fit:contain!important;object-position:50% 100%!important;mix-blend-mode:normal!important;transform:scale(1.12);transform-origin:50% 100%;border-radius:0!important}
body.dop-menu-modern .products-section[data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal] .price-caption-section{grid-column:2;min-height:190px;padding:8px 40px 46px 0!important;justify-content:flex-start!important;gap:10px!important}
body.dop-menu-modern .products-section[data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal] .name-caption-section{text-align:right!important;min-height:52px}
body.dop-menu-modern .products-section[data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal] .name-phrase{font-size:var(--dm-title-size-override,clamp(16px,4.5cqw,28px))!important;line-height:1.5!important}
body.dop-menu-modern .products-section[data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal] .caption-phrase{font-size:var(--dm-caption-size-override,clamp(10px,2.6cqw,15px))!important}
body.dop-menu-modern .products-section[data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal] .price-section{margin:0 -32px 0 0!important}
body.dop-menu-modern .products-section[data-card-layout=horizontal] .product-image .dm-horizontal-cutout{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;transform:scale(1.12);transform-origin:50% 100%}
body.dop-menu-modern .products-section[data-card-layout=horizontal] .product-image.dm-cutout-ready>img{visibility:hidden!important}
body.dop-menu-modern .products-section[data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal] .dop-product-badges{z-index:3!important;flex-wrap:wrap!important;inset:auto 12px 12px!important;gap:6px!important}
body.dop-menu-modern .products-section[data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal] .dop-product-badges>span{background:linear-gradient(145deg,rgb(255 255 255 / var(--dm-badge-white,.75)),rgb(255 255 255 / calc(var(--dm-badge-white,.75)*.7)))!important;backdrop-filter:blur(var(--dm-badge-blur,12px)) saturate(var(--dm-glass-saturation,1.24));-webkit-backdrop-filter:blur(var(--dm-badge-blur,12px)) saturate(var(--dm-glass-saturation,1.24));--dm-controls-blur:var(--dm-badge-blur,12px);--dm-controls-depth:var(--dm-badge-depth,14);font-size:var(--dm-badge-size-override,clamp(9px,2.5cqw,14px))!important}
body .products-section[data-card-layout=horizontal] .dm-horizontal-surface{mask-image:radial-gradient(circle 32px at calc(100% - 20px) 20px,transparent 31px,#000 32px);-webkit-mask-image:radial-gradient(circle 32px at calc(100% - 20px) 20px,transparent 31px,#000 32px)}
body .products-section[data-card-layout=horizontal] .product-image::before,body .products-section[data-card-layout=horizontal] .product-image::after{display:none!important}
@media(prefers-reduced-transparency:reduce),(forced-colors:active){.dop-current-orders>summary{background:white!important;backdrop-filter:none}.dop-receipt-only .dop-status-page{background:white!important}}
body .products-section[data-dm-reference="27"][data-header-layout][data-header-layout=organic] .dm-search-frame form{min-height:0!important;height:100%!important;box-sizing:border-box!important}
body .products-section[data-dm-reference="27"][data-header-layout] .dm-sticky-shell .filter-menu.dm-is-stuck{padding:0!important;border:0!important;background:none!important;box-shadow:none!important;min-height:0!important}
/* Filtering down to a few short cards must not pull the focused floating search offscreen. */
body .products-section:has(.dm-sticky-search-panel:not([hidden])) .product-cards{min-height:calc(100dvh - 80px)}

/* Fine continuation survives beyond the diagonally faded body of the arch sheet. */
.dm-arch-tail{position:absolute;left:0;right:0;top:calc(-110*var(--dm-r));height:calc(320*var(--dm-r));width:100%;pointer-events:none;z-index:2;opacity:.28;mask-image:linear-gradient(125deg,transparent 0 87%,#000 93%);-webkit-mask-image:linear-gradient(125deg,transparent 0 87%,#000 93%)}
/* Latest reference: a smaller, complete cutout rests on the card, then dissolves into its surface. */
body.dop-menu-modern .products-section[data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal] .product-image{top:12px!important;bottom:0!important;height:calc(100% - 12px)!important;width:48%!important}
body.dop-menu-modern .products-section[data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal] .product-image :is(img,.dm-horizontal-cutout){transform:none!important;object-fit:contain!important;object-position:50% 100%!important;mask-image:linear-gradient(to bottom,#000 0 78%,#000d 88%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 0 78%,#000d 88%,transparent 100%)}
body.dop-menu-modern .products-section[data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal][data-card-layout=horizontal] .product-image::after{content:'';display:block!important;position:absolute;inset:auto 0 0;height:22%;z-index:2;background:linear-gradient(to top,var(--dm-card-surface,var(--dop-glass-color,#fff)),transparent);pointer-events:none}
.dop-receipt-only .dop-back{border-radius:18px!important;padding:12px 16px!important;font-size:15px!important;text-decoration:none!important;color:var(--dop-primary)!important;border:1px solid #ffffffba;background:linear-gradient(145deg,#fffffff2,#ffffff85);box-shadow:inset 1px 1px #fff,0 5px 18px #26344b0b;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.dop-receipt-only .dop-back-main{background:linear-gradient(145deg,#ffffff35,transparent 60%),var(--dop-primary)!important;color:#fff!important;font-weight:700!important;box-shadow:inset 1px 1px #ffffff70,0 5px 16px color-mix(in srgb,var(--dop-primary) 14%,transparent)}
.dop-status-modern .dop-status-id,.dop-status-modern .dop-timer{background:color-mix(in srgb,var(--dop-primary) 4%,white)!important}

/* Approved isolated study, integrated only for the phone's arched header. */
.dm-arch-mobile-surface{display:none}
@media(max-width:767px){
body .products-section[data-dm-reference="27"][data-header-layout=arch] .dm-search-frame{height:calc(212*var(--dm-r))!important}
body .products-section[data-dm-reference="27"][data-header-layout=arch] .dm-search-surface,body .products-section[data-dm-reference="27"][data-header-layout=arch] .dm-arch-tail{display:none!important}
body .products-section[data-dm-reference="27"][data-header-layout=arch] .dm-arch-mobile-surface{display:block;position:absolute;inset:0;pointer-events:none;background:linear-gradient(150deg,rgb(255 255 255 / calc(.04 + var(--dm-back-white)*.55)),rgb(255 255 255 / calc(.015 + var(--dm-back-white)*.24)));mask:url('arch-mobile-mask.svg') 0 0/100% 100% no-repeat;-webkit-mask:url('arch-mobile-mask.svg') 0 0/100% 100% no-repeat;backdrop-filter:blur(var(--dm-search-frame-blur,10px)) saturate(var(--dm-glass-saturation,1.24));-webkit-backdrop-filter:blur(var(--dm-search-frame-blur,10px)) saturate(var(--dm-glass-saturation,1.24))}
body .products-section[data-dm-reference="27"][data-header-layout=arch] .dm-arch-mobile-surface .dm-header-rim{opacity:.68;filter:none}
body .products-section[data-dm-reference="27"][data-header-layout=arch] .dm-arch-mobile-surface .dm-header-rim>path:first-of-type{stroke-width:2.2}
body .products-section[data-dm-reference="27"][data-header-layout=arch] .dm-arch-mobile-surface .dm-header-rim>path:nth-of-type(2){opacity:.15}
body .products-section[data-dm-reference="27"][data-header-layout=arch] .dm-search-frame>.search-section{inset:calc(28*var(--dm-r)) calc(163*var(--dm-r)) calc(24*var(--dm-r)) calc(24*var(--dm-r))!important}
body .products-section[data-dm-reference="27"][data-header-layout=arch] .dm-search-frame>.search-section form{border-radius:999px!important;min-height:44px!important}
body .products-section[data-dm-reference="27"][data-header-layout=arch] .dm-search-frame .dm-explore{left:calc(950*var(--dm-r));top:calc(96*var(--dm-r))}
}
