/* Orderaty Menu storefront shared components.
   Loaded after theme CSS so functional UI stays consistent across all themes. */

.storefront-v2 .sf-branch-card:has(> div > button[onclick*="branchSelectModal"]),
.storefront-v2 .sf-branch-card:has(> div > .amo-branch-switch) {
  width: min(100% - 24px, 1120px) !important;
  max-width: 1120px !important;
  margin: 12px auto 14px !important;
  padding: 14px 18px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #071326 !important;
  color: #f8fafc !important;
  box-shadow: 0 16px 34px rgba(5, 13, 28, .22) !important;
  overflow: visible !important;
}

.storefront-v2 .sf-branch-card:has(> div > button[onclick*="branchSelectModal"]) > div,
.storefront-v2 .sf-branch-card:has(> div > .amo-branch-switch) > div {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-items: stretch !important;
}

.storefront-v2 .sf-branch-select-row {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 10px !important;
}

.storefront-v2 .sf-branch-card button[onclick*="branchSelectModal"],
.storefront-v2 .sf-branch-select-row button,
.storefront-v2 .amo-branch-switch {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f8fafc !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  position: relative !important;
  direction: rtl !important;
  overflow: visible !important;
}

.storefront-v2 .era-branch-chip {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
  border: 1px solid #2d75a9 !important;
  border-radius: 11px !important;
  background: #142943 !important;
  box-sizing: border-box !important;
  color: #57b8f3 !important;
  overflow: visible !important;
}

.storefront-v2 .sf-branch-card button[onclick*="branchSelectModal"] > div,
.storefront-v2 .sf-branch-select-row button > span:first-of-type,
.storefront-v2 .amo-branch-switch > div,
.storefront-v2 .amo-branch-switch > .era-branch-chip {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  overflow: visible !important;
}

.storefront-v2 .sf-branch-card button[onclick*="branchSelectModal"] svg,
.storefront-v2 .sf-branch-select-row button svg,
.storefront-v2 .amo-branch-switch svg,
.storefront-v2 .era-branch-chip svg {
  flex: 0 0 17px !important;
  width: 17px !important;
  height: 17px !important;
  color: var(--customer-primary, var(--primary)) !important;
}

.storefront-v2 .sf-branch-card button[onclick*="branchSelectModal"] span,
.storefront-v2 .sf-branch-select-row button span,
.storefront-v2 .amo-branch-switch span,
.storefront-v2 .era-branch-text {
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: normal !important;
  color: #57b8f3 !important;
}

.storefront-v2 .sf-branch-card button[onclick*="branchSelectModal"] strong,
.storefront-v2 .sf-branch-select-row button strong,
.storefront-v2 .amo-branch-switch strong {
  color: #f8fafc !important;
  font-weight: 900 !important;
}

/* Keep the change label inline, not as a floating badge that can cover the location icon. */
.storefront-v2 .sf-branch-card button[onclick*="branchSelectModal"] > span:last-child:not(:only-child),
.storefront-v2 .sf-branch-select-row button > span:last-child:not(:only-child),
.storefront-v2 .amo-change-badge {
  display: none !important;
  flex: 0 0 auto !important;
  min-width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(248, 250, 252, .84) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  opacity: 1 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  position: static !important;
  transform: none !important;
}

/* Hours row under the branch selector. */
.storefront-v2 .sf-branch-card:has(> div > button[onclick*="branchSelectModal"]) > div > div:not(:has(button)),
.storefront-v2 .sf-branch-card:has(> div > .amo-branch-switch) > div > div:not(:has(button)),
.storefront-v2 .sf-branch-card .sf-hours {
  display: block !important;
  width: 100% !important;
  color: rgba(248, 250, 252, .72) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  text-align: center !important;
}

.storefront-v2 .sf-branch-card:has(> div > button[onclick*="branchSelectModal"]) > div > div:not(:has(button)) span,
.storefront-v2 .sf-branch-card:has(> div > .amo-branch-switch) > div > div:not(:has(button)) span {
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  white-space: inherit !important;
}

@media (max-width: 480px) {
  .storefront-v2 .sf-branch-card:has(> div > button[onclick*="branchSelectModal"]),
  .storefront-v2 .sf-branch-card:has(> div > .amo-branch-switch) {
    width: min(100% - 20px, 720px) !important;
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .storefront-v2 .sf-branch-card button[onclick*="branchSelectModal"],
  .storefront-v2 .sf-branch-select-row button,
  .storefront-v2 .amo-branch-switch {
    padding: 9px 10px !important;
    font-size: 12.5px !important;
  }
}

.storefront-v2 .sf-top-order {
  width: min(100% - 24px, 1120px) !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin: 10px auto 8px !important;
}

.storefront-v2 .sf-order-type-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 34px !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 999px !important;
  background: var(--customer-surface, var(--surface)) !important;
  color: var(--customer-text, var(--text)) !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .10) !important;
}

.storefront-v2 .sf-order-type-btn.active {
  border-color: color-mix(in srgb, var(--customer-primary, var(--primary)) 46%, transparent) !important;
  background: color-mix(in srgb, var(--customer-primary, var(--primary)) 12%, var(--customer-surface, var(--surface))) !important;
  color: var(--customer-primary, var(--primary)) !important;
}

.storefront-v2 .sf-order-type-btn.soon {
  opacity: .55 !important;
  cursor: not-allowed !important;
}

.storefront-v2 .sf-order-type-btn.active span {
  animation: era-order-pulse 1.5s ease 4;
}

@keyframes era-order-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}

.storefront-v2 .sf-cover-slider,
.storefront-v2 .sf-cover-slider .sf-cover {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.storefront-v2 .sf-cover-slider .sf-cover {
  opacity: 0 !important;
  transition: opacity .45s ease !important;
}

.storefront-v2 .sf-cover-slider .sf-cover.active {
  opacity: 1 !important;
}

.storefront-v2 .sf-cover-dots {
  position: absolute !important;
  inset-inline-start: 16px !important;
  bottom: 14px !important;
  z-index: 3 !important;
  display: flex !important;
  gap: 6px !important;
  padding: 5px 7px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, .48) !important;
  backdrop-filter: blur(10px) !important;
}

.storefront-v2 .sf-cover-dots button {
  width: 8px !important;
  height: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .58) !important;
  cursor: pointer !important;
}

.storefront-v2 .sf-cover-dots button.active {
  width: 18px !important;
  background: #fff !important;
}

.storefront-v2 .sf-theme-cover-slider {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-height: 220px !important;
  border-radius: inherit !important;
  overflow: hidden !important;
}

.storefront-v2 .sf-theme-cover-slider .sf-cover {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0 !important;
  transition: opacity .55s ease !important;
}

.storefront-v2 .sf-theme-cover-slider .sf-cover.active {
  opacity: 1 !important;
}

.storefront-v2 .sf-seasonal-layer,
.storefront-v2 .sf-seasonal-banner {
  pointer-events: none !important;
  user-select: none !important;
}

.storefront-v2 .sf-seasonal-layer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 6 !important;
  overflow: hidden !important;
}

.storefront-v2 .sf-seasonal-layer i {
  position: absolute !important;
  top: -42px !important;
  left: var(--x) !important;
  color: rgba(255, 255, 255, .78) !important;
  font-size: var(--size) !important;
  font-style: normal !important;
  font-weight: 900 !important;
  text-shadow: 0 8px 24px rgba(2, 6, 23, .25) !important;
  opacity: .76 !important;
  animation: sf-seasonal-fall var(--duration) linear infinite !important;
  animation-delay: var(--delay) !important;
}

.storefront-v2 .sf-seasonal-banner {
  position: fixed !important;
  top: 12px !important;
  right: 50% !important;
  z-index: 7 !important;
  transform: translateX(50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 32px !important;
  padding: 6px 13px !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, .52) !important;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(2, 6, 23, .22) !important;
  backdrop-filter: blur(12px) !important;
}

.storefront-v2 .sf-seasonal-banner span {
  color: inherit !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.sf-seasonal-ramadan .storefront-v2 .sf-seasonal-banner {
  background: linear-gradient(135deg, rgba(25, 84, 62, .84), rgba(191, 146, 54, .72)) !important;
}

body.sf-seasonal-ramadan .storefront-v2 .sf-seasonal-layer i {
  color: #f8e7a1 !important;
}

body.sf-seasonal-eid .storefront-v2 .sf-seasonal-banner {
  background: linear-gradient(135deg, rgba(20, 184, 166, .82), rgba(236, 72, 153, .68)) !important;
}

body.sf-seasonal-eid .storefront-v2 .sf-seasonal-layer i {
  color: #fce7f3 !important;
}

body.sf-seasonal-world_cup .storefront-v2 .sf-seasonal-banner {
  background: linear-gradient(135deg, rgba(22, 101, 52, .84), rgba(220, 38, 38, .72)) !important;
}

body.sf-seasonal-world_cup .storefront-v2 .sf-seasonal-layer i {
  color: #fff !important;
}

body.sf-seasonal-celebration .storefront-v2 .sf-seasonal-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, .82), rgba(245, 158, 11, .72)) !important;
}

body[data-seasonal-intensity="soft"] .storefront-v2 .sf-seasonal-layer {
  opacity: .54 !important;
}

body[data-seasonal-intensity="strong"] .storefront-v2 .sf-seasonal-layer {
  opacity: 1 !important;
}

@keyframes sf-seasonal-fall {
  0% {
    transform: translate3d(0, -40px, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: .82;
  }
  100% {
    transform: translate3d(34px, 110vh, 0) rotate(220deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-v2 .sf-seasonal-layer {
    display: none !important;
  }
}

.storefront-v2 .sf-category-rail.visual {
  align-items: start !important;
}

.storefront-v2 .sf-category-rail.visual a,
.storefront-v2 .sf-cat-menu-btn {
  display: inline-grid !important;
  grid-template-rows: 58px auto !important;
  justify-items: center !important;
  align-items: start !important;
  gap: 7px !important;
  min-width: 74px !important;
  width: 74px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--customer-text, var(--text)) !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.storefront-v2 .sf-category-rail.visual a span,
.storefront-v2 .sf-cat-menu-btn span {
  width: 58px !important;
  height: 58px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  border: 1px solid color-mix(in srgb, var(--customer-primary, var(--primary)) 14%, transparent) !important;
  background: color-mix(in srgb, var(--customer-primary, var(--primary)) 9%, var(--customer-surface, var(--surface))) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08) !important;
  overflow: hidden !important;
}

.storefront-v2 .sf-category-rail.visual a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.storefront-v2 .sf-category-rail.visual a em,
.storefront-v2 .sf-cat-menu-btn em {
  max-width: 74px !important;
  color: inherit !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}

.storefront-v2 .sf-cat-menu-inline {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.storefront-v2 .sf-toolbar .sf-cat-menu-inline {
  align-self: stretch !important;
  grid-template-rows: 36px auto !important;
  min-width: 58px !important;
  width: 58px !important;
}

.storefront-v2 .sf-toolbar .sf-cat-menu-inline span {
  width: 36px !important;
  height: 36px !important;
}

.storefront-v2 .sf-toolbar .sf-cat-menu-inline em {
  max-width: 58px !important;
  font-size: 10px !important;
}

.storefront-v2 .sf-product-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  align-items: center !important;
  margin-bottom: 4px !important;
}

.storefront-v2 .sf-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 22px !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: rgba(148, 163, 184, .12) !important;
  color: var(--customer-muted, var(--muted)) !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.storefront-v2 .sf-badge.accent { background: #fff3e8 !important; color: #d9631f !important; }
.storefront-v2 .sf-badge.red { background: #fee2e2 !important; color: #dc2626 !important; }
.storefront-v2 .sf-badge.blue { background: #dbeafe !important; color: #2563eb !important; }
.storefront-v2 .sf-badge.chef { background: #fef3c7 !important; color: #b45309 !important; }
.storefront-v2 .sf-badge.save { background: #dcfce7 !important; color: #15803d !important; }

.storefront-v2 .sf-badge span {
  font-size: 12px !important;
  line-height: 1 !important;
}

.sf-bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.sf-bottom-sheet.is-open {
  display: block;
}

.sf-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
}

.sf-sheet-panel {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0;
  width: min(768px, 100%);
  max-height: min(72vh, 620px);
  transform: translateX(-50%);
  display: grid;
  gap: 16px;
  padding: 22px 24px 28px;
  border-radius: 22px 22px 0 0;
  background: var(--customer-surface, var(--surface));
  color: var(--customer-text, var(--text));
  box-shadow: 0 -24px 70px rgba(15, 23, 42, .30);
  overflow: auto;
}

.sf-sheet-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sf-sheet-panel h2 {
  margin: 0;
  font-size: 20px;
}

.sf-sheet-panel header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(148, 163, 184, .14);
  color: inherit;
  cursor: pointer;
}

.sf-sheet-list {
  display: grid;
  gap: 10px;
}

.sf-sheet-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(148, 163, 184, .08);
  color: inherit;
  text-decoration: none;
  font-weight: 900;
}

.sf-sheet-list b {
  min-width: 28px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--customer-primary, var(--primary));
  color: var(--button-text, #fff);
  font-size: 12px;
}

.storefront-v2 .sf-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.storefront-v2 .sf-product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .10);
}

body.product-modal-open {
  overflow: hidden !important;
}

.product-modal {
  z-index: 10020 !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

.product-modal .modal-backdrop {
  z-index: 1 !important;
  background: rgba(2, 6, 23, .42) !important;
  backdrop-filter: none !important;
}

.product-modal .product-sheet {
  position: fixed !important;
  top: auto !important;
  right: auto !important;
  bottom: max(10px, env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(560px, calc(100vw - 16px)) !important;
  max-height: calc(100dvh - 20px) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  border: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 88%, transparent) !important;
  border-radius: 24px !important;
  z-index: 2 !important;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--customer-surface, var(--surface)) 94%, var(--customer-bg, var(--bg))), color-mix(in srgb, var(--customer-surface, var(--surface)) 94%, var(--customer-bg, var(--bg)))) !important;
  color: var(--customer-text, var(--text)) !important;
  box-shadow: 0 30px 100px rgba(2, 6, 23, .38) !important;
  overflow: hidden !important;
}

.product-modal.no-image .product-sheet {
  padding-top: 44px !important;
}

.product-modal .sheet-close {
  top: 12px !important;
  left: 12px !important;
  z-index: 5 !important;
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, .34) !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, .72) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(2, 6, 23, .24) !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

.product-modal .sheet-image {
  width: 100% !important;
  height: clamp(230px, 34vh, 340px) !important;
  display: block !important;
  object-fit: cover !important;
  background: color-mix(in srgb, var(--customer-primary, var(--primary)) 8%, #f8fafc) !important;
}

.product-modal.no-image .sheet-image {
  display: none !important;
}

.product-modal .sheet-body {
  min-height: 0 !important;
  overflow: auto !important;
  padding: 18px 18px 116px !important;
  scrollbar-width: thin !important;
}

.product-modal .modal-badges {
  margin: 0 0 9px !important;
}

.product-modal .sheet-body h2 {
  margin: 0 0 8px !important;
  color: var(--customer-text, var(--text)) !important;
  font-size: clamp(22px, 2.4vw, 28px) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

.product-modal .sheet-body p {
  margin: 0 0 14px !important;
  color: var(--customer-muted, var(--muted)) !important;
  font-size: 14px !important;
  line-height: 1.85 !important;
}

.product-modal .sf-product-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin: 10px 0 4px !important;
}

.product-modal .sf-meta-chip {
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 10px !important;
  border: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 74%, transparent) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--customer-primary, var(--primary)) 6%, var(--customer-surface, var(--surface))) !important;
  color: var(--customer-text, var(--text)) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.product-modal .sf-meta-chip i {
  font-style: normal !important;
  line-height: 1 !important;
}

.product-modal .sf-meta-chip b {
  font: inherit !important;
}

.product-modal .option-group {
  margin-top: 16px !important;
  padding: 14px !important;
  border: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 82%, transparent) !important;
  border-radius: 18px !important;
  background: color-mix(in srgb, var(--customer-surface, var(--surface)) 82%, var(--customer-bg, var(--bg))) !important;
}

.product-modal .option-group > strong,
.product-modal .modal-section-subtitle,
.product-modal .option-group-head strong {
  margin: 0 !important;
  color: var(--customer-text, var(--text)) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
}

.product-modal .option-group > small,
.product-modal .modal-section-note {
  display: block !important;
  margin: 4px 0 10px !important;
  color: var(--customer-muted, var(--muted)) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}

.product-modal .choice-list {
  display: grid !important;
  gap: 9px !important;
  margin-top: 11px !important;
}

.product-modal .option-group-block,
.product-modal .addon-group-block {
  display: grid !important;
  gap: 9px !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 78%, transparent) !important;
}

.product-modal .option-group-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.product-modal .option-required-badge,
.product-modal .option-free-badge {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.product-modal .option-required-badge {
  background: rgba(244, 63, 94, .12) !important;
  color: #e11d48 !important;
}

.product-modal .option-free-badge {
  background: rgba(34, 197, 94, .13) !important;
  color: #16a34a !important;
}

.product-modal .choice-row,
.product-modal .addon-row {
  min-height: 52px !important;
  border: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 86%, transparent) !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--customer-surface, var(--surface)) 86%, var(--customer-bg, var(--bg))) !important;
  color: var(--customer-text, var(--text)) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045) !important;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

.product-modal .choice-row {
  grid-template-columns: 22px minmax(0, 1fr) auto !important;
  padding: 11px 12px !important;
}

.product-modal .choice-row input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: var(--customer-primary, var(--primary)) !important;
}

.product-modal .choice-row span:not(.modal-price),
.product-modal .addon-row span {
  min-width: 0 !important;
  color: var(--customer-text, var(--text)) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
}

.product-modal .modal-price,
.product-modal .addon-row strong {
  color: var(--customer-primary, var(--primary)) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.product-modal .choice-row:has(input:checked),
.product-modal .addon-row.is-selected {
  border-color: var(--customer-primary, var(--primary)) !important;
  background: color-mix(in srgb, var(--customer-primary, var(--primary)) 9%, var(--customer-surface, var(--surface))) !important;
  box-shadow: 0 16px 32px color-mix(in srgb, var(--customer-primary, var(--primary)) 16%, transparent) !important;
}

.product-modal .addon-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  padding: 11px 12px !important;
}

.product-modal .addon-row > div:first-child {
  min-width: 0 !important;
}

.product-modal .addon-stepper {
  grid-template-columns: 32px 34px 32px !important;
  min-width: 98px !important;
  height: 34px !important;
  border: 1px solid color-mix(in srgb, var(--customer-primary, var(--primary)) 28%, transparent) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--customer-primary, var(--primary)) 8%, transparent) !important;
  color: var(--customer-primary, var(--primary)) !important;
  overflow: hidden !important;
}

.product-modal .addon-row.is-selected .addon-stepper {
  background: var(--customer-primary, var(--primary)) !important;
  color: var(--button-text, #fff) !important;
}

.product-modal .addon-stepper button {
  width: 32px !important;
  height: 32px !important;
  color: inherit !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.product-modal .addon-stepper b {
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.product-modal .sheet-footer {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: grid !important;
  grid-template-columns: 132px minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 13px 16px calc(13px + env(safe-area-inset-bottom)) !important;
  border-top: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 86%, transparent) !important;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--customer-surface, var(--surface)) 96%, var(--customer-bg, var(--bg))), color-mix(in srgb, var(--customer-surface, var(--surface)) 96%, var(--customer-bg, var(--bg)))) !important;
  box-shadow: 0 -16px 34px rgba(15, 23, 42, .08) !important;
}

.product-modal .qty-stepper {
  min-height: 48px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 38px !important;
  align-items: center !important;
  border: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 88%, transparent) !important;
  border-radius: 16px !important;
  background: var(--customer-surface, var(--surface)) !important;
  color: var(--customer-text, var(--text)) !important;
  overflow: hidden !important;
}

.product-modal .qty-stepper button {
  width: 38px !important;
  height: 46px !important;
  color: var(--customer-primary, var(--primary)) !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}

.product-modal .qty-stepper b {
  color: var(--customer-text, var(--text)) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.product-modal .add-modal-cart {
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: var(--customer-primary, var(--primary)) !important;
  color: var(--button-text, #fff) !important;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--customer-primary, var(--primary)) 28%, transparent) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

@media (min-width: 820px) {
  .product-modal .product-sheet {
    bottom: 24px !important;
    max-height: min(760px, calc(100dvh - 48px)) !important;
  }
}

@media (max-width: 560px) {
  .product-modal .product-sheet {
    bottom: 0 !important;
    width: 100% !important;
    max-height: 94dvh !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .product-modal .sheet-image {
    height: clamp(210px, 31vh, 290px) !important;
  }

  .product-modal .sheet-body {
    padding: 16px 14px 112px !important;
  }

  .product-modal .option-group {
    padding: 12px !important;
  }

  .product-modal .choice-row {
    grid-template-columns: 20px minmax(0, 1fr) auto !important;
  }

  .product-modal .sheet-footer {
    grid-template-columns: 118px minmax(0, 1fr) !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}

.storefront-v2 .sf-cart-fab {
  min-height: 56px !important;
  border-radius: 18px !important;
  padding: 12px 16px !important;
  background: var(--customer-primary, var(--primary)) !important;
  color: var(--button-text, #fff) !important;
  box-shadow: 0 18px 38px color-mix(in srgb, var(--customer-primary, var(--primary)) 34%, transparent) !important;
}

.storefront-v2 .sf-cart-fab span,
.storefront-v2 .sf-cart-fab strong {
  color: inherit !important;
  font-weight: 900 !important;
}

.storefront-v2 .sf-drawer {
  z-index: 10015 !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  overflow: hidden !important;
}

.storefront-v2 .sf-drawer-backdrop {
  z-index: 1 !important;
  background: rgba(2, 6, 23, .38) !important;
  backdrop-filter: none !important;
}

.storefront-v2 .sf-drawer-panel {
  z-index: 2 !important;
  right: auto !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
  width: min(720px, 100vw) !important;
  max-width: 100vw !important;
  max-height: 92dvh !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, auto) auto !important;
  gap: 12px !important;
  padding: 0 !important;
  border: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 88%, transparent) !important;
  border-bottom: 0 !important;
  border-radius: 24px 24px 0 0 !important;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--customer-surface, var(--surface)) 94%, var(--customer-bg, var(--bg))), color-mix(in srgb, var(--customer-surface, var(--surface)) 94%, var(--customer-bg, var(--bg)))) !important;
  color: var(--customer-text, var(--text)) !important;
  box-shadow: 0 -24px 80px rgba(2, 6, 23, .32) !important;
  overflow: hidden !important;
}

.storefront-v2 .sf-drawer-panel,
.storefront-v2 .sf-drawer-panel * {
  box-sizing: border-box !important;
}

.storefront-v2 .sf-drawer-panel > header {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 78%, transparent) !important;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--customer-surface, var(--surface)) 96%, var(--customer-bg, var(--bg))), color-mix(in srgb, var(--customer-surface, var(--surface)) 96%, var(--customer-bg, var(--bg)))) !important;
  backdrop-filter: none !important;
}

.storefront-v2 .sf-drawer-panel > header h2 {
  margin: 0 !important;
  color: var(--customer-text, var(--text)) !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.storefront-v2 .sf-drawer-panel > header button {
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 82%, transparent) !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--customer-surface, var(--surface)) 86%, var(--customer-bg, var(--bg))) !important;
  color: var(--customer-text, var(--text)) !important;
  font-size: 22px !important;
}

.storefront-v2 .sf-cart-lines {
  min-height: 96px !important;
  max-height: 32dvh !important;
  display: grid !important;
  gap: 10px !important;
  padding: 14px 18px 2px !important;
  overflow: auto !important;
  scrollbar-width: thin !important;
}

.storefront-v2 .sf-cart-empty {
  min-height: 92px !important;
  display: grid !important;
  place-items: center !important;
  gap: 6px !important;
  padding: 18px !important;
  border: 1px dashed color-mix(in srgb, var(--customer-border, var(--border)) 92%, transparent) !important;
  border-radius: 18px !important;
  background: color-mix(in srgb, var(--customer-primary, var(--primary)) 5%, transparent) !important;
  text-align: center !important;
}

.storefront-v2 .sf-cart-empty b {
  color: var(--customer-text, var(--text)) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.storefront-v2 .sf-cart-empty span {
  max-width: 360px !important;
  color: var(--customer-muted, var(--muted)) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.7 !important;
}

.storefront-v2 .sf-cart-line {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto 34px !important;
  gap: 9px !important;
  align-items: center !important;
  padding: 12px !important;
  border: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 84%, transparent) !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--customer-surface, var(--surface)) 86%, var(--customer-bg, var(--bg))) !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .045) !important;
}

.storefront-v2 .sf-cart-line-main {
  min-width: 0 !important;
}

.storefront-v2 .sf-cart-line-main strong {
  display: block !important;
  color: var(--customer-text, var(--text)) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

.storefront-v2 .sf-cart-line-details {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-top: 7px !important;
}

.storefront-v2 .sf-cart-chip {
  max-width: 150px !important;
  min-height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: rgba(148, 163, 184, .12) !important;
  color: var(--customer-muted, var(--muted)) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.storefront-v2 .sf-cart-chip.variant {
  background: color-mix(in srgb, var(--customer-primary, var(--primary)) 10%, transparent) !important;
  color: var(--customer-primary, var(--primary)) !important;
}

.storefront-v2 .sf-cart-chip.addon {
  background: rgba(34, 197, 94, .12) !important;
  color: #16a34a !important;
}

.storefront-v2 .cart-line-actions {
  grid-template-columns: 30px 28px 30px !important;
  min-width: 90px !important;
  height: 34px !important;
  border: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 82%, transparent) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--customer-surface, var(--surface)) 74%, var(--customer-bg, var(--bg))) !important;
}

.storefront-v2 .cart-line-actions button {
  width: 30px !important;
  height: 32px !important;
  color: var(--customer-primary, var(--primary)) !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.storefront-v2 .cart-line-actions b {
  color: var(--customer-text, var(--text)) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.storefront-v2 .sf-cart-line-price {
  color: var(--customer-primary, var(--primary)) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.storefront-v2 .sf-cart-remove {
  width: 34px !important;
  height: 34px !important;
  border: 1px solid rgba(244, 63, 94, .22) !important;
  border-radius: 12px !important;
  background: rgba(244, 63, 94, .09) !important;
  color: #e11d48 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.storefront-v2 .sf-checkout {
  min-height: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  display: grid !important;
  gap: 12px !important;
  padding: 0 18px 18px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.storefront-v2 .sf-form-grid {
  min-width: 0 !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.storefront-v2 .sf-form-grid label,
.storefront-v2 .sf-address-field label {
  min-width: 0 !important;
  display: grid !important;
  gap: 6px !important;
  margin: 0 !important;
}

.storefront-v2 .sf-form-grid label > span,
.storefront-v2 .sf-address-field label > span {
  color: var(--customer-muted, var(--muted)) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.storefront-v2 .sf-form-grid input,
.storefront-v2 .sf-form-grid select,
.storefront-v2 .sf-form-grid textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  border: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 86%, transparent) !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--customer-surface, var(--surface)) 84%, var(--customer-bg, var(--bg))) !important;
  color: var(--customer-text, var(--text)) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.storefront-v2 .sf-order-type {
  min-width: 0 !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 8px !important;
}

.storefront-v2 .sf-order-type label {
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 84%, transparent) !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--customer-surface, var(--surface)) 84%, var(--customer-bg, var(--bg))) !important;
  color: var(--customer-text, var(--text)) !important;
  font-weight: 900 !important;
}

.storefront-v2 .sf-order-type label.is-selected {
  border-color: var(--customer-primary, var(--primary)) !important;
  background: color-mix(in srgb, var(--customer-primary, var(--primary)) 10%, transparent) !important;
  color: var(--customer-primary, var(--primary)) !important;
}

.storefront-v2 .sf-order-type input {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.storefront-v2 .sf-order-type svg,
.storefront-v2 .sf-input-with-icon svg,
.storefront-v2 .sf-location-btn svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
}

.storefront-v2 .sf-input-with-icon input {
  width: 100% !important;
  padding-inline-start: 38px !important;
}

.storefront-v2 .sf-input-with-icon svg {
  position: absolute !important;
  top: 50% !important;
  inset-inline-start: 12px !important;
  transform: translateY(-50%) !important;
  color: var(--customer-primary, var(--primary)) !important;
}

.storefront-v2 .sf-coupon-apply {
  min-width: 0 !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: end !important;
  padding: 10px !important;
  border: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 84%, transparent) !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--customer-primary, var(--primary)) 5%, transparent) !important;
}

.storefront-v2 .sf-coupon-apply button {
  min-height: 44px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--customer-primary, var(--primary)) !important;
  color: var(--button-text, #fff) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.storefront-v2 .sf-coupon-apply button:disabled {
  cursor: not-allowed !important;
  opacity: .58 !important;
}

.storefront-v2 .sf-coupon-apply small {
  grid-column: 1 / -1 !important;
  margin-top: 0 !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.storefront-v2 .sf-address-field {
  display: grid !important;
  gap: 9px !important;
}

.storefront-v2 .sf-location-btn {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 1px solid color-mix(in srgb, var(--customer-primary, var(--primary)) 28%, transparent) !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--customer-primary, var(--primary)) 8%, transparent) !important;
  color: var(--customer-primary, var(--primary)) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.storefront-v2 .sf-cart-summary {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 13px !important;
  border: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 84%, transparent) !important;
  border-radius: 18px !important;
  background: color-mix(in srgb, var(--customer-surface, var(--surface)) 82%, var(--customer-bg, var(--bg))) !important;
}

.storefront-v2 .sf-cart-summary p {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 !important;
  color: var(--customer-muted, var(--muted)) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.storefront-v2 .sf-cart-summary strong {
  color: var(--customer-text, var(--text)) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.storefront-v2 .sf-cart-summary .sf-total {
  margin-top: 4px !important;
  padding-top: 10px !important;
  border-top: 1px dashed color-mix(in srgb, var(--customer-border, var(--border)) 84%, transparent) !important;
  color: var(--customer-text, var(--text)) !important;
  font-size: 16px !important;
}

.storefront-v2 .sf-cart-summary .sf-total strong {
  color: var(--customer-primary, var(--primary)) !important;
  font-size: 20px !important;
}

.storefront-v2 .sf-checkout-btn {
  min-height: 50px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: var(--customer-primary, var(--primary)) !important;
  color: var(--button-text, #fff) !important;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--customer-primary, var(--primary)) 26%, transparent) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.storefront-v2 .sf-checkout-btn:disabled {
  cursor: not-allowed !important;
  opacity: .58 !important;
  box-shadow: none !important;
}

@media (min-width: 860px) {
  .storefront-v2 .sf-drawer-panel {
    bottom: 24px !important;
    max-height: min(820px, calc(100dvh - 48px)) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--customer-border, var(--border)) 88%, transparent) !important;
    border-radius: 24px !important;
  }
}

@media (max-width: 620px) {
  .storefront-v2 .sf-cart-fab {
    right: 10px !important;
    bottom: 10px !important;
    width: calc(100vw - 20px) !important;
    transform: none !important;
  }

  .storefront-v2 .sf-cart-fab:active {
    transform: scale(.98) !important;
  }

  .storefront-v2 .sf-drawer-panel > header {
    padding: 14px !important;
  }

  .storefront-v2 .sf-cart-lines {
    max-height: 28dvh !important;
    padding: 12px 12px 0 !important;
  }

  .storefront-v2 .sf-cart-line {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .storefront-v2 .sf-cart-line-price {
    grid-column: 1 !important;
  }

  .storefront-v2 .sf-cart-remove {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  .storefront-v2 .sf-checkout {
    padding: 0 12px 14px !important;
  }

  .storefront-v2 .sf-form-grid {
    grid-template-columns: 1fr !important;
  }

  .storefront-v2 .sf-coupon-apply {
    grid-template-columns: 1fr !important;
  }
}

/* Keep product details readable after restaurant theme overrides. */
body[data-theme-scope="customer"] .product-modal {
  z-index: 1200 !important;
  isolation: isolate !important;
}

body[data-theme-scope="customer"] .product-modal .modal-backdrop {
  z-index: 0 !important;
  background: rgba(2, 6, 23, .42) !important;
  backdrop-filter: none !important;
}

body[data-theme-scope="customer"] .product-modal .product-sheet {
  position: fixed !important;
  z-index: 10 !important;
  isolation: isolate !important;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--customer-surface, var(--surface)) 94%, var(--customer-bg, var(--bg))), color-mix(in srgb, var(--customer-surface, var(--surface)) 94%, var(--customer-bg, var(--bg)))) !important;
  color: var(--customer-text, var(--text)) !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

body[data-theme-scope="customer"] .product-modal .sheet-image {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

body[data-theme-scope="customer"] .product-modal .sheet-body,
body[data-theme-scope="customer"] .product-modal .sheet-footer {
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--customer-surface, var(--surface)) 94%, var(--customer-bg, var(--bg))), color-mix(in srgb, var(--customer-surface, var(--surface)) 94%, var(--customer-bg, var(--bg)))) !important;
  color: var(--customer-text, var(--text)) !important;
  opacity: 1 !important;
  filter: none !important;
}

body[data-theme-scope="customer"] .product-modal .sheet-body h2,
body[data-theme-scope="customer"] .product-modal .modal-section h3,
body[data-theme-scope="customer"] .product-modal .choice-row strong,
body[data-theme-scope="customer"] .product-modal .addon-row strong,
body[data-theme-scope="customer"] .product-modal .sheet-total strong,
body[data-theme-scope="customer"] .product-modal .qty-stepper strong {
  color: var(--customer-text, var(--text)) !important;
  text-shadow: none !important;
}

body[data-theme-scope="customer"] .product-modal .sheet-body p,
body[data-theme-scope="customer"] .product-modal .modal-section-note,
body[data-theme-scope="customer"] .product-modal .sf-product-meta,
body[data-theme-scope="customer"] .product-modal .choice-row span,
body[data-theme-scope="customer"] .product-modal .addon-row span {
  color: var(--customer-muted, var(--muted)) !important;
  text-shadow: none !important;
}

body[data-theme-scope="customer"] .product-modal .choice-row,
body[data-theme-scope="customer"] .product-modal .addon-row,
body[data-theme-scope="customer"] .product-modal .qty-stepper {
  background: color-mix(in srgb, var(--customer-surface, var(--surface)) 92%, var(--customer-bg, var(--bg))) !important;
  color: var(--customer-text, var(--text)) !important;
  border-color: var(--customer-border, var(--border)) !important;
}

body[data-theme-scope="customer"] .product-modal .choice-row.is-selected,
body[data-theme-scope="customer"] .product-modal .addon-row.is-selected {
  border-color: var(--customer-primary, var(--primary)) !important;
  background: color-mix(in srgb, var(--customer-primary, var(--primary)) 16%, var(--customer-surface, var(--surface))) !important;
}

body[data-theme-scope="customer"] .storefront-v2 .sf-drawer {
  z-index: 1200 !important;
  isolation: isolate !important;
}

body[data-theme-scope="customer"] .storefront-v2 .sf-drawer-backdrop {
  z-index: 0 !important;
  background: rgba(2, 6, 23, .38) !important;
  backdrop-filter: none !important;
}

body[data-theme-scope="customer"] .storefront-v2 .sf-drawer-panel {
  position: absolute !important;
  z-index: 10 !important;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--customer-surface, var(--surface)) 94%, var(--customer-bg, var(--bg))), color-mix(in srgb, var(--customer-surface, var(--surface)) 94%, var(--customer-bg, var(--bg)))) !important;
  color: var(--customer-text, var(--text)) !important;
  opacity: 1 !important;
  filter: none !important;
}

body[data-theme-scope="customer"] .storefront-v2 .sf-drawer-panel > header,
body[data-theme-scope="customer"] .storefront-v2 .sf-auth-box,
body[data-theme-scope="customer"] .storefront-v2 .sf-customer-profile,
body[data-theme-scope="customer"] .storefront-v2 .sf-guest-card,
body[data-theme-scope="customer"] .storefront-v2 .sf-wallet-grid article,
body[data-theme-scope="customer"] .storefront-v2 .sf-coupon-list,
body[data-theme-scope="customer"] .storefront-v2 .sf-social-block {
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--customer-surface, var(--surface)) 88%, var(--customer-bg, var(--bg))), color-mix(in srgb, var(--customer-surface, var(--surface)) 88%, var(--customer-bg, var(--bg)))) !important;
  color: var(--customer-text, var(--text)) !important;
  border-color: var(--customer-border, var(--border)) !important;
  opacity: 1 !important;
}

body[data-theme-scope="customer"] .storefront-v2 .sf-auth-box strong,
body[data-theme-scope="customer"] .storefront-v2 .sf-customer-profile strong,
body[data-theme-scope="customer"] .storefront-v2 .sf-wallet-grid b,
body[data-theme-scope="customer"] .storefront-v2 .sf-guest-card h3 {
  color: var(--customer-text, var(--text)) !important;
}

body[data-theme-scope="customer"] .storefront-v2 .sf-guest-card span,
body[data-theme-scope="customer"] .storefront-v2 .sf-guest-card p,
body[data-theme-scope="customer"] .storefront-v2 .sf-wallet-grid span,
body[data-theme-scope="customer"] .storefront-v2 .sf-wallet-grid small,
body[data-theme-scope="customer"] .storefront-v2 .sf-coupon-card span,
body[data-theme-scope="customer"] .storefront-v2 .sf-review-card small {
  color: var(--customer-muted, var(--muted)) !important;
}

body[data-theme-scope="customer"] .storefront-v2 .sf-cart-fab {
  z-index: 1100 !important;
  background: var(--customer-primary, var(--primary)) !important;
  color: var(--button-text, #fff) !important;
}

body[data-theme-scope="customer"] .sf-drawer {
  z-index: 1200 !important;
  isolation: isolate !important;
}

body[data-theme-scope="customer"] .sf-drawer-backdrop {
  z-index: 0 !important;
  background: rgba(2, 6, 23, .38) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body[data-theme-scope="customer"] .sf-drawer-panel {
  position: absolute !important;
  z-index: 10 !important;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--customer-surface, var(--surface)) 94%, var(--customer-bg, var(--bg))), color-mix(in srgb, var(--customer-surface, var(--surface)) 94%, var(--customer-bg, var(--bg)))) !important;
  color: var(--customer-text, var(--text)) !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

body[data-theme-scope="customer"] .sf-drawer-panel > header,
body[data-theme-scope="customer"] .sf-auth-box,
body[data-theme-scope="customer"] .sf-customer-profile,
body[data-theme-scope="customer"] .sf-guest-card,
body[data-theme-scope="customer"] .sf-wallet-grid article,
body[data-theme-scope="customer"] .sf-coupon-list,
body[data-theme-scope="customer"] .sf-social-block,
body[data-theme-scope="customer"] .sf-cart-line,
body[data-theme-scope="customer"] .sf-cart-summary,
body[data-theme-scope="customer"] .sf-coupon-apply {
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--customer-surface, var(--surface)) 88%, var(--customer-bg, var(--bg))), color-mix(in srgb, var(--customer-surface, var(--surface)) 88%, var(--customer-bg, var(--bg)))) !important;
  color: var(--customer-text, var(--text)) !important;
  border-color: var(--customer-border, var(--border)) !important;
  opacity: 1 !important;
  filter: none !important;
}

body[data-theme-scope="customer"] .sf-form-grid input,
body[data-theme-scope="customer"] .sf-form-grid select,
body[data-theme-scope="customer"] .sf-form-grid textarea,
body[data-theme-scope="customer"] .sf-order-type label,
body[data-theme-scope="customer"] .cart-line-actions,
body[data-theme-scope="customer"] .sf-cart-empty {
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--customer-surface, var(--surface)) 82%, var(--customer-bg, var(--bg))), color-mix(in srgb, var(--customer-surface, var(--surface)) 82%, var(--customer-bg, var(--bg)))) !important;
  color: var(--customer-text, var(--text)) !important;
  border-color: var(--customer-border, var(--border)) !important;
  opacity: 1 !important;
}

body[data-theme-scope="customer"] .sf-drawer-panel h2,
body[data-theme-scope="customer"] .sf-drawer-panel h3,
body[data-theme-scope="customer"] .sf-drawer-panel strong,
body[data-theme-scope="customer"] .sf-drawer-panel b,
body[data-theme-scope="customer"] .sf-auth-box strong,
body[data-theme-scope="customer"] .sf-customer-profile strong,
body[data-theme-scope="customer"] .sf-wallet-grid b,
body[data-theme-scope="customer"] .sf-guest-card h3,
body[data-theme-scope="customer"] .cart-line-actions b {
  color: var(--customer-text, var(--text)) !important;
  text-shadow: none !important;
}

body[data-theme-scope="customer"] .sf-drawer-panel p,
body[data-theme-scope="customer"] .sf-drawer-panel small,
body[data-theme-scope="customer"] .sf-drawer-panel label > span,
body[data-theme-scope="customer"] .sf-cart-line span,
body[data-theme-scope="customer"] .sf-cart-summary p,
body[data-theme-scope="customer"] .sf-guest-card span,
body[data-theme-scope="customer"] .sf-guest-card p,
body[data-theme-scope="customer"] .sf-wallet-grid span,
body[data-theme-scope="customer"] .sf-wallet-grid small,
body[data-theme-scope="customer"] .sf-coupon-card span,
body[data-theme-scope="customer"] .sf-review-card small {
  color: var(--customer-muted, var(--muted)) !important;
  text-shadow: none !important;
}

body[data-theme-scope="customer"] .sf-cart-line-price,
body[data-theme-scope="customer"] .sf-cart-summary .sf-total strong,
body[data-theme-scope="customer"] .sf-cart-summary .total strong,
body[data-theme-scope="customer"] .sf-wallet-grid b {
  color: var(--customer-primary, var(--primary)) !important;
}

body[data-theme-scope="customer"] .sf-drawer-panel > header button,
body[data-theme-scope="customer"] .cart-line-actions button {
  background: color-mix(in srgb, var(--customer-surface, var(--surface)) 74%, var(--customer-bg, var(--bg))) !important;
  color: var(--customer-text, var(--text)) !important;
  border-color: var(--customer-border, var(--border)) !important;
}

/* Launch-safe modal/drawer fallback: opaque dark panels, no overlay above content. */
body[data-theme-scope="customer"] .product-modal,
body[data-theme-scope="customer"] .sf-drawer {
  background: transparent !important;
  isolation: isolate !important;
}

body[data-theme-scope="customer"] .product-modal .modal-backdrop,
body[data-theme-scope="customer"] .sf-drawer .sf-drawer-backdrop {
  display: none !important;
}

body[data-theme-scope="customer"] .product-modal .product-sheet,
body[data-theme-scope="customer"] .sf-drawer .sf-drawer-panel,
body[data-theme-scope="customer"] .sf-drawer .sf-drawer-panel > header,
body[data-theme-scope="customer"] .sf-drawer .sf-auth-box,
body[data-theme-scope="customer"] .sf-drawer .sf-customer-profile,
body[data-theme-scope="customer"] .sf-drawer .sf-guest-card,
body[data-theme-scope="customer"] .sf-drawer .sf-wallet-grid article,
body[data-theme-scope="customer"] .sf-drawer .sf-coupon-list,
body[data-theme-scope="customer"] .sf-drawer .sf-social-block,
body[data-theme-scope="customer"] .sf-drawer .sf-cart-line,
body[data-theme-scope="customer"] .sf-drawer .sf-cart-summary,
body[data-theme-scope="customer"] .sf-drawer .sf-coupon-apply,
body[data-theme-scope="customer"] .product-modal .sheet-body,
body[data-theme-scope="customer"] .product-modal .sheet-footer,
body[data-theme-scope="customer"] .product-modal .option-group,
body[data-theme-scope="customer"] .product-modal .choice-row,
body[data-theme-scope="customer"] .product-modal .addon-row,
body[data-theme-scope="customer"] .product-modal .qty-stepper {
  background: #111827 !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, .28) !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

body[data-theme-scope="customer"] .sf-drawer .sf-form-grid input,
body[data-theme-scope="customer"] .sf-drawer .sf-form-grid select,
body[data-theme-scope="customer"] .sf-drawer .sf-form-grid textarea,
body[data-theme-scope="customer"] .sf-drawer .sf-order-type label,
body[data-theme-scope="customer"] .sf-drawer .cart-line-actions,
body[data-theme-scope="customer"] .sf-drawer .sf-cart-empty {
  background: #0b1220 !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, .28) !important;
  opacity: 1 !important;
}

body[data-theme-scope="customer"] .sf-drawer .sf-order-type input[name="order_type"],
body[data-theme-scope="customer"] .storefront-v2 .sf-drawer .sf-order-type input[name="order_type"] {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body[data-theme-scope="customer"] .product-modal .sheet-body h2,
body[data-theme-scope="customer"] .product-modal .modal-section h3,
body[data-theme-scope="customer"] .product-modal .choice-row span,
body[data-theme-scope="customer"] .product-modal .choice-row strong,
body[data-theme-scope="customer"] .product-modal .addon-row span,
body[data-theme-scope="customer"] .product-modal .addon-row strong,
body[data-theme-scope="customer"] .product-modal .qty-stepper b,
body[data-theme-scope="customer"] .sf-drawer .sf-drawer-panel h2,
body[data-theme-scope="customer"] .sf-drawer .sf-drawer-panel h3,
body[data-theme-scope="customer"] .sf-drawer .sf-drawer-panel strong,
body[data-theme-scope="customer"] .sf-drawer .sf-drawer-panel b {
  color: #f8fafc !important;
  text-shadow: none !important;
}

body[data-theme-scope="customer"] .product-modal .sheet-body p,
body[data-theme-scope="customer"] .product-modal .modal-section-note,
body[data-theme-scope="customer"] .sf-drawer .sf-drawer-panel p,
body[data-theme-scope="customer"] .sf-drawer .sf-drawer-panel small,
body[data-theme-scope="customer"] .sf-drawer .sf-drawer-panel label > span,
body[data-theme-scope="customer"] .sf-drawer .sf-cart-line span,
body[data-theme-scope="customer"] .sf-drawer .sf-cart-summary p {
  color: #cbd5e1 !important;
  text-shadow: none !important;
}

body[data-theme-scope="customer"] .product-modal .choice-row:has(input:checked),
body[data-theme-scope="customer"] .product-modal .addon-row.is-selected,
body[data-theme-scope="customer"] .sf-drawer .sf-order-type label.is-selected {
  background: color-mix(in srgb, var(--customer-primary, var(--primary)) 18%, #111827) !important;
  border-color: var(--customer-primary, var(--primary)) !important;
}

body[data-theme-scope="customer"] .sf-cart-fab,
body[data-theme-scope="customer"] .storefront-v2 .sf-cart-fab,
body[data-theme-scope="customer"] .product-modal .add-modal-cart,
body[data-theme-scope="customer"] .sf-drawer .sf-checkout-btn,
body[data-theme-scope="customer"] .sf-drawer .sf-coupon-apply button {
  background: linear-gradient(135deg, var(--customer-primary, var(--primary)), var(--customer-accent, var(--accent))) !important;
  color: var(--button-text, #fff) !important;
  border: 0 !important;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--customer-primary, var(--primary)) 34%, transparent) !important;
}

body[data-theme-scope="customer"] .sf-cart-fab span,
body[data-theme-scope="customer"] .sf-cart-fab strong,
body[data-theme-scope="customer"] .sf-cart-fab b,
body[data-theme-scope="customer"] .product-modal .add-modal-cart span,
body[data-theme-scope="customer"] .sf-drawer .sf-checkout-btn {
  color: var(--button-text, #fff) !important;
}

/* Critical CTA colors without relying on the body scope attribute. */
.sf-cart-fab,
.storefront-v2 .sf-cart-fab,
.product-modal .add-modal-cart,
.sf-drawer .sf-checkout-btn,
.sf-drawer .sf-coupon-apply button {
  background: linear-gradient(135deg, var(--customer-primary, var(--primary, #22c55e)), var(--customer-accent, var(--accent, #38bdf8))) !important;
  color: var(--button-text, #fff) !important;
  border: 0 !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--customer-primary, var(--primary, #22c55e)) 34%, transparent) !important;
}

.sf-cart-fab span,
.sf-cart-fab strong,
.sf-cart-fab b,
.product-modal .add-modal-cart,
.product-modal .add-modal-cart span,
.sf-drawer .sf-checkout-btn {
  color: var(--button-text, #fff) !important;
  text-shadow: none !important;
}

body[data-theme-scope="customer"] .orderaty-brand-credit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px 10px !important;
  padding: 14px 16px 48px !important;
  margin-top: 18px !important;
  color: var(--customer-muted, var(--muted, #94a3b8)) !important;
  border-top: 1px solid var(--customer-border, var(--border, rgba(148, 163, 184, .18))) !important;
  text-align: center !important;
  font-size: .82rem !important;
}

body[data-theme-scope="customer"] .orderaty-brand-credit a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 180px !important;
  text-decoration: none !important;
}

body[data-theme-scope="customer"] .orderaty-brand-credit img {
  display: block !important;
  width: 110px !important;
  max-width: min(180px, 52vw) !important;
  height: auto !important;
  object-fit: contain !important;
}

body[data-theme-scope="customer"] .orderaty-brand-credit small {
  color: inherit !important;
  font-size: inherit !important;
}

body[data-theme-scope="customer"] .orderaty-brand-credit:not(.public-layout-brand-credit) {
  display: none !important;
}

body[data-theme-scope="customer"] #branchSelectModal [data-branch-switch-form] > button {
  background: #132b4a !important;
  color: #ffffff !important;
  border-color: rgba(96, 165, 250, .28) !important;
  box-shadow: 0 14px 34px rgba(6, 18, 36, .22) !important;
  opacity: 1 !important;
}

body[data-theme-scope="customer"] #branchSelectModal [data-branch-switch-form][data-current-branch="1"] > button {
  background: #132b4a !important;
  border-color: #60a5fa !important;
}

body[data-theme-scope="customer"] #branchSelectModal [data-branch-switch-form] > button strong,
body[data-theme-scope="customer"] #branchSelectModal [data-branch-switch-form] > button span {
  color: #ffffff !important;
}

body[data-theme-scope="customer"] #branchSelectModal [data-branch-switch-form] > button > span:not(:first-child) {
  color: rgba(255, 255, 255, .72) !important;
  opacity: 1 !important;
}

body[data-theme-scope="customer"] #branchSelectModal [data-branch-switch-form] em {
  background: #60a5fa !important;
  color: #ffffff !important;
}

/* Orderaty brand CTAs: cart/order actions are intentionally independent from restaurant themes. */
.sf-cart-fab,
.storefront-v2 .sf-cart-fab,
.product-modal .add-modal-cart,
.sf-drawer .sf-checkout-btn,
.sf-drawer .sf-coupon-apply button {
  background: linear-gradient(135deg, #f00000, #c90000) !important;
  color: #ffffff !important;
  border: 0 !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  box-shadow: 0 16px 34px rgba(240, 0, 0, .34) !important;
}

.sf-cart-fab *,
.product-modal .add-modal-cart *,
.sf-drawer .sf-checkout-btn *,
.sf-drawer .sf-coupon-apply button * {
  color: #ffffff !important;
}

.storefront-v2 .sf-hero {
  gap: 16px !important;
}

.storefront-v2 .sf-branch-card {
  margin-top: 14px !important;
  padding-top: 20px !important;
  overflow: visible !important;
}

.storefront-v2 .sf-branch-main {
  padding-top: 0 !important;
}

.storefront-v2 .sf-branch-main h1 {
  margin-top: 0 !important;
}

@media (max-width: 620px) {
  .storefront-v2 .sf-hero {
    gap: 18px !important;
  }

  .storefront-v2 .sf-branch-card {
    margin-top: 16px !important;
    padding-top: 22px !important;
  }
}
