@font-face {
  font-family: "Local Cairo";
  src: url("../admin_panel/assets/fonts/cairo/cairo-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Local Cairo";
  src: url("../admin_panel/assets/fonts/cairo/cairo-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Local Cairo Arabic";
  src: url("../admin_panel/assets/fonts/cairo/cairo-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0600-06FF,
    U+0750-077F,
    U+08A0-08FF,
    U+FB50-FDFF,
    U+FE70-FEFF;
}

@font-face {
  font-family: "Local Cairo Arabic";
  src: url("../admin_panel/assets/fonts/cairo/cairo-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range:
    U+0600-06FF,
    U+0750-077F,
    U+08A0-08FF,
    U+FB50-FDFF,
    U+FE70-FEFF;
}

:root {
  color-scheme: light;
  --ui-safe-top: env(safe-area-inset-top, 0px);
  --ui-safe-right: env(safe-area-inset-right, 0px);
  --ui-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ui-safe-left: env(safe-area-inset-left, 0px);
  --ui-cookie-banner-height: 0px;
  --cart-attribution-safe-gap: clamp(10px, 2.2vw, 16px);
  --cart-bottom-nav-clearance-gap: clamp(12px, 3vw, 18px);
  --ui-bg: #f4f4f6;
  --ui-surface: #ffffff;
  --ui-surface-muted: #f8f8fb;
  --ui-text: #1f1f1f;
  --ui-text-muted: #6d6d6d;
  --ui-text-strong: #111827;
  --ui-border: rgba(17, 17, 17, 0.08);
  --ui-border-strong: rgba(17, 17, 17, 0.16);
  --ui-primary: #ff7a18;
  --ui-primary-dark: #e0670c;
  --ui-accent: #4338ca;
  --ui-success: #22c55e;
  --ui-warning: #fbbf24;
  --ui-danger: #ef4444;
  --ui-shadow-soft: 0 24px 55px rgba(15, 23, 42, 0.15);
  --ui-shadow-card: 0 12px 30px rgba(15, 23, 42, 0.12);
  --ui-radius-xl: 32px;
  --ui-radius-lg: 24px;
  --ui-radius-md: 18px;
  --ui-radius-pill: 999px;
  --ui-font-heading: "Local Cairo Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --ui-font-body: "Local Cairo Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --ui-font-arabic: "Local Cairo", "Cairo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ui-content-max: 1200px;
  --cart-shell-max: var(--ui-content-max);
  --ui-shell-padding: clamp(18px, 5vw, 64px);
  --ui-space-xs: clamp(6px, 0.9vw, 10px);
  --ui-space-sm: clamp(10px, 1.4vw, 16px);
  --ui-space-md: clamp(16px, 2vw, 22px);
  --ui-space-lg: clamp(22px, 2.8vw, 36px);
  --ui-space-xl: clamp(32px, 4vw, 52px);
  --ui-card-padding: clamp(20px, 2.6vw, 30px);
  --ui-section-gap: clamp(20px, 4vw, 38px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.cart-page {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  color: var(--ui-text);
  font-family: var(--ui-font-body);
  padding: var(--ui-shell-padding) clamp(18px, 4vw, 48px) clamp(32px, 6vw, 88px);
  padding-top: calc(var(--ui-shell-padding) + var(--ui-safe-top));
  padding-left: calc(clamp(18px, 4vw, 48px) + var(--ui-safe-left));
  padding-right: calc(clamp(18px, 4vw, 48px) + var(--ui-safe-right));
  padding-bottom: calc(var(--oh-bottom-nav-h, 62px) + 24px + var(--ui-safe-bottom) + var(--ui-cookie-banner-height, 0px));
}

html[lang="ar"] body.cart-page,
html[lang="ar"] body.order-history-page,
body.cairo-font.cart-page,
body.cairo-font.order-history-page {
  --ui-font-body: var(--ui-font-arabic);
  --ui-font-heading: var(--ui-font-arabic);
}

html[lang="ar"] body.cart-page,
html[lang="ar"] body.cart-page button,
html[lang="ar"] body.cart-page input,
html[lang="ar"] body.cart-page select,
html[lang="ar"] body.cart-page textarea,
html[lang="ar"] body.order-history-page,
html[lang="ar"] body.order-history-page button,
html[lang="ar"] body.order-history-page input,
html[lang="ar"] body.order-history-page select,
html[lang="ar"] body.order-history-page textarea,
body.cairo-font.cart-page,
body.cairo-font.cart-page button,
body.cairo-font.cart-page input,
body.cairo-font.cart-page select,
body.cairo-font.cart-page textarea,
body.cairo-font.order-history-page,
body.cairo-font.order-history-page button,
body.cairo-font.order-history-page input,
body.cairo-font.order-history-page select,
body.cairo-font.order-history-page textarea,
html[lang="ar"] body.cart-page .ordering-top-bar .rt-lang-menu__item[data-lang="ar"],
html[lang="ar"] body.order-history-page .ordering-top-bar .rt-lang-menu__item[data-lang="ar"],
body.cairo-font.cart-page .ordering-top-bar .rt-lang-menu__item[data-lang="ar"],
body.cairo-font.order-history-page .ordering-top-bar .rt-lang-menu__item[data-lang="ar"] {
  font-family: var(--ui-font-arabic);
}

/* Keep the Arabic language label in local Cairo even when current UI language is not Arabic. */
body.cart-page .ordering-top-bar .rt-lang-menu__item[data-lang="ar"],
body.cart-page .ordering-top-bar [data-rt-lang-label="ar"],
body.order-history-page .ordering-top-bar .rt-lang-menu__item[data-lang="ar"],
body.order-history-page .ordering-top-bar [data-rt-lang-label="ar"] {
  font-family: var(--ui-font-arabic);
}

@media (min-width: 721px) {
  body.cart-page .ordering-top-bar__shell {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "lang brand .";
  }
}

.search-page {
  padding-bottom: calc(clamp(120px, 14vw, 180px) + var(--ui-safe-bottom) + var(--ui-cookie-banner-height));
}

html.modal-open,
body.modal-open {
  overflow: hidden;
  height: 100%;
}

.ui-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--ui-text-muted);
  margin: 0;
}

.ui-hero__desc {
  margin: 8px 0 0;
  color: var(--ui-text-muted);
  font-size: 1rem;
}

.ui-cta-button {
  border: none;
  border-radius: var(--ui-radius-pill);
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-content: center;
}

.ui-cta-button--blocked {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.ui-cta-button--blocked:hover {
  transform: none;
}

.ui-cta-button--primary {
  background: linear-gradient(135deg,
      var(--ui-primary),
      var(--ui-primary-dark));
  color: #fff;
  box-shadow: 0 18px 35px rgba(224, 103, 12, 0.3);
}

.ui-cta-button--primary[data-service-style="delivery"] {
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 18px 35px rgba(34, 197, 94, 0.35);
}

.ui-cta-button--primary[data-service-style="pickup"] {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 18px 35px rgba(234, 88, 12, 0.35);
}

.ui-cta-button--ghost {
  background: rgba(17, 17, 17, 0.05);
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
}

.ui-cta-button:hover {
  transform: translateY(-1px);
}

.ui-loader {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
}

html.ui-loader-open,
body.ui-loader-open {
  overflow: hidden;
}

.ui-loader--visible {
  display: flex;
}

.ui-loader__panel {
  min-width: 190px;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ui-loader__distance {
  width: 54px;
  height: 54px;
  display: none;
}

.ui-loader[data-variant="distance"] .ui-loader__distance {
  display: block;
}

.ui-loader[data-variant="distance"] .ui-loader__spinner {
  display: none;
}

.ui-loader__distance-route {
  stroke-dasharray: 10 10;
  stroke-dashoffset: 0;
  animation: ui-loader-route-dash 0.9s linear infinite;
}

.ui-loader__distance-pin {
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.35));
}

.ui-loader__distance-pulse {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: ui-loader-pulse 1.2s ease-out infinite;
}

.ui-loader__spinner {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 3px solid rgba(148, 163, 184, 0.4);
  border-top-color: var(--ui-success, var(--ui-primary, #22c55e));
  animation: ui-global-spin 0.9s linear infinite;
}

.ui-loader__label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
  font-weight: 500;
}

@keyframes ui-global-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ui-loader-route-dash {
  to {
    stroke-dashoffset: -40;
  }
}

@keyframes ui-loader-pulse {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  35% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.ui-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ui-progress__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ui-text-muted);
}

.ui-progress__step::before {
  content: "";
  width: 34px;
  height: 6px;
  border-radius: var(--ui-radius-pill);
  background: currentColor;
  opacity: 0.25;
}

.ui-progress__step--active {
  color: var(--ui-primary-dark);
}

.ui-progress__step--active::before {
  opacity: 1;
}

.hidden {
  display: none !important;
}

/* Ensures every element using the HTML hidden attribute collapses regardless of layout overrides. */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.field-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ui-text-muted);
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--ui-border);
  font-size: 0.97rem;
  min-height: 52px;
  background: #fafbfc;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field-input:focus {
  border-color: var(--ui-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.1);
  outline: none;
}

.field-help {
  margin: 4px 0 6px;
  font-size: 0.85rem;
  color: var(--ui-text-muted);
}

.customer-notes-block {
  --customer-notes-inline-padding: 16px;
  --customer-notes-compact-padding-y: 12px;
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--ui-border);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.customer-notes-block:focus-within {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.1);
}

.customer-notes-header {
  --customer-notes-chevron-size: 20px;
  --customer-notes-info-size: 24px;
  --customer-notes-controls-gap: 8px;
  --customer-notes-info-shift: 12px;
  --customer-notes-chevron-end-offset: 0px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: var(--customer-notes-compact-padding-y) var(--customer-notes-inline-padding);
}

.customer-notes-toggle {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: none;
  background: transparent;
  min-height: 44px;
  padding: 0
    calc(
      var(--customer-notes-chevron-size) +
      var(--customer-notes-info-size) +
      var(--customer-notes-controls-gap) +
      var(--customer-notes-info-shift) +
      var(--customer-notes-chevron-end-offset) +
      8px
    )
    0
    0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: start;
  cursor: pointer;
  color: inherit;
  position: relative;
}

.customer-notes-toggle:focus-visible {
  outline: 3px solid rgba(255, 122, 24, 0.28);
  outline-offset: 2px;
  border-radius: 14px;
}

.customer-notes-toggle__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1px;
}

.customer-notes-toggle .field-label {
  font-size: 1rem;
  color: var(--ui-text-strong);
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  text-align: start;
}

.customer-notes-toggle__preview {
  max-width: 100%;
  font-size: 0.86rem;
  color: var(--ui-text-muted);
  line-height: 1.2;
  text-align: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 504px) {
  .customer-notes-toggle .field-label {
    font-size: clamp(0.82rem, 3.35vw, 0.92rem);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.customer-notes-toggle__chevron {
  width: var(--customer-notes-chevron-size);
  height: var(--customer-notes-chevron-size);
  color: var(--ui-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  right: var(--customer-notes-chevron-end-offset);
  margin: 0;
  flex-shrink: 0;
  transform: translateY(-50%);
  pointer-events: none;
  transition: color 0.2s ease;
}

.customer-notes-toggle__chevron::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.customer-notes-block[data-expanded="true"] .customer-notes-toggle__chevron {
  color: var(--ui-text);
}

.customer-notes-block[data-expanded="true"] .customer-notes-toggle__chevron::before {
  transform: rotate(45deg);
}

.note-info-trigger {
  width: var(--customer-notes-info-size);
  height: var(--customer-notes-info-size);
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.28);
  background: #ffffff;
  color: var(--ui-text-muted);
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  box-shadow: none;
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  right: calc(
    var(--customer-notes-chevron-size) +
    var(--customer-notes-chevron-end-offset) +
    var(--customer-notes-controls-gap) +
    var(--customer-notes-info-shift)
  );
  transform: translateY(-50%);
  z-index: 1;
}

.note-info-trigger:hover {
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.4);
  color: var(--ui-text-strong);
}

.note-info-trigger:focus-visible {
  outline: 3px solid rgba(255, 122, 24, 0.28);
  outline-offset: 2px;
}

.note-info-popover {
  --note-popover-width: min(420px, calc(100vw - 32px));
  --note-popover-left: 16px;
  --note-popover-top: 16px;
  --note-popover-arrow-left: 24px;
  --note-popover-viewport-gutter: 16px;
  --note-popover-max-height: calc(100vh - 32px);
  position: fixed;
  top: var(--note-popover-top);
  left: var(--note-popover-left);
  right: auto;
  width: var(--note-popover-width);
  max-width: calc(100vw - (var(--note-popover-viewport-gutter) * 2));
  max-height: var(--note-popover-max-height);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(14px, 2vw, 18px);
  background: #ffffff;
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.24);
  font-size: clamp(0.88rem, 1.8vw, 0.95rem);
  line-height: 1.6;
  z-index: 3500;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 114, 128, 0.5) transparent;
}

.note-info-popover::before {
  content: "";
  position: absolute;
  bottom: -7px;
  left: var(--note-popover-arrow-left);
  right: auto;
  width: 12px;
  height: 12px;
  background: inherit;
  border-right: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
  transform: rotate(45deg);
}

.note-info-popover p {
  margin: 0;
}

.note-subtitle {
  margin: 0 0 16px;
  color: var(--ui-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.note-field-shell {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: block;
}

.customer-notes-content {
  margin-top: 0;
  padding: 0 var(--customer-notes-inline-padding) var(--customer-notes-inline-padding);
}

.customer-notes-block[data-expanded="true"] .customer-notes-content {
  padding-top: 12px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.note-field-shell:focus-within {
  background: transparent;
}

.note-field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ui-text-muted);
  font-size: 0.9rem;
  width: 20px;
  height: 20px;
}

.customer-notes-block[data-expanded="true"] .note-field-icon,
.customer-notes-block:focus-within .note-field-icon {
  color: var(--ui-primary);
}

.note-textarea {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  outline: none;
  resize: none;
  padding: 0;
  min-height: 80px;
  padding: 4px 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ui-text-strong);
  line-height: 1.5;
}

.note-textarea:focus {
  background: transparent;
}

.note-textarea::placeholder {
  color: rgba(107, 114, 128, 0.6);
  font-weight: 400;
}

.cart-app {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--ui-section-gap);
  padding: clamp(12px, 1.6vw, 24px) 0;
}

.cart-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(150deg, #ffffff 0%, #f8f9ff 75%);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-xl);
  padding: var(--ui-card-padding);
  box-shadow: var(--ui-shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-sm);
}

.cart-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%,
      rgba(255, 122, 24, 0.14),
      transparent 55%),
    radial-gradient(circle at 85% 0%, rgba(67, 56, 202, 0.12), transparent 45%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.cart-header__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ui-space-md);
  align-items: center;
}

.cart-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ui-text-strong);
  line-height: 1.2;
}

.cart-quick-nav {
  width: min(var(--ui-content-max), 100%);
  margin: 0 auto clamp(8px, 3vw, 18px);
  padding: 16px clamp(12px, 2vw, 22px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: 22px;
  background: linear-gradient(135deg, #f9fbff 0%, #f6f8fc 60%, #fdfdff 100%);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  isolation: isolate;
  position: sticky;
  top: calc(var(--ui-safe-top) + clamp(12px, 4vw, 28px));
  z-index: 12;
}

.cart-quick-nav__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 0;
  height: auto;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--ui-text-strong);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cart-quick-nav__title i {
  color: var(--ui-primary);
  font-size: 1.55rem;
}

.cart-quick-nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

@media (max-width: 488px) {
  .cart-quick-nav {
    gap: 10px;
  }

  .cart-quick-nav__actions {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .cart-quick-nav {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px clamp(12px, 2vw, 22px);
  }

  .cart-quick-nav__actions {
    margin-left: 0;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 561px) and (min-width: 300px) {
  .cart-quick-nav__title {
    font-size: 2.1rem;
  }

  .cart-quick-nav__title i {
    font-size: 2.3rem;
  }
}

.cart-quick-nav__btn {
  width: 60px;
  height: 60px;
  border-radius: var(--ui-radius-pill);
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.96), rgba(240, 244, 255, 0.9));
  color: var(--ui-text, #0f172a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  isolation: isolate;
}

.cart-quick-nav__btn i {
  font-size: 1.25rem;
}

.cart-quick-nav__icon {
  width: 22px;
  height: 30px;
  display: block;
  background: currentColor;
  mask: url("icons/menu.svg") center/contain no-repeat;
  -webkit-mask: url("icons/menu.svg") center/contain no-repeat;
}

.cart-quick-nav__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 55px rgba(15, 23, 42, 0.24);
}

.cart-quick-nav__btn:focus-visible {
  outline: 3px solid rgba(67, 56, 202, 0.25);
  outline-offset: 3px;
}

.cart-quick-nav__btn--accent {
  background: linear-gradient(150deg, var(--ui-primary), var(--ui-primary-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 28px 60px rgba(255, 122, 24, 0.35);
}

@media (max-width: 600px) {
  .cart-quick-nav {
    padding: 12px 14px;
    gap: 10px;
  }

  .cart-quick-nav__btn {
    width: 54px;
    height: 54px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  }
}

.cart-quick-nav__btn--history {
  background: linear-gradient(140deg, #ecfeff, #d5f5ee);
  border-color: rgba(34, 197, 94, 0.3);
  color: #0f766e;
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.25);
  font-weight: 700;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ui-section-gap);
  align-items: flex-start;
  justify-items: center;
}

.cart-section {
  width: min(var(--ui-content-max, 960px), 100%);
  margin-inline: auto;
  background: var(--ui-surface);
  border-radius: var(--ui-radius-lg);
  padding: var(--ui-card-padding);
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-md);
  margin-top: 20px;
}

.cart-layout > .cart-section:last-child {
  --cart-form-stack-gap: clamp(16px, 2.2vw, 22px);
  gap: var(--cart-form-stack-gap);
}

.cart-layout > .cart-section:last-child > :where(
    .service-switch,
    .schedule-grid,
    .customer-grid,
    .customer-notes-block,
    .cart-dynamic-info-slot,
    .cart-dynamic-summary-card,
    .distance-pricing-panel,
    .working-hours-panel,
    .cart-actions
  ) {
  margin-top: 0;
  margin-bottom: 0;
}

.cart-section__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--ui-space-sm);
  color: var(--ui-text-strong);
}

.cart-section__title i {
  width: clamp(32px, 4vw, 40px);
  height: clamp(32px, 4vw, 40px);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ui-surface-muted);
  color: var(--ui-primary-dark);
}

.cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-sm);
}

.cart-empty-state {
  border: 1px dashed var(--ui-border);
  border-radius: var(--ui-radius-md);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--ui-space-sm);
  min-height: clamp(180px, 24vw, 260px);
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fd 100%);
  color: var(--ui-text-muted);
}

.cart-empty-state__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ui-primary);
  background: rgba(255, 122, 24, 0.12);
}

.cart-empty-state__icon svg {
  width: 36px;
  height: 36px;
}

.cart-empty-state__title {
  font-size: 1.05rem;
  color: var(--ui-text-strong);
}

.cart-empty-state__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ui-text-muted);
}

/* ================================================================
   CART ITEM CARD — CSS-only responsive layout with grid-template-areas.
   No JS-driven DOM movement needed.
   ================================================================ */

.cart-item {
  --ci-bg: #ffffff;
  --ci-border: var(--ui-border);
  --ci-border-hover: rgba(17, 17, 17, 0.14);
  --ci-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --ci-shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
  --ci-radius: var(--ui-radius-md);
  --ci-pad: clamp(14px, 2vw, 20px);
  --ci-gap: clamp(10px, 1.5vw, 16px);
  --ci-thumb-size: clamp(80px, 12vw, 120px);

  border: 1px solid var(--ci-border);
  border-radius: var(--ci-radius);
  padding: var(--ci-pad);
  background: var(--ci-bg);
  box-shadow: var(--ci-shadow);
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-xs);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-item:hover {
  border-color: var(--ci-border-hover);
  box-shadow: var(--ci-shadow-hover);
}

/* --- Grid layout with named areas (responsive via media queries) --- */

.cart-item-header {
  display: grid;
  grid-template-columns: var(--ci-thumb-size) 1fr;
  grid-template-areas: "media body";
  gap: var(--ci-gap);
  align-items: start;
}

.cart-item-header--no-media {
  grid-template-columns: 1fr;
  grid-template-areas: "body";
}

.cart-item__media {
  grid-area: media;
  align-self: start;
  display: flex;
  width: var(--ci-thumb-size);
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item__inline-media {
  display: none;
}

.cart-item__body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.4vw, 12px);
  min-width: 0;
}

/* ================================================================
   FOOTER: controls + price block  —  REBUILT
   ================================================================ */

.cart-item__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 0;
  border-top: none;
}

/* --- Title --- */

.cart-item__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cart-item__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-note {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--ui-text-muted);
}

.cart-item-note--allergens {
  font-size: 0.82rem;
  line-height: 1.35;
  margin-left: 0;
  padding-left: 0;
  color: var(--ui-text-muted);
}

.cart-item-note+.cart-item-note {
  margin-top: 4px;
}

.cart-item-name {
  display: block;
  width: 100%;
  color: var(--ui-text-strong);
  font-weight: 650;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 0;
  text-align: left;
  word-break: break-word;
}

.cart-item-name+.cart-item-note {
  margin-top: 6px;
}

/* ================================================================
   PRICE BLOCK — breakdown, summe, tax  —  REBUILT
   ================================================================ */

.cart-item__price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.04), rgba(255, 122, 24, 0.01));
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 24, 0.08);
  min-width: 120px;
}

.cart-item__breakdown-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-size: 0.78rem;
  color: var(--ui-text-muted);
  font-weight: 500;
  white-space: nowrap;
  unicode-bidi: isolate;
  line-height: 1.5;
}

.cart-item__breakdown-label {
  text-align: end;
}

.cart-item__breakdown-value {
  font-variant-numeric: tabular-nums;
  color: var(--ui-text-strong);
  font-weight: 600;
}

.cart-item__price-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding-top: 4px;
  margin-top: 2px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.cart-item__price-label {
  font-size: 0.82rem;
  color: var(--ui-text-muted);
  font-weight: 700;
  white-space: nowrap;
}

.cart-item__price {
  font-weight: 800;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--ui-primary-dark, #e56a0f);
  font-variant-numeric: tabular-nums;
}

.cart-item__price,
.cart-item__price--original,
.cart-item__price--discounted,
.cart-item__money {
  unicode-bidi: isolate;
}

.cart-item--discounted .cart-item__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cart-item__price--original {
  color: var(--ui-text-muted);
  text-decoration: line-through;
  font-weight: 500;
  font-size: 0.85rem;
}

.cart-item__price--discounted {
  color: var(--ui-success, #0f9d58);
  font-weight: 800;
  font-size: 1.1rem;
}

.cart-item__money {
  display: inline-block;
  direction: ltr;
  white-space: nowrap;
}

.cart-item__unit-price {
  font-size: 0.78rem;
  color: var(--ui-text-muted);
  font-weight: 500;
}

.cart-item__unit-price-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--ctrl-h, 42px);
  min-height: var(--ctrl-h, 42px);
  box-sizing: border-box;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ui-primary-dark, #c85a00);
  border: 1.5px solid rgba(255, 122, 24, 0.18);
  border-radius: 12px;
  padding: 0 16px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.06), rgba(255, 122, 24, 0.02));
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: default;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex: 1 1 auto;
  min-width: 0;
}

.cart-item__tax-note {
  display: block;
  width: 100%;
  font-size: 0.68rem;
  font-weight: 400;
  color: #999;
  line-height: 1.3;
  margin-top: 1px;
  white-space: normal;
  text-align: end;
}

.cart-item-info {
  flex: 1;
}

/* --- Thumbnail --- */

.cart-item-thumb {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid var(--ui-border);
  overflow: hidden;
  background: #ffffff;
  padding: 0;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-thumb--placeholder {
  border: 1px dashed var(--ui-border-strong);
  background: var(--ui-surface-muted);
  box-shadow: none;
  cursor: default;
  align-items: center;
  justify-content: center;
}

.cart-item-thumb--placeholder img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  padding: 8px;
  opacity: 0.65;
}

.cart-item-thumb:hover {
  transform: scale(1.03);
}

/* --- Compact layout (≤913px): stacked card --- */

@media (max-width: 913px) {
  .cart-item {
    --ci-thumb-size: clamp(56px, 10vw, 80px);
    --ci-pad: clamp(12px, 2vw, 18px);
    --ci-gap: clamp(10px, 1.5vw, 14px);
    gap: 0;
  }

  .cart-item-header {
    grid-template-columns: var(--ci-thumb-size) 1fr;
    grid-template-areas: "media body";
    gap: 10px;
    align-items: start;
  }

  .cart-item-header--no-media {
    grid-template-columns: 1fr;
    grid-template-areas: "body";
  }

  .cart-item__media {
    width: var(--ci-thumb-size);
    aspect-ratio: 1 / 1;
    align-self: start;
  }

  .cart-item__body {
    gap: 4px;
    align-self: center;
    min-width: 0;
  }

  .cart-item__title-row {
    margin-bottom: 0;
  }

  .cart-item__details {
    margin-top: 2px;
  }

  /* ── Footer: stacked on tablet ── */
  .cart-item__footer {
    flex-direction: column;
    gap: 10px;
  }

  /* ── Price block: compact on tablet ── */
  .cart-item__price-block {
    padding: 8px 12px;
    border-radius: 10px;
    min-width: 100px;
    align-self: flex-end;
  }

  .cart-item__price {
    font-size: 1rem;
  }

  .cart-item__unit-price {
    font-size: 0.72rem;
  }

  .cart-item__unit-price-badge {
    font-size: 0.76rem;
    padding: 0 12px;
    border-radius: 10px;
  }

  .cart-item__tax-note {
    font-size: 0.64rem;
  }

  /* ── Controls: compact row on tablet ── */
  .cart-item__controls {
    --ctrl-h: 36px;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 14px;
  }

  .cart-item__selects {
    gap: 6px;
  }

  .cart-item .cart-item__select {
    padding: 7px 28px 7px 10px;
    font-size: 0.84rem;
    min-width: 0;
    border-radius: 10px;
    background-position: right 8px center;
    background-size: 10px;
  }

  .variant-dropdown-wrapper {
    gap: 4px;
  }

  .variant-dropdown-label {
    font-size: 0.62rem;
  }

  .cart-item .cart-item__select.variant-dropdown {
    min-width: 0;
    padding: 7px 26px 7px 10px;
    font-size: 0.82rem;
    border-radius: 10px;
    background-position: right 8px center;
    background-size: 10px;
  }

  .variant-dropdown-hint {
    font-size: 0.62rem;
  }

  .cart-item .cart-item__select.quantity-dropdown {
    min-width: 50px;
    max-width: 60px;
    flex: 0 0 auto;
    padding: 7px 22px 7px 8px;
    font-size: 0.84rem;
    margin-bottom: calc(0.62rem + 4px);
  }

  .cart-item__controls--quantity-only .cart-item__select.quantity-dropdown {
    margin-bottom: 0;
  }

  .cart-item__actions {
    flex: 0 0 auto;
    gap: 5px;
    margin-bottom: calc(0.62rem + 4px);
  }

  .cart-item__controls--quantity-only .cart-item__actions {
    margin-bottom: 0;
  }

  .cart-item__action-btn {
    border-radius: 10px;
  }

  .cart-item__action-icon {
    width: 14px;
    height: 14px;
  }

  .cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
  }

  .cart-item-name,
  .cart-item-note {
    text-align: left;
  }
}

/* ── Mobile: compact for ≤500px ── */
@media (max-width: 500px) {
  .cart-item__footer {
    gap: 10px;
  }

  .cart-item__controls {
    --ctrl-h: 32px;
    padding: 8px;
    gap: 6px;
    border-radius: 12px;
  }

  .cart-item__selects {
    gap: 5px;
  }

  .cart-item .cart-item__select {
    padding: 6px 22px 6px 8px;
    font-size: 0.8rem;
    border-radius: 9px;
    background-position: right 6px center;
    background-size: 9px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  }

  .cart-item .cart-item__select.variant-dropdown {
    padding: 6px 20px 6px 8px;
    font-size: 0.78rem;
    border-radius: 9px;
    background-position: right 6px center;
    background-size: 9px;
  }

  .variant-dropdown-wrapper {
    gap: 3px;
  }

  .variant-dropdown-label {
    font-size: 0.58rem;
  }

  .variant-dropdown-hint {
    font-size: 0.56rem;
  }

  .cart-item .cart-item__select.quantity-dropdown {
    min-width: 44px;
    max-width: 52px;
    padding: 6px 18px 6px 6px;
    font-size: 0.8rem;
    margin-bottom: calc(0.56rem + 3px);
  }

  .cart-item__controls--quantity-only .cart-item__select.quantity-dropdown {
    margin-bottom: 0;
  }

  .cart-item__unit-price-badge {
    font-size: 0.72rem;
    padding: 0 10px;
    border-radius: 9px;
  }

  .cart-item__actions {
    gap: 4px;
    margin-bottom: calc(0.56rem + 3px);
  }

  .cart-item__controls--quantity-only .cart-item__actions {
    margin-bottom: 0;
  }

  .cart-item__action-btn {
    border-radius: 9px;
  }

  .cart-item__action-icon {
    width: 13px;
    height: 13px;
  }

  .cart-item__price-block {
    padding: 8px 10px;
    border-radius: 10px;
    min-width: 90px;
  }

  .cart-item__breakdown-line {
    font-size: 0.72rem;
  }

  .cart-item__price-label {
    font-size: 0.74rem;
  }

  .cart-item__price {
    font-size: 0.96rem;
  }

  .cart-item__tax-note {
    font-size: 0.62rem;
  }

  .cart-add-more-btn {
    padding: 14px 20px;
    font-size: 0.86rem;
    border-radius: 14px;
  }

  .cart-add-more-btn::before {
    border-radius: 14px;
  }
}

body.cart-modal-locked {
  overflow: hidden;
}

.cart-extras-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 20, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1300;
}

.cart-extras-overlay.is-visible {
  display: flex;
}

.cart-extras-overlay__backdrop {
  position: absolute;
  inset: 0;
}

.cart-extras-editor {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  width: min(420px, 100%);
  padding: 20px 22px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1;
}

.cart-extras-editor__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cart-extras-editor__header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.cart-extras-editor__close {
  border: none;
  background: rgba(15, 23, 42, 0.08);
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 999px;
  font-size: 0;
  line-height: 0;
  padding: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  cursor: pointer;
}

.cart-extras-editor__close::before {
  content: "\00d7";
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--ui-text, #111827);
  transform: translateY(-0.5px);
  pointer-events: none;
}

.cart-extras-editor__hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ui-text-muted);
}

.cart-extras-editor__empty {
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ui-text-muted);
  border: 1px dashed rgba(15, 23, 42, 0.2);
  background: rgba(15, 23, 42, 0.03);
}

.cart-extras-editor__list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.cart-extras-editor__item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 10px 12px;
  cursor: pointer;
}

.cart-extras-editor__item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ui-primary);
}

.cart-extras-editor__label {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.95rem;
}

.cart-extras-editor__label strong {
  font-size: 0.85rem;
  color: var(--ui-primary);
}

.cart-extras-editor__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cart-extras-editor__cancel,
.cart-extras-editor__save {
  border-radius: var(--ui-radius-pill);
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.cart-extras-editor__cancel {
  background: rgba(15, 23, 42, 0.05);
  color: var(--ui-text-muted);
}

.cart-extras-editor__save {
  background: linear-gradient(135deg, var(--ui-primary), #f97316);
  color: #fff;
}

/* ================================================================
   CONTROLS — variant dropdown, quantity, action buttons  —  REBUILT
   ================================================================ */

.cart-item__controls {
  --ctrl-h: 42px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: linear-gradient(145deg, #f8f6f3, #faf9f7);
  border-radius: 16px;
  padding: 12px 14px;
  border: 1.5px solid rgba(17, 17, 17, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

/* quantity-only: no variant label/hint, so center-align everything */
.cart-item__controls--quantity-only {
  align-items: center;
}

.cart-item__selects {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

/* quantity-only: center children so badge = qty = buttons height */
.cart-item__selects--quantity-only {
  align-items: center;
}

.cart-item__selects select {
  flex: 0 0 auto;
}

/* ── Shared base: all cart <select> elements ── */
.cart-item .cart-item__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  border: 1.5px solid rgba(17, 17, 17, 0.10);
  border-radius: 12px;
  padding: 9px 34px 9px 12px;
  height: var(--ctrl-h, 42px);
  box-sizing: border-box;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 11px;
  background-position: right 10px center;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ui-text-strong);
  min-width: 100px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cart-item .cart-item__select::-ms-expand {
  display: none;
}

.cart-item .cart-item__select:hover {
  border-color: var(--ui-primary);
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(255, 122, 24, 0.10);
}

.cart-item .cart-item__select:focus,
.cart-item .cart-item__select:focus-visible {
  outline: none;
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.12);
}

.cart-item .cart-item__select.is-filled {
  border-color: rgba(255, 122, 24, 0.30);
  background-color: #fff;
}

/* ── Quantity dropdown — same height as variant (42px) ── */
.cart-item .cart-item__select.quantity-dropdown {
  min-width: 68px;
  max-width: 80px;
  height: var(--ctrl-h, 42px);
  text-align: center;
  text-align-last: center;
  font-weight: 700;
  font-size: 0.92rem;
  align-self: flex-end;
  margin-bottom: calc(0.68rem + 5px);
}

.cart-item__controls--quantity-only .cart-item__select.quantity-dropdown {
  margin-bottom: 0;
}

.quantity-dropdown {
  min-width: 68px;
  max-width: 90px;
  text-align: center;
}

/* ── Variant dropdown wrapper (label + select + hint) ── */
.variant-dropdown-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
}

.variant-dropdown-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ui-primary-dark, #c85a00);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-inline-start: 4px;
  line-height: 1;
}

.cart-item .cart-item__select.variant-dropdown {
  min-width: 0;
  width: 100%;
  height: var(--ctrl-h, 42px);
  font-variant-numeric: tabular-nums;
  border-radius: 12px;
  padding: 9px 34px 9px 12px;
  font-size: 0.86rem;
  font-weight: 500;
  border-color: rgba(255, 122, 24, 0.15);
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cart-item .cart-item__select.variant-dropdown:hover {
  border-color: var(--ui-primary);
  box-shadow: 0 2px 8px rgba(255, 122, 24, 0.10);
}

.cart-item .cart-item__select.variant-dropdown:focus,
.cart-item .cart-item__select.variant-dropdown:focus-visible {
  background-color: #fff;
}

.cart-item .cart-item__select.variant-dropdown.is-filled {
  background-color: #fff;
  border-color: rgba(255, 122, 24, 0.30);
}

.variant-dropdown-hint {
  font-size: 0.68rem;
  color: var(--ui-text-muted, #9ca3af);
  padding-inline-start: 4px;
  line-height: 1;
  font-style: italic;
}

/* ── Action buttons — exactly 42px to match dropdowns ── */
.cart-item__actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: calc(0.68rem + 5px);
}

.cart-item__controls--quantity-only .cart-item__actions {
  margin-bottom: 0;
}

.cart-item__action-btn {
  width: var(--ctrl-h, 42px);
  height: var(--ctrl-h, 42px);
  border-radius: 12px;
  border: 1.5px solid rgba(17, 17, 17, 0.06);
  background: #fff;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.cart-item__action-btn:hover,
.cart-item__action-btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.cart-item__action-btn:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cart-item__action-btn--duplicate:hover,
.cart-item__action-btn--duplicate:focus-visible {
  border-color: var(--ui-success);
  color: #fff;
  background: var(--ui-success, #0f9d58);
}

.cart-item__action-btn--delete:hover,
.cart-item__action-btn--delete:focus-visible {
  border-color: var(--ui-danger);
  color: #fff;
  background: var(--ui-danger, #ea4335);
}

.cart-item__action-icon {
  width: 17px;
  height: 17px;
  display: block;
}

.cart-item-extras-block {
  width: fit-content;
  max-width: 100%;
  display: block;
  margin-top: 4px;
}

.cart-item-note--extras {
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface-muted);
  padding: 6px 14px;
  border-radius: var(--ui-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  cursor: pointer;
  color: var(--ui-text-muted);
  box-shadow: none;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* When extras are selected, show success accent */
.cart-item-note--extras.has-extras {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.06);
  color: var(--ui-success);
}

.cart-item-note--extras::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  flex: 0 0 auto;
  opacity: 0.45;
}

.cart-item-note--extras-editable {
  cursor: pointer;
}

.cart-item-note--extras-editable:hover,
.cart-item-note--extras-editable:focus-visible {
  outline: none;
  color: #15803d;
  border-color: var(--ui-success);
  background: rgba(34, 197, 94, 0.08);
}

.cart-item-note--extras.has-extras:hover,
.cart-item-note--extras.has-extras:focus-visible {
  color: var(--ui-success);
  border-color: var(--ui-success);
  background: rgba(34, 197, 94, 0.1);
}

.cart-item-extras-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.cart-item-extras-summary__header {
  display: none;
}

.cart-item-extras-summary__header--hidden {
  display: none;
}

.cart-item-extras-summary__label {
  display: none;
}

.cart-item-extras-summary__status {
  display: none;
}

.cart-item-extras-summary__body {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.cart-item-extras-summary__empty {
  font-size: inherit;
  color: inherit;
  font-weight: 500;
}

.cart-item-extras-summary__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.cart-item-extras-summary__item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: inherit;
  color: inherit;
}

.cart-item-extras-summary__item:not(:last-child)::after {
  content: ",";
}

.cart-item-extras-summary__name {
  font-weight: 500;
}

.cart-item-extras-summary__price {
  flex-shrink: 0;
  color: var(--ui-primary-dark);
  font-weight: 600;
  font-size: inherit;
}

.cart-item-note--exclusions {
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface-muted);
  padding: 6px 14px;
  border-radius: var(--ui-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  cursor: pointer;
  color: var(--ui-text-muted);
  box-shadow: none;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* When exclusions are selected, show danger accent */
.cart-item-note--exclusions.has-exclusions {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
  color: var(--ui-danger);
}

.cart-item-note--exclusions::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  flex: 0 0 auto;
  opacity: 0.45;
}

@media (max-width: 540px) {

  .cart-item-note--exclusions {
    padding-right: clamp(26px, 10vw, 32px);
  }

  .cart-item-note--exclusions::after {
    right: clamp(8px, 6vw, 12px);
    font-size: 0.9rem;
  }
}

@media (max-width: 450px) {

  .cart-item-note--exclusions {
    padding-right: clamp(22px, 12vw, 28px);
  }

  .cart-item-note--exclusions::after {
    right: clamp(6px, 7vw, 10px);
    font-size: 0.88rem;
  }
}

.cart-item-note--exclusions:hover,
.cart-item-note--exclusions:focus-visible {
  outline: none;
  color: var(--ui-primary-dark);
  border-color: var(--ui-primary);
  background: rgba(255, 122, 24, 0.06);
}

.cart-item-note--exclusions.has-exclusions:hover,
.cart-item-note--exclusions.has-exclusions:focus-visible {
  color: var(--ui-danger);
  border-color: var(--ui-danger);
  background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 540px) {
  .cart-item-extras-summary__price {
    font-size: 0.8rem;
  }
}

.cart-item select {
  border-radius: var(--ui-radius-pill);
  padding: 8px 14px;
  border: 1px solid var(--ui-border);
  min-width: 140px;
  font-size: 0.95rem;
}

.cart-primary-actions {
  display: flex;
  justify-content: center;
  gap: var(--ui-space-sm);
  flex-wrap: wrap;
}

/* ================================================================
   ADD MORE BUTTON — "Weitere Gerichte auswählen"  —  REBUILT
   ================================================================ */

.cart-add-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.08), rgba(255, 122, 24, 0.03));
  color: var(--ui-primary-dark, #d96800);
  border-radius: 16px;
  padding: 16px 28px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 2px 8px rgba(255, 122, 24, 0.08);
  position: relative;
  overflow: hidden;
}

.cart-add-more-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 2px dashed rgba(255, 122, 24, 0.25);
  pointer-events: none;
  transition: border-color 0.25s ease;
}

.cart-add-more-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ui-primary, #ff7a18);
  color: #fff;
  font-size: 0;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 6px rgba(255, 122, 24, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cart-add-more-btn__icon::before,
.cart-add-more-btn__icon::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 1.5px;
}

.cart-add-more-btn__icon::before {
  width: 12px;
  height: 2.5px;
}

.cart-add-more-btn__icon::after {
  width: 2.5px;
  height: 12px;
}

.cart-add-more-btn__text {
  white-space: nowrap;
}

.cart-add-more-btn:hover {
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.14), rgba(255, 122, 24, 0.06));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 122, 24, 0.15);
}

.cart-add-more-btn:hover::before {
  border-color: rgba(255, 122, 24, 0.4);
}

.cart-add-more-btn:hover .cart-add-more-btn__icon {
  transform: scale(1.12) rotate(90deg);
  box-shadow: 0 3px 10px rgba(255, 122, 24, 0.35);
}

.cart-add-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 122, 24, 0.08);
}

.service-switch {
  --toggle-width: clamp(260px, 60vw, 520px);
  --toggle-height: clamp(52px, 11vw, 82px);
  --toggle-knob-size: calc(var(--toggle-height) + 8px);
  --toggle-knob-reveal: calc(var(--toggle-knob-size) * 0.18);
  --toggle-bg-off: linear-gradient(135deg, #ff9a3c, #ff6a00);
  --toggle-bg-on: #a4bf4d;
  --toggle-knob-color: #f1f1f1;
  --toggle-text-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  user-select: none;
}

.cart-image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  z-index: 1200;
  --cart-lightbox-pad: 18px;
  padding: var(--cart-lightbox-pad);
  padding-top: calc(var(--cart-lightbox-pad) + var(--ui-safe-top));
  padding-right: calc(var(--cart-lightbox-pad) + var(--ui-safe-right));
  padding-bottom: calc(
    var(--cart-lightbox-pad) + var(--ui-safe-bottom) + var(--ui-cookie-banner-height, 0px)
  );
  padding-left: calc(var(--cart-lightbox-pad) + var(--ui-safe-left));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.cart-image-lightbox.is-visible {
  display: flex;
}

.cart-image-lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.cart-image-lightbox__panel {
  background: #ffffff;
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 28px 55px rgba(15, 23, 42, 0.35);
  max-width: min(520px, 90vw);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
  max-height: calc(
    90dvh - var(--ui-safe-top) - var(--ui-safe-bottom) - var(--ui-cookie-banner-height, 0px)
  );
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.cart-image-lightbox__panel img {
  width: 100%;
  height: auto;
  max-height: calc(
    70dvh - var(--ui-safe-top) - var(--ui-safe-bottom) - var(--ui-cookie-banner-height, 0px)
  );
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

.cart-image-lightbox__close {
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: var(--ui-text-muted);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}

.cart-image-lightbox__close:hover {
  background: rgba(15, 23, 42, 0.15);
  color: var(--ui-text);
}

.cart-image-lightbox__caption {
  width: 100%;
  text-align: left;
  font-weight: 600;
  color: var(--ui-text);
}

/* Legacy --media-hosted overrides removed (no longer needed with CSS Grid). */


.toggle {
  display: block;
  width: 100%;
}

.toggle--checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle--btn {
  display: block;
  margin: 0 auto;
  font-size: 1rem;
  cursor: pointer;
  transition: all 350ms ease-in;
}

.toggle--btn,
.toggle--feature,
.toggle--btn::before,
.toggle--feature::before,
.toggle--feature::after {
  transition: all 250ms ease-in;
}

.service-switch__toggle {
  position: relative;
  display: block;
  width: min(100%, var(--toggle-width));
}

.service-switch.toggle--knob .toggle--btn {
  position: relative;
  width: min(100%, var(--toggle-width));
  height: var(--toggle-height);
  font-family: var(--ui-font-body);
  text-transform: uppercase;
  color: var(--toggle-text-color);
  background: var(--toggle-bg-off);
  box-shadow: inset 0 20px 40px -10px #7e7e7e;
  border-radius: calc(var(--toggle-height));
  border: none;
  padding: 0;
}

.service-switch.toggle--knob .toggle--btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-1 * var(--toggle-knob-reveal));
  width: var(--toggle-knob-size);
  height: var(--toggle-knob-size);
  border-radius: 50%;
  background: var(--toggle-knob-color);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25),
    inset 0 10px 10px 8px rgba(241, 241, 241, 0.6), inset 0 0 8px 0 #333,
    inset 0 0 0 13px #ccc, inset 0 0 0 14px var(--toggle-knob-color);
  transform: translateY(-50%);
}

.service-switch.toggle--knob .toggle--feature {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  text-shadow: 0 1px 2px #666;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--toggle-text-color);
  padding-inline: calc(var(--toggle-knob-size) * 0.8);
  gap: calc(var(--toggle-knob-size) * 0.2);
  user-select: none;
}

.service-switch__label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 2.6vw, 1.2rem);
  letter-spacing: 0.15em;
  opacity: 0.45;
  text-align: center;
  transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.service-switch[data-service="pickup"] .service-switch__label--pickup,
.service-switch[data-service="delivery"] .service-switch__label--delivery {
  opacity: 1;
  color: #ffffff;
  transform: translateY(-1px);
}

.service-switch[data-service="pickup"] .service-switch__label--delivery,
.service-switch[data-service="delivery"] .service-switch__label--pickup {
  opacity: 0.25;
}

.toggle--checkbox:checked+.service-switch__toggle {
  background: var(--toggle-bg-on);
  box-shadow: inset 0 20px 40px -10px #7b9d25;
}

.toggle--checkbox:checked+.service-switch__toggle::before {
  left: calc(100% - var(--toggle-knob-size) + var(--toggle-knob-reveal));
}

.service-switch__icon {
  position: absolute;
  top: 50%;
  left: calc((-1 * var(--toggle-knob-reveal)) + (var(--toggle-knob-size) / 2));
  width: var(--toggle-knob-size);
  height: var(--toggle-knob-size);
  transform: translate(-50%, -50%);
  color: #374151;
  pointer-events: none;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-switch__glyph {
  position: absolute;
  inset: 24%;
  display: block;
  width: 52%;
  height: 52%;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.service-switch__glyph--pickup {
  mask-image: url("icons/abholung.svg");
  -webkit-mask-image: url("icons/abholung.svg");
}

.service-switch__glyph--delivery {
  mask-image: url("icons/lieferung.svg");
  -webkit-mask-image: url("icons/lieferung.svg");
}

.service-switch__icon[data-icon="pickup"] .service-switch__glyph--pickup,
.service-switch__icon[data-icon="delivery"] .service-switch__glyph--delivery {
  opacity: 1;
  transform: scale(0.9);
}

.service-switch__icon[data-icon="pickup"] .service-switch__glyph--pickup {
  transform: translateY(-6%) scale(0.9);
}

.toggle--checkbox:checked+.service-switch__toggle .service-switch__icon {
  left: calc(100% - var(--toggle-knob-size) + var(--toggle-knob-reveal) + (var(--toggle-knob-size) / 2));
}

.service-switch[data-locked] .service-switch__toggle {
  cursor: not-allowed;
  opacity: 0.8;
}

.service-switch select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-switch__status {
  display: none;
}

.service-switch__status-label {
  flex: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.88rem;
  color: #cdd1da;
  opacity: 0.75;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.service-switch__status-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transform: translateX(-50%);
  transition: background 0.3s ease, width 0.3s ease;
}

.service-switch[data-service="pickup"] .service-switch__status-label--pickup,
.service-switch[data-service="delivery"] .service-switch__status-label--delivery {
  color: #1f2937;
  opacity: 1;
}

.service-switch[data-service="pickup"] .service-switch__status-label--pickup::after,
.service-switch[data-service="delivery"] .service-switch__status-label--delivery::after {
  width: 48px;
  background: linear-gradient(135deg, #ff7a18, #e0670c);
}

.field-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.2);
}

.schedule-field-alert {
  animation: scheduleFieldPulse 1.2s ease-in-out 0s 2;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35),
    0 0 18px rgba(239, 68, 68, 0.35);
}

@keyframes scheduleFieldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35), 0 0 8px rgba(239, 68, 68, 0.2);
  }

  55% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.2),
      0 0 22px rgba(239, 68, 68, 0.45);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 0 4px rgba(239, 68, 68, 0.15);
  }
}

.working-hours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.working-hours--single .working-hours {
  justify-content: center;
}

.working-hours--single .working-hours__card {
  width: min(420px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.working-hours--single .working-hours__table {
  margin-left: auto;
  margin-right: auto;
}

.working-hours__card {
  background: var(--ui-surface-muted);
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  padding: 12px;
}

.working-hours__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ui-text-muted);
  margin-bottom: 6px;
}

/* Ensures the SVG icons inside the working-hours tables keep a predictable size */
.working-hours__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  color: var(--ui-text-muted);
}

.working-hours__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.working-hours__table[data-expanded="false"] .working-hours__row--hidden {
  display: none;
}

.working-hours__table[data-expanded="true"] .working-hours__row--hidden {
  display: table-row;
}

.working-hours__row--current {
  position: relative;
  font-weight: 600;
}

.working-hours__row--current td:first-child {
  color: var(--ui-accent);
}

.working-hours-panel {
  margin-top: 0;
  padding: 14px 16px;
  border-radius: var(--ui-radius-md);
  border: 1px dashed var(--ui-border);
  background: rgba(15, 23, 42, 0.02);
  display: block;
}

.working-hours-panel__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0;
}

.working-hours-panel:not([open]) {
  padding: 0;
}

.working-hours-panel:not([open]) .working-hours-panel__summary {
  min-height: 44px;
  padding: 12px 16px;
}

.working-hours-panel__summary::-webkit-details-marker {
  display: none;
}

.working-hours-panel__summary::marker {
  content: "";
}

.working-hours-panel__summary-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.working-hours-panel__summary-title {
  font-weight: 700;
  color: var(--ui-text);
  font-size: 0.97rem;
}

.working-hours-panel__summary-hint {
  font-size: 0.9rem;
  color: var(--ui-text-muted);
}

.working-hours-panel__chevron,
.distance-pricing-panel__chevron {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: 0;
  flex-shrink: 0;
  align-self: center;
}

.working-hours-panel__chevron::before,
.distance-pricing-panel__chevron::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ui-text-muted);
  border-bottom: 2px solid var(--ui-text-muted);
  transform: rotate(-45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.working-hours-panel[open] .working-hours-panel__chevron::before,
.distance-pricing-panel[open] .distance-pricing-panel__chevron::before {
  transform: rotate(45deg);
  border-color: var(--ui-text);
}

.working-hours-panel__body {
  margin-top: 0.65rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
}

.working-hours-panel__body-hint {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ui-text-muted);
}

.working-hours__toggle {
  margin-top: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  background: rgba(15, 23, 42, 0.02);
  color: var(--ui-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.working-hours__toggle::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f054";
  font-size: 0.95rem;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.working-hours__toggle[aria-expanded="true"]::after {
  content: "\f106";
}

#workingHoursSection[data-service-selection="pickup"] .working-hours__toggle {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.4);
  color: #9a3412;
  box-shadow: 0 6px 15px rgba(234, 88, 12, 0.18);
}

#workingHoursSection[data-service-selection="delivery"] .working-hours__toggle {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.45);
  color: #065f46;
  box-shadow: 0 6px 15px rgba(34, 197, 94, 0.2);
}

.working-hours__toggle:hover {
  transform: translateY(-1px);
}

.working-hours__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.working-hours__table td {
  padding: 4px 0;
  border-bottom: 1px solid var(--ui-border);
}

.working-hours__row td {
  vertical-align: middle;
}

.working-hours__row td:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.working-hours__row td:last-child {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

.schedule-grid {
  --schedule-chevron-size: 14px;
  --schedule-chevron-offset: 14px;
  --schedule-field-inline-padding: 14px;
  --schedule-control-gap: var(--ui-space-sm);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ui-space-sm);
  align-items: start;
}

.schedule-grid label {
  font-weight: 600;
  font-size: 0.93rem;
  margin: 0;
}

.schedule-grid > * {
  min-width: 0;
}

.schedule-grid__label-row,
.schedule-grid__controls,
.schedule-grid__full,
#pickupEtaHint,
#deliveryEtaHint,
#pickupNoTimesMsg,
#deliveryNoTimesMsg {
  grid-column: 1;
  min-width: 0;
}

.schedule-grid__label-row {
  padding-inline: var(--schedule-field-inline-padding);
}

.schedule-grid__label-row label {
  display: block;
}

.schedule-grid__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--schedule-control-gap);
  align-items: start;
}

.schedule-grid__controls > * {
  min-width: 0;
}

#pickupScheduleField,
#deliveryScheduleField {
  grid-template-columns: minmax(0, 1fr);
}

#pickupDate,
#deliveryDate {
  grid-column: auto;
  grid-row: auto;
}

#pickupTime,
#deliveryTime {
  grid-column: auto;
  grid-row: auto;
}

.schedule-grid__full {
  grid-column: 1;
}

.schedule-grid__working-hours-slot {
  grid-column: 1;
  width: 100%;
}

.schedule-grid__working-hours-slot:empty {
  display: none;
}

.schedule-grid__working-hours-slot > .working-hours-panel {
  width: 100%;
}

.schedule-grid__recipient {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  justify-self: stretch;
  align-self: stretch;
  margin-inline: 0;
  margin-top: 2px;
}

.schedule-grid input,
.schedule-grid select {
  width: 100%;
  padding: 14px var(--schedule-field-inline-padding);
  border-radius: 14px;
  border: 1.5px solid var(--ui-border);
  font-size: 0.97rem;
  margin: 0;
  min-height: 52px;
  background: #fafbfc;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.schedule-grid input:focus,
.schedule-grid select:focus {
  border-color: var(--ui-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.1);
  outline: none;
}

.schedule-grid select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: calc(
    var(--schedule-chevron-size) +
    var(--schedule-chevron-offset) +
    var(--schedule-field-inline-padding)
  );
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M5.25 3.5L8.75 7L5.25 10.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: var(--schedule-chevron-size) var(--schedule-chevron-size);
  background-position: right var(--schedule-chevron-offset) center;
  cursor: pointer;
}

.schedule-grid select::-ms-expand {
  display: none;
}

.schedule-grid select[data-no-slots="true"] {
  background-image: none;
  padding-right: var(--schedule-field-inline-padding);
  cursor: default;
}

.schedule-grid .text-danger {
  grid-column: 1;
  margin-top: 0;
  padding-inline: var(--schedule-field-inline-padding);
}

.schedule-hint {
  grid-column: 1 / -1;
  padding: 0;
  border-radius: 14px;
  border: 1.5px solid rgba(17, 17, 17, 0.08);
  background: rgba(15, 23, 42, 0.035);
  font-size: 0.93rem;
  color: var(--ui-text-muted);
  transition: opacity 0.2s ease;
  overflow: hidden;
}

.schedule-hint[hidden] {
  display: none !important;
}

.schedule-hint__surface {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  padding: 12px 16px;
  text-align: start;
  min-height: 48px;
}

.schedule-hint__surface--interactive {
  grid-template-columns: auto minmax(0, 1fr) auto;
  cursor: pointer;
}

.schedule-hint__surface--interactive:hover {
  background: rgba(15, 23, 42, 0.03);
}

.schedule-hint__surface--interactive:focus-visible {
  outline: 3px solid rgba(255, 122, 24, 0.22);
  outline-offset: -3px;
}

.schedule-hint__icon {
  font-size: 1rem;
  line-height: 1;
  color: var(--ui-accent);
  margin-top: 0.1rem;
}

.schedule-hint__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-hint__summary {
  display: block;
  color: var(--ui-text-strong);
  font-weight: 600;
  line-height: 1.3;
}

.schedule-hint__details {
  display: block;
  color: var(--ui-text-muted);
  line-height: 1.55;
}

.schedule-hint__chevron {
  width: var(--schedule-chevron-size);
  height: var(--schedule-chevron-size);
  background: transparent;
  color: var(--ui-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.schedule-hint__chevron::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
}

.schedule-hint--expanded .schedule-hint__surface {
  align-items: flex-start;
}

.schedule-hint--expanded .schedule-hint__chevron {
  align-self: flex-start;
  margin-top: 2px;
  color: var(--ui-primary-dark);
}

.schedule-hint--expanded .schedule-hint__chevron::before {
  transform: rotate(45deg) translateY(-1px);
}

.schedule-hint--warning {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--ui-danger);
}

.floating-toast-container {
  position: fixed;
  right: clamp(16px, 4vw, 36px);
  bottom: clamp(16px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}

.floating-toast-container--center {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(90vw, 420px);
  align-items: stretch;
  justify-content: center;
}

.floating-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface);
  color: var(--ui-text);
  box-shadow: var(--ui-shadow-card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.floating-toast--centered {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  padding: 18px 22px;
  border-radius: 28px;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.97),
      rgba(255, 248, 241, 0.92));
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  position: relative;
  z-index: 0;
}

.floating-toast--centered::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  pointer-events: none;
  opacity: 0.8;
}

.floating-toast--centered .floating-toast__icon {
  background: rgba(249, 115, 22, 0.15);
  color: #b45309;
  border-radius: 18px;
  box-shadow: inset 0 0 8px rgba(249, 115, 22, 0.25);
}

.floating-toast--centered .floating-toast__message {
  color: #78350f;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.next-day-warning-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10020;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.next-day-warning-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.next-day-warning-open {
  overflow: hidden;
}

.next-day-warning-modal__panel {
  width: min(460px, 100%);
  border-radius: 32px;
  background: #fffdf8;
  box-shadow: 0 35px 70px rgba(15, 23, 42, 0.35);
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.next-day-warning-modal__icon {
  width: 90px;
  height: 80px;
  margin: 0 auto 16px auto;
}

.next-day-warning-modal__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.next-day-warning-modal__title {
  font-size: 1.4rem;
  color: #7c2d12;
  margin-bottom: 12px;
}

.next-day-warning-modal__message {
  font-size: 1rem;
  color: #5c2c0c;
  line-height: 1.5;
  margin-bottom: 24px;
}

.next-day-warning-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.next-day-warning-modal__btn {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 150px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.next-day-warning-modal__btn:focus-visible {
  outline: 2px solid #fb923c;
  outline-offset: 2px;
}

.next-day-warning-modal__btn:hover {
  transform: translateY(-1px);
}

.next-day-warning-modal__btn--confirm {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.35);
}

.next-day-warning-modal__btn--quiet {
  background: rgba(15, 23, 42, 0.08);
  color: #78350f;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.online-ordering-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.2), rgba(15, 23, 42, 0.98));
  z-index: 10030;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.online-ordering-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.online-ordering-modal-open {
  overflow: hidden;
}

.online-ordering-modal__backdrop {
  position: absolute;
  inset: 0;
}

.online-ordering-modal__panel {
  position: relative;
  width: min(520px, 100%);
  border-radius: 18px;
  padding: 24px 24px 20px;
  background: radial-gradient(circle at top left, #1f2937, #020617);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
  z-index: 1;
}

.online-ordering-modal__header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.online-ordering-modal__icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 12px;
}

.online-ordering-modal__logo {
  margin-bottom: 24px;
}

.online-ordering-modal__logo-img {
  max-height: 96px;
  width: auto;
  display: block;
}

.online-ordering-modal__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f9fafb;
  margin: 0;
}

.online-ordering-modal__body {
  font-size: 0.95rem;
  line-height: 1.6;
}

.online-ordering-modal__message {
  margin: 0 0 16px;
  color: #e5e7eb;
}

.online-ordering-modal__contact-title {
  font-weight: 600;
  margin: 0 0 4px;
  color: #f9fafb;
}

.online-ordering-modal__contact-link {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 4px 0;
  color: #e5e7eb;
  font: inherit;
  cursor: pointer;
}

.online-ordering-modal__contact-link:hover,
.online-ordering-modal__contact-link:focus-visible {
  color: #fb2775;
  background: transparent;
  outline: none;
}

.online-ordering-modal__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.online-ordering-modal__btn {
  border-radius: 999px;
  border: none;
  padding: 10px 26px;
  background: linear-gradient(135deg, #fb2775, #ff5775);
  color: #f9fafb;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow:
    0 10px 25px rgba(248, 113, 113, 0.45),
    0 0 0 1px rgba(248, 113, 113, 0.55);
}

.online-ordering-modal__btn:hover {
  transform: translateY(-1px);
}

.floating-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-toast__icon {
  inline-size: 28px;
  block-size: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.08);
  color: var(--ui-text-strong);
}

.floating-toast__message {
  font-size: 0.95rem;
  line-height: 1.3;
}

.floating-toast--success .floating-toast__icon {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.floating-toast--warning .floating-toast__icon {
  background: rgba(251, 191, 36, 0.15);
  color: #92400e;
}

.floating-toast--error .floating-toast__icon {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#pickupContactFields {
  grid-template-columns: minmax(0, 1fr);
}

.customer-grid input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--ui-border);
  font-size: 0.97rem;
  margin: 0;
  min-height: 52px;
  background: #fafbfc;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.customer-grid input:focus {
  border-color: var(--ui-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.1);
  outline: none;
}

.customer-grid input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.cart-dynamic-info-slot {
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-sm);
}

.cart-dynamic-info-slot[hidden] {
  display: none !important;
}

.cart-dynamic-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 18px 20px;
  border: 1.5px solid var(--ui-border);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Enforce visual order: Zwischensumme → fees → discounts → MwSt → divider → Gesamtbetrag */
.cart-dynamic-summary-card > .cart-summary__row { order: 1; }
.cart-dynamic-summary-card > #cartProcessorFeeRow   { order: 2; }
.cart-dynamic-summary-card > #cartDeliverySurchargeRow { order: 3; }
.cart-dynamic-summary-card > #cartDiscountRow        { order: 4; }
.cart-dynamic-summary-card > #cartMultiItemDiscountRow { order: 5; }
.cart-dynamic-summary-card > #cartTaxRow              { order: 6; }
.cart-dynamic-summary-card > .cart-summary__divider   { order: 7; }
.cart-dynamic-summary-card > .cart-summary__total     { order: 8; }
.cart-dynamic-summary-card > .cart-summary__note      { order: 9; }

.cart-dynamic-summary-card[hidden] {
  display: none !important;
}

.cart-dynamic-summary-card .cart-summary__note {
  margin: 0;
}

.cart-dynamic-summary-card,
.cart-dynamic-summary-card .cart-summary__row {
  font-weight: 400;
}

.cart-dynamic-summary-card .cart-summary__total,
.cart-dynamic-summary-card .cart-summary__value,
.cart-dynamic-summary-card .cart-summary__label-stack,
.cart-dynamic-summary-card .cart-summary__row-note,
.cart-dynamic-summary-card #cartDeliverySurchargeLabel,
.cart-dynamic-summary-card #cartDeliverySurcharge,
.cart-dynamic-summary-card .cart-summary__row--muted,
.cart-dynamic-summary-card .cart-summary__row--discount,
.cart-dynamic-summary-card .cart-summary__row--processor > .cart-summary__value {
  font-weight: 400;
}

.cart-dynamic-summary-card .cart-summary__total span:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ui-text-strong);
}

.cart-dynamic-summary-card .cart-summary__total span:last-child {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1;
}

.cart-dynamic-summary-card .cart-summary__row--discount span:last-child {
  font-weight: 400;
}

/* ── Proceed / Review Button ─────────────────────────────── */
.cart-proceed-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.2rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  min-height: 56px;
  letter-spacing: 0.01em;
}

.cart-proceed-btn:active {
  transform: scale(0.98);
}

.cart-proceed-btn[data-service-style="pickup"] {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3);
}

.cart-proceed-btn[data-service-style="delivery"] {
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

[dir="ltr"] .cart-proceed-btn .fa-arrow-left {
  transform: scaleX(-1);
}

.distance-pricing-panel {
  --distance-pricing-inline-padding: 18px;
  --distance-pricing-compact-padding-y: 14px;
  --distance-pricing-summary-min-height: 54px;
  --distance-pricing-chevron-size: 22px;
  margin-top: 0;
  padding: 0;
  border-radius: 16px;
  border: 1.5px solid var(--ui-border);
  background: var(--ui-surface, #fff);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  display: block;
  transition: box-shadow 0.2s ease;
}

.distance-pricing-panel[open] {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.distance-pricing-panel.hidden {
  display: none;
}

.distance-pricing-panel__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  min-height: var(--distance-pricing-summary-min-height);
  padding: var(--distance-pricing-compact-padding-y) var(--distance-pricing-inline-padding);
  border-radius: var(--ui-radius-lg, 16px);
  transition: background 0.15s ease;
}

.distance-pricing-panel__summary:hover {
  background: rgba(15, 23, 42, 0.02);
}

.distance-pricing-panel__summary::-webkit-details-marker {
  display: none;
}

.distance-pricing-panel__summary::marker {
  content: "";
}

.distance-pricing-panel__summary-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.distance-pricing-panel__summary-title {
  font-weight: 600;
  color: var(--ui-text-strong);
  font-size: clamp(0.92rem, 2vw, 1rem);
  line-height: 1.3;
}

.distance-pricing-panel .distance-pricing-panel__status {
  display: none;
}


.distance-pricing-panel__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0;
  padding: 14px var(--distance-pricing-inline-padding) var(--distance-pricing-inline-padding);
  border-top: 1px solid var(--ui-border);
}

.distance-pricing-consent {
  padding: 12px 14px;
  border-radius: var(--ui-radius-md, 12px);
  border: 1px solid var(--ui-border);
  background: rgba(248, 250, 252, 0.8);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.distance-pricing-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ui-text);
  cursor: pointer;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: 10px;
}

.distance-pricing-consent__label input[type="checkbox"] {
  margin-top: 2px;
  flex: 0 0 auto;
}

.distance-pricing-consent__hint {
  font-size: 0.82rem;
  color: var(--ui-text-muted);
  line-height: 1.3;
}

.distance-pricing-consent__hint a {
  color: var(--ui-primary, #2563eb);
  text-decoration: none;
  font-weight: 700;
}

.distance-pricing-consent__hint a:hover {
  text-decoration: underline;
}

.distance-pricing-panel__status {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ui-text);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.distance-pricing-panel__chevron {
  width: var(--distance-pricing-chevron-size);
  height: var(--distance-pricing-chevron-size);
  margin-inline: 0;
  align-self: center;
  color: var(--ui-text-muted);
  transition: color 0.2s ease;
}

.distance-pricing-panel[open] .distance-pricing-panel__chevron {
  color: var(--ui-text-strong);
}

.distance-pricing-panel__chevron::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
}

.distance-pricing-panel[open] .distance-pricing-panel__chevron::before {
  transform: rotate(45deg);
}

.distance-pricing-panel__meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--ui-text);
}

.distance-pricing-panel__minimum {
  font-size: 0.92rem;
  color: var(--ui-text);
  padding: 10px 12px;
  border-radius: var(--ui-radius-sm);
  border: 1px solid rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.08);
}

.distance-pricing-panel__minimum[hidden] {
  display: none;
}

.distance-pricing-panel__minimum--ok {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
  color: #065f46;
}

.distance-pricing-panel__minimum--warn {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.08);
  color: #991b1b;
}

.cart-discount-card {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--ui-radius-md);
  border: 1px solid rgba(245, 158, 11, 0.28);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(255, 247, 237, 0.97), rgba(255, 255, 255, 0.99));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: relative;
}

.cart-discount-card[hidden] {
  display: none;
}

.cart-discount-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #f59e0b, #f97316);
}

.cart-discount-card[data-state="active"] {
  border-color: rgba(34, 197, 94, 0.28);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.99));
}

.cart-discount-card[data-state="active"]::before {
  background: linear-gradient(180deg, #22c55e, #15803d);
}

.cart-discount-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  padding-left: 0.05rem;
}

.cart-discount-card__headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  min-width: 0;
}

.cart-discount-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.12);
  color: #c05621;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-discount-card[data-state="active"] .cart-discount-card__status {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.cart-discount-card__title {
  margin: 0;
  color: var(--ui-text-strong);
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: start;
}

.cart-discount-card__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 17, 17, 0.08);
  color: var(--ui-text-strong);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.cart-discount-card[data-state="active"] .cart-discount-card__value {
  border-color: rgba(34, 197, 94, 0.18);
  color: #166534;
}

.cart-discount-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.cart-discount-card__fact {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17, 17, 17, 0.06);
  color: var(--ui-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.cart-discount-card__fact[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .cart-discount-card {
    gap: 0.48rem;
    padding: 0.72rem 0.8rem;
  }

  .cart-discount-card__header {
    align-items: flex-start;
  }

  .cart-discount-card__value {
    min-height: 32px;
    padding: 0.38rem 0.65rem;
    white-space: normal;
  }

  .cart-discount-card__title {
    font-size: 0.92rem;
  }
}

.cart-page,
.order-history-page {
  --delivery-map-height: clamp(200px, 26vw, 300px);
  --delivery-marker-size: 30px;
  --delivery-origin-size: 48px;
  --delivery-transport-size: 40px;
  --delivery-marker-icon-font: 11px;
  --delivery-marker-label-font: 0.78rem;
  --delivery-marker-label-max: 190px;
  --delivery-chip-font: 0.78rem;
  --delivery-chip-padding-y: 6px;
  --delivery-chip-padding-x: 9px;
  --delivery-chip-max: 180px;
}

@media (max-width: 640px) {
  .cart-page,
  .order-history-page {
    --delivery-map-height: clamp(190px, 42vw, 260px);
    --delivery-marker-size: 28px;
    --delivery-origin-size: 44px;
    --delivery-transport-size: 36px;
    --delivery-marker-icon-font: 10px;
    --delivery-marker-label-font: 0.74rem;
    --delivery-marker-label-max: 170px;
    --delivery-chip-font: 0.74rem;
    --delivery-chip-padding-y: 5px;
    --delivery-chip-padding-x: 8px;
    --delivery-chip-max: 170px;
  }
}

@media (max-width: 480px) {
  .cart-page,
  .order-history-page {
    --delivery-map-height: clamp(180px, 60vw, 240px);
    --delivery-marker-size: 26px;
    --delivery-origin-size: 40px;
    --delivery-transport-size: 32px;
    --delivery-marker-icon-font: 9px;
    --delivery-marker-label-font: 0.7rem;
    --delivery-marker-label-max: 150px;
    --delivery-chip-font: 0.7rem;
    --delivery-chip-padding-y: 4px;
    --delivery-chip-padding-x: 7px;
    --delivery-chip-max: 150px;
  }

  .distance-pricing-panel__tracking-head {
    align-items: flex-start;
  }

  .distance-pricing-panel__tracking-status {
    flex-basis: 100%;
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 360px) {
  .cart-page,
  .order-history-page {
    --delivery-map-height: clamp(170px, 70vw, 220px);
    --delivery-marker-size: 24px;
    --delivery-origin-size: 36px;
    --delivery-transport-size: 28px;
    --delivery-marker-icon-font: 8px;
    --delivery-marker-label-font: 0.68rem;
    --delivery-marker-label-max: 135px;
    --delivery-chip-font: 0.66rem;
    --delivery-chip-padding-y: 4px;
    --delivery-chip-padding-x: 6px;
    --delivery-chip-max: 135px;
  }
}

.distance-pricing-panel__tracking {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
}

.distance-pricing-panel__tracking[hidden] {
  display: none;
}

.distance-pricing-panel__tracking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.distance-pricing-panel__tracking-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ui-text);
}

.distance-pricing-panel__tracking-status {
  font-size: 0.82rem;
  color: var(--ui-text-muted);
  text-align: right;
  flex: 1 1 240px;
  min-width: 180px;
}

.distance-pricing-panel__map {
  width: 100%;
  height: var(--delivery-map-height, 220px);
  border-radius: var(--ui-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.distance-pricing-panel__tracking-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.distance-pricing-panel__tracking-legend {
  font-size: 0.8rem;
  color: var(--ui-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 200px;
}

.distance-pricing-panel__tracking-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ui-primary, #2563eb);
  text-decoration: none;
  flex: 0 0 auto;
}

.distance-pricing-panel__tracking-link:hover {
  text-decoration: underline;
}

.distance-pricing-meta__badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.55rem;
}

.distance-pricing-badge {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 10px 12px;
  border-radius: var(--ui-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.distance-pricing-badge__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.distance-pricing-badge__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.distance-pricing-badge__label {
  font-size: 0.78rem;
  color: var(--ui-text-muted);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.distance-pricing-badge__value {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--ui-text);
}

.distance-pricing-meta__placeholder {
  font-size: 0.88rem;
  color: var(--ui-text-muted);
}

.distance-pricing-meta__footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--ui-text-muted);
}

.distance-pricing-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.delivery-map-icon {
  background: transparent;
  border: none;
}

.delivery-map-marker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.delivery-map-marker {
  width: var(--delivery-marker-size, 32px);
  height: var(--delivery-marker-size, 32px);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
  color: #ffffff;
}

.delivery-map-marker i {
  font-size: var(--delivery-marker-icon-font, 12px);
  line-height: 1;
}

.delivery-map-marker__logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
}

.delivery-map-marker__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.delivery-map-marker--image-only {
  background: transparent;
  border: none;
  box-shadow: none;
  width: auto;
  height: auto;
  padding: 0;
}

.delivery-map-marker--origin-logo,
.delivery-map-marker--origin.delivery-map-marker--with-logo {
  background: #fff;
  border: 2px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
  width: var(--delivery-origin-size, 52px);
  height: var(--delivery-origin-size, 52px);
  padding: 2px;
}

.delivery-map-marker--origin.delivery-map-marker--with-logo {
  background: #fff;
  border: 2px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
  width: var(--delivery-origin-size, 52px);
  height: var(--delivery-origin-size, 52px);
  padding: 2px;
}

.delivery-map-marker--with-logo .delivery-map-marker__logo {
  width: calc(var(--delivery-origin-size, 52px) - 4px);
  height: calc(var(--delivery-origin-size, 52px) - 4px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.delivery-map-marker__img {
  width: var(--delivery-transport-size, 56px);
  height: var(--delivery-transport-size, 56px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.28));
}

.delivery-map-marker--progress.delivery-map-marker--image-only {
  background: transparent;
  border: none;
  box-shadow: none;
  width: auto;
  height: auto;
  padding: 0;
}

.delivery-map-marker__label {
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  color: var(--ui-text);
  font-size: var(--delivery-marker-label-font, 0.82rem);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.35);
  white-space: nowrap;
  max-width: min(var(--delivery-marker-label-max, 190px), 70vw);
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.delivery-map-marker--origin {
  background: rgba(34, 197, 94, 0.95);
}

.delivery-map-marker--destination {
  background: rgba(239, 68, 68, 0.95);
}

.delivery-map-marker--progress {
  background: rgba(37, 99, 235, 0.95);
}

.delivery-destination-chip {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.delivery-destination-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.98);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

.delivery-destination-chip__text {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  display: block;
  max-width: min(var(--delivery-chip-max, 180px), 70vw);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #991b1b;
  font-size: var(--delivery-chip-font, 0.74rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  unicode-bidi: plaintext;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  text-overflow: ellipsis;
}

.distance-pricing-panel[data-state="error"] {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(248, 113, 113, 0.1);
}

.distance-pricing-panel[data-state="success"] {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}

.cart-summary {
  border-top: 1px solid var(--ui-border);
  padding-top: var(--ui-space-sm);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  font-weight: 600;
}

.cart-summary__row,
.cart-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.cart-summary__total {
  align-items: flex-start;
}

.cart-summary__row {
  font-size: 0.95rem;
  color: var(--ui-text);
  flex-wrap: wrap;
  align-items: flex-start;
  row-gap: 0.2rem;
}

.cart-summary__value {
  margin-left: auto;
}

.cart-summary__label-stack {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.cart-summary__row-note {
  font-size: 0.76rem;
  color: var(--ui-text-muted);
  font-weight: 500;
}

.cart-summary__row--muted {
  font-size: 0.85rem;
  color: var(--ui-text-muted);
  font-weight: 500;
}

.cart-summary__row--discount {
  color: #0f9d58;
  font-weight: 700;
}

.cart-summary__row--discount span:last-child {
  color: #0f9d58;
}

.cart-summary__row--processor > .cart-summary__value {
  color: var(--ui-text);
  font-weight: 700;
}

.cart-summary__divider {
  width: 100%;
  height: 1px;
  background: var(--ui-border);
}

.cart-summary__total span:last-child {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--ui-primary-dark);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  line-height: 1.05;
}

.order-history-hub {
  margin-top: var(--ui-space-sm);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  padding: var(--ui-space-md);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.06), #fff);
  box-shadow: var(--ui-shadow-card);
  display: flex;
  gap: var(--ui-space-md);
  align-items: center;
  flex-wrap: wrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.order-history-hub__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ui-text-muted);
  margin: 0 0 4px;
  font-size: 0.85rem;
}

.order-history-hub__title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ui-text-strong);
}

.order-history-hub__desc {
  margin: 4px 0 8px;
  color: var(--ui-text-muted);
  max-width: 480px;
}

.order-history-hub__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--ui-space-xs);
}

.order-history-hub__stat {
  background: var(--ui-surface-muted);
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
  padding: 8px 10px;
}

.order-history-hub__stat-label {
  display: block;
  color: var(--ui-text-muted);
  font-size: 0.9rem;
}

.order-history-hub__stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--ui-text-strong);
}

.order-history-hub__stat small {
  color: var(--ui-text-muted);
}

.order-history-hub:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, 0.12);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
}

.order-history-hub:focus-visible {
  outline: 3px solid rgba(67, 56, 202, 0.25);
  outline-offset: 4px;
}

.order-history-dropdown {
  margin-top: var(--ui-space-sm);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: #ffffff;
  box-shadow: var(--ui-shadow-card);
  overflow: hidden;
}

.order-history-dropdown[open] {
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.order-history-dropdown__toggle {
  width: 100%;
  padding: var(--ui-space-sm) var(--ui-space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ui-text-strong);
  list-style: none;
  border: none;
  background: linear-gradient(135deg, #fff, #f8f8fb);
}

.order-history-dropdown__toggle::-webkit-details-marker {
  display: none;
}

.order-history-dropdown__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.12);
  color: var(--ui-primary-dark);
  font-weight: 900;
  transition: transform 0.2s ease;
}

.order-history-dropdown[open] .order-history-dropdown__chevron {
  transform: rotate(90deg);
}

.order-history-dropdown .order-history-hub {
  margin-top: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-sm);
}

.cart-actions--hidden {
  display: none !important;
}

#proceedToReviewBtn {
  display: none !important;
}

.cart-page #proceedToReviewBtn,
.search-page #proceedToReviewBtn {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(16px, 4vw, 28px);
  width: min(720px, calc(100% - 32px));
  z-index: 40;
}

.cart-actions .button-group {
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-xs);
}

.button--secondary {
  border: 1px solid var(--ui-border);
  background: linear-gradient(135deg, #f9fafb, #eef1f7);
  color: #1f2937;
  border-radius: var(--ui-radius-pill);
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button--secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
}


.button-group {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--ui-space-sm);
  margin-top: var(--ui-space-md);
}

.button {
  border: none;
  border-radius: var(--ui-radius-pill);
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  font-family: var(--ui-font-body);
}

.button--primary {
  background: linear-gradient(135deg, var(--ui-success), #16a34a);
  color: #fff;
  box-shadow: 0 20px 34px rgba(22, 163, 74, 0.3);
}

.button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 40px rgba(22, 163, 74, 0.35);
}

.button--primary i {
  font-size: 1.1rem;
}

.text-danger {
  color: var(--ui-danger);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
}

.cart-table-wrapper {
  max-height: 260px;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border);
}

.cart-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  padding: 12px clamp(10px, 2vw, 18px);
  border-bottom: 1px solid var(--ui-border);
  text-align: left;
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
}

.cart-table th {
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  letter-spacing: 0.08em;
  color: var(--ui-text-muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  padding: clamp(18px, 4vw, 36px);
  padding-top: calc(clamp(18px, 4vw, 36px) + var(--ui-safe-top));
  padding-right: calc(clamp(18px, 4vw, 36px) + var(--ui-safe-right));
  padding-bottom: calc(clamp(18px, 4vw, 36px) + var(--ui-safe-bottom));
  padding-left: calc(clamp(18px, 4vw, 36px) + var(--ui-safe-left));
  z-index: 1200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal.show {
  display: flex;
}

.modal,
.modal-content,
.payment-modal,
.order-pass-overlay,
.order-pass-overlay__dialog,
.online-ordering-modal,
.online-ordering-modal__panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.payment-modal::-webkit-scrollbar,
.order-pass-overlay::-webkit-scrollbar,
.order-pass-overlay__dialog::-webkit-scrollbar,
.online-ordering-modal::-webkit-scrollbar,
.online-ordering-modal__panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.modal-content {
  background: var(--ui-surface);
  border-radius: var(--ui-radius-xl);
  padding: clamp(22px, 3vw, 36px);
  width: min(760px, 100%);
  max-width: min(760px, 100%);
  max-height: calc(90dvh - var(--ui-safe-top) - var(--ui-safe-bottom) - var(--ui-cookie-banner-height, 0px));
  overflow-y: auto;
  box-shadow: var(--ui-shadow-soft);
  position: relative;
  font-family: var(--ui-font-body);
}

#changesModal #changesConfirmBtn {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: var(--ui-radius-pill);
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-dark));
  color: #fff;
  box-shadow: 0 18px 40px rgba(255, 122, 24, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#changesModal #changesConfirmBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(255, 122, 24, 0.32);
}

#changesModal #changesConfirmBtn:focus-visible {
  outline: 3px solid rgba(255, 122, 24, 0.28);
  outline-offset: 3px;
}

#floatingCartOverlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: calc(16px + var(--ui-safe-top));
  padding-right: calc(16px + var(--ui-safe-right));
  padding-left: calc(16px + var(--ui-safe-left));
  background: rgba(15, 23, 42, 0.52);
  z-index: 1300;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(16px + var(--ui-cookie-banner-height, 0px) + var(--ui-safe-bottom));
}

#floatingCartOverlay .floating-cart-panel {
  width: min(560px, 100%);
  max-height: calc(
    90dvh - var(--ui-cookie-banner-height, 0px) - var(--ui-safe-top) - var(--ui-safe-bottom)
  );
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.2);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow-y: auto;
}

#floatingCartOverlay .floating-cart-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--ui-border, rgba(17, 17, 17, 0.1));
  background: rgba(255, 255, 255, 0.92);
  color: var(--ui-text, #111827);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

#floatingCartOverlay .floating-cart-close:hover {
  background: #f3f4f6;
}

#floatingCartOverlay .floating-cart-close:focus-visible {
  outline: 3px solid rgba(255, 122, 24, 0.3);
  outline-offset: 2px;
}

#floatingCartOverlay .floating-cart-panel h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

#floatingCartOverlay .floating-cart-panel h3 svg {
  width: 22px;
  height: 22px;
}

#floatingCartOverlay .floating-cart-panel h3 i {
  font-size: 1.1rem;
  color: var(--ui-success, #22c55e);
}

#floatingCartOverlay .floating-cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  max-height: min(50vh, 360px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#floatingCartOverlay .floating-cart-panel input,
#floatingCartOverlay .floating-cart-panel select,
#floatingCartOverlay .floating-cart-panel textarea {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--ui-border, rgba(17, 17, 17, 0.12));
  font-family: inherit;
}

#floatingCartOverlay .floating-cart-panel textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

#floatingCartOverlay .floating-cart-panel label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ui-text-strong, #111827);
}

#floatingCartOverlay .floating-cart-panel .delivery-container,
#floatingCartOverlay .floating-cart-panel #orderDetails,
#floatingCartOverlay .floating-cart-panel #pickupScheduleField,
#floatingCartOverlay .floating-cart-panel #pickupContactFields,
#floatingCartOverlay .floating-cart-panel #deliveryScheduleField,
#floatingCartOverlay .floating-cart-panel #deliveryFields {
  display: grid;
  gap: 10px;
}

#floatingCartOverlay .floating-cart-panel #orderDetails {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--ui-border, rgba(17, 17, 17, 0.1));
}

#floatingCartOverlay .floating-cart-panel button:not(.floating-cart-close) {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 14px;
}


#floatingCartOverlay #proceedToReviewBtn {
  background: linear-gradient(135deg, var(--ui-primary, #ff7a18), var(--ui-primary-dark, #d74d00));
  color: #ffffff;
  border: none;
  box-shadow: 0 18px 36px rgba(255, 122, 24, 0.28);
}

#floatingCartOverlay #whatsappBtn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  border: none;
  box-shadow: 0 16px 32px rgba(34, 197, 94, 0.28);
}

#floatingCartOverlay #emailContainer button {
  background: #374151;
  color: #ffffff;
  border: none;
}

.payment-modal {
  background: linear-gradient(135deg, #fdfdfd, #f3f5ff);
  border-radius: clamp(24px, 3vw, 32px);
  padding: clamp(28px, 4vw, 44px);
  width: min(860px, 100%);
  max-width: min(860px, 100%);
  border: 1px solid rgba(67, 56, 202, 0.08);
}

.payment-modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-md);
  padding-top: clamp(36px, 5vw, 58px);
}

.payment-modal__close {
  position: absolute;
  top: clamp(12px, 2vw, 20px);
  right: clamp(68px, 10vw, 96px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--ui-border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ui-text-muted);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease, color 0.2s ease;
  z-index: 15;
}

.payment-modal__close:hover {
  color: var(--ui-primary);
  transform: translateY(-1px);
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.4rem;
  color: var(--ui-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-content .close-modal:not(.payment-modal__close) {
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  touch-action: manipulation;
}

.close-modal:hover {
  color: var(--ui-text-strong);
}

.modal-header-buttons {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.modal-header-buttons button {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--ui-text-muted);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.modal-header-buttons button:hover {
  background: var(--ui-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 122, 24, 0.3);
}

.modal-header-buttons button:active {
  transform: translateY(0);
}

.modal-header-buttons button i {
  pointer-events: none;
}

.payment-modal__actions {
  top: clamp(16px, 2.2vw, 28px);
  left: clamp(28px, 4vw, 44px);
  right: auto;
  justify-content: flex-start;
}

.payment-modal__actions button {
  width: auto;
  height: auto;
  border-radius: var(--ui-radius-pill);
  padding: 0.4rem 1rem;
  gap: 0.4rem;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), #f3f4ff);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--ui-text-strong);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
}

.payment-modal__actions button i {
  color: var(--ui-primary);
  font-size: 0.95rem;
}

.payment-modal__actions button span {
  display: inline-block;
}

:is(html[lang="ar"], html.rt-lang-ar) #paymentInfoModal .payment-modal__actions,
body.cairo-font.cart-page #paymentInfoModal .payment-modal__actions {
  right: clamp(28px, 4vw, 44px);
  left: auto;
}

:is(html[lang="ar"], html.rt-lang-ar) #paymentInfoModal .payment-modal__close,
body.cairo-font.cart-page #paymentInfoModal .payment-modal__close {
  left: clamp(28px, 4vw, 44px);
  top: clamp(16px, 2.2vw, 28px);
  right: auto;
}

#paymentInfoModal .modal-content {
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 40%, #f8f9fc 100%);
}

#paymentInfoModal .modal-content h3 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ui-success);
  margin-bottom: 1.1rem;
}

#paymentInfoModal .modal-content h3 svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.payment-order-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(10px, 1.4vw, 16px);
  align-items: center;
  background: linear-gradient(120deg, #fef3c7, #fdf4ff);
  border-radius: var(--ui-radius-lg);
  padding: clamp(14px, 2vw, 20px) clamp(18px, 2.8vw, 28px);
  border: 1px solid rgba(253, 186, 116, 0.5);
  box-shadow: 0 12px 30px rgba(253, 186, 116, 0.35);
}

.payment-order-card__details {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.8vw, 8px);
  min-width: 0;
  align-items: flex-start;
}

.payment-order-card__details>p {
  margin: 0;
}

.payment-order-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 12px 30px rgba(15, 23, 42, 0.08);
}

.payment-order-card__icon svg {
  width: 38px;
  height: 38px;
  fill: var(--ui-primary);
}

.payment-order-card__label {
  text-transform: uppercase;
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
  letter-spacing: 0.08em;
  margin-bottom: 0;
  color: var(--ui-text-muted);
  font-weight: 700;
}

.payment-order-card__value {
  font-size: clamp(1.62rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--ui-text-strong);
  margin-bottom: 0;
}

.payment-order-card__hint {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.45;
  color: var(--ui-text-muted);
}

.payment-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--ui-space-sm);
}

.payment-info-card {
  background: #fff;
  border-radius: var(--ui-radius-lg);
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.payment-info-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  border-color: rgba(148, 163, 184, 0.3);
}

.payment-info-card--collapsible {
  padding: 1rem 1.15rem;
}

.payment-info-card__toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.payment-info-card__toggle:focus-visible {
  outline: 2px solid rgba(255, 122, 24, 0.34);
  outline-offset: 6px;
  border-radius: 18px;
}

.payment-info-card__heading {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.payment-info-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--ui-text-muted);
  margin-bottom: 0;
}

.payment-info-card__title i {
  color: var(--ui-primary);
}

.payment-info-card__summary {
  display: -webkit-box;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ui-text-strong);
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.payment-info-card__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-top: -0.1rem;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.08);
  color: var(--ui-primary);
  font-size: 0.75rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
}

.payment-info-card[data-expanded="true"] .payment-info-card__chevron {
  transform: rotate(180deg);
  background: rgba(255, 122, 24, 0.15);
}

.payment-info-card[data-expanded="true"] .payment-info-card__summary {
  display: none;
}

.payment-info-card__content-shell {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows 0.22s ease, opacity 0.22s ease, margin-top 0.22s ease;
}

.payment-info-card[data-expanded="true"] .payment-info-card__content-shell {
  grid-template-rows: 1fr;
  margin-top: 0.7rem;
  opacity: 1;
}

.payment-info-card__content {
  min-height: 0;
  overflow: hidden;
}

.payment-info-card__content--details {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.payment-info-card__value {
  font-size: 1rem;
  color: var(--ui-text-strong);
}

.payment-info-card__muted {
  color: var(--ui-text-muted);
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.payment-info-card__row {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.4rem;
  font-size: 0.95rem;
  align-items: center;
}

.payment-info-card__label {
  font-weight: 600;
  color: var(--ui-text-muted);
}

.payment-info-card__value strong {
  font-weight: 600;
  color: var(--ui-text-muted);
  margin-right: 0.25rem;
}

.payment-note-card {
  padding: 1rem 1.25rem;
  border-radius: var(--ui-radius-lg);
  border: 1px dashed rgba(15, 23, 42, 0.2);
  background: rgba(249, 250, 251, 0.8);
  color: #475569;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.payment-note-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.payment-note-card__title {
  font-weight: 700;
  color: #0f172a;
}

.payment-note-card__chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.payment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 600;
}

.payment-chip img {
  width: 46px;
  height: 14px;
  object-fit: contain;
}

.payment-chip i {
  font-size: 0.85rem;
}

.payment-note-card__text {
  margin: 0;
  color: #475569;
  line-height: 1.4;
}

.payment-summary-card {
  background: #fff;
  border-radius: var(--ui-radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  padding: clamp(16px, 2.4vw, 26px);
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-sm);
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  isolation: isolate;
}

.payment-summary-list {
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-sm);

  max-height: min(
    45vh,
    calc(50dvh - var(--ui-safe-top) - var(--ui-safe-bottom) - var(--ui-cookie-banner-height, 0px))
  );
  padding: clamp(10px, 1.8vw, 14px) clamp(8px, 1.2vw, 12px) clamp(14px, 2vw, 18px);
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
}

/* Enforce visual order: items → fees/surcharges → discounts → MwSt */
.payment-summary-list > .payment-summary-row             { order: 1; }
.payment-summary-list > .payment-summary-row--surcharge   { order: 3; }
.payment-summary-list > .payment-summary-row--discount    { order: 5; }
.payment-summary-list > .payment-summary-row--meta        { order: 7; }

.payment-summary-row {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--ui-radius-lg);
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.6), #ffffff);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.payment-summary-row:not(.payment-summary-row--surcharge):hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.payment-summary-row--discount {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.9), #ffffff);
}

.payment-summary-row--surcharge {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.7), rgba(241, 245, 249, 0.5));
  border-style: dashed;
  padding: 0.8rem 1.1rem;
}

.payment-summary-row--surcharge .payment-summary-row__title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ui-text-muted);
}

.payment-summary-row--surcharge .payment-summary-row__note {
  font-size: 0.82rem;
  color: rgba(100, 116, 139, 0.8);
}

.payment-summary-row--surcharge .payment-summary-row__prices {
  color: var(--ui-text-muted);
}

.payment-summary-row--surcharge .payment-summary-row__prices span:last-child {
  color: var(--ui-text-strong);
  font-weight: 600;
}

.payment-summary-row__primary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem;
}

.payment-summary-row__qty {
  background: linear-gradient(135deg, var(--ui-primary), #f59e0b);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  box-shadow: 0 4px 12px rgba(255, 122, 24, 0.3);
  letter-spacing: -0.02em;
}

.payment-summary-row__title {
  font-weight: 700;
  color: var(--ui-text-strong);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
}

.payment-summary-row__prices {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.92rem;
  color: var(--ui-text-muted);
}

.payment-summary-row__prices span:last-child {
  color: var(--ui-text-strong);
  font-weight: 600;
}

.payment-summary-row__price {
  font-size: 0.8rem;
}

.payment-summary-row__price--old {
  text-decoration: line-through;
  color: var(--ui-text-muted);
  margin-right: 8px;
  display: inline-block;
}

.payment-summary-row__price--new {
  color: var(--ui-text-strong);
  font-weight: 700;
}

.payment-summary-row__subtotal--old {
  text-decoration: line-through;
  color: var(--ui-text-muted);
  margin-right: 8px;
}

.payment-summary-row__subtotal--discounted {
  color: var(--ui-text-strong);
  font-weight: 700;
}

.payment-summary-row--discounted-item {
  border-color: rgba(34, 197, 94, 0.25);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(52, 211, 153, 0.08));
}

.payment-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid rgba(148, 163, 184, 0.25);
  padding-top: clamp(12px, 2vw, 18px);
  margin-top: 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ui-text-strong);
}

.payment-summary-total span:last-child {
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--ui-primary-dark);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  line-height: 1.05;
}

.payment-summary-row .cart-item-note,
.payment-summary-row__note {
  font-size: 0.88rem;
  color: var(--ui-text-muted);
  flex-basis: 100%;
}

@media (min-width: 640px) {
  .payment-summary-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    column-gap: clamp(14px, 3vw, 24px);
  }

  .payment-summary-row__prices {
    align-self: end;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
  }
}

@media (max-width: 640px) {
  .modal {
    align-items: flex-start;
    justify-content: center;
    padding: clamp(8px, 4vw, 16px);
    padding-top: calc(clamp(8px, 4vw, 16px) + var(--ui-safe-top));
    padding-right: calc(clamp(8px, 4vw, 16px) + var(--ui-safe-right));
    padding-bottom: calc(clamp(8px, 4vw, 16px) + var(--ui-safe-bottom));
    padding-left: calc(clamp(8px, 4vw, 16px) + var(--ui-safe-left));
  }

  .modal-content {
    width: min(560px, 100%);
    max-height: none;
    min-height: auto;
    overflow: visible;
  }

  .payment-modal {
    width: 100%;
    min-height: auto;
    padding: clamp(22px, 7vw, 32px);
    border-radius: clamp(18px, 4vw, 26px);
  }

  .payment-modal__close {
    right: clamp(14px, 4vw, 20px);
    top: clamp(8px, 3vw, 16px);
  }

  .modal-header-buttons {
    left: clamp(14px, 4vw, 20px);
    right: auto;
    top: clamp(8px, 3vw, 16px);
  }

  .payment-modal__actions {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--ui-space-xs);
    margin-bottom: var(--ui-space-sm);
    z-index: auto;
  }

  .payment-modal__actions button {
    flex: 1 1 clamp(140px, 48%, 240px);
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  :is(html[lang="ar"], html.rt-lang-ar) #paymentInfoModal .payment-modal__close,
  body.cairo-font.cart-page #paymentInfoModal .payment-modal__close {
    left: clamp(14px, 4vw, 20px);
    right: auto;
  }

  .payment-modal__form {
    padding-top: clamp(18px, 6vw, 28px);
  }

  .payment-order-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: clamp(10px, 3vw, 16px);
    padding: clamp(18px, 6vw, 24px) clamp(16px, 5vw, 22px);
  }

  .payment-order-card__icon {
    width: clamp(62px, 18vw, 78px);
    height: clamp(62px, 18vw, 78px);
  }

  .payment-order-card__details {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .payment-order-card__hint {
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
  }

  .payment-info-card__toggle {
    gap: 0.65rem;
  }

  .payment-info-card__chevron {
    width: 1.85rem;
    height: 1.85rem;
  }

  .payment-summary-card {
    padding: clamp(18px, 6vw, 26px);
  }

  .payment-summary-list {
    max-height: none;
    overflow: visible;
  }

  .payment-summary-row__primary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .payment-summary-row__qty {
    width: auto;
    text-align: center;
  }

  .payment-summary-row__title {
    font-size: 1rem;
  }

  .payment-modal__cta {
    width: 100%;
    padding-top: var(--ui-space-xs);
  }

  .payment-modal__cta .button--primary {
    width: 100%;
    max-width: none;
    border-radius: clamp(14px, 4vw, 20px);
    padding: 15px 20px;
  }

  .payment-summary-row__qty {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.8rem;
  }
}

.payment-modal__cta {
  position: sticky;
  bottom: 0;
  margin-top: var(--ui-space-md);
  padding-top: var(--ui-space-sm);
  padding-bottom: 4px;
  display: flex;
  justify-content: center;
  z-index: 5;
  background: linear-gradient(to top, rgba(250, 251, 253, 1) 60%, rgba(250, 251, 253, 0));
}

.payment-modal__cta .button--primary {
  width: 85%;
  max-width: 440px;
  display: inline-flex;
  justify-content: center;
  gap: 0.55rem;
  align-items: center;
  padding: 16px 24px;
  font-size: 1.02rem;
  border-radius: var(--ui-radius-pill);
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35), 0 2px 8px rgba(34, 197, 94, 0.2);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.payment-modal__cta .button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(34, 197, 94, 0.4), 0 4px 12px rgba(34, 197, 94, 0.25);
}

.payment-modal__cta .button--primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.payment-modal__cta-label {
  font-weight: 700;
}

.payment-modal__cta-count {
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: var(--ui-radius-pill);
}

.payment-modal__cta .button--primary.payment-cta--paypal {
  background: linear-gradient(135deg, #0070ba, #003087);
  box-shadow: 0 8px 28px rgba(0, 112, 186, 0.35), 0 2px 8px rgba(0, 48, 135, 0.2);
}

.payment-modal__cta .button--primary.payment-cta--paypal:hover {
  box-shadow: 0 12px 36px rgba(0, 112, 186, 0.4), 0 4px 12px rgba(0, 48, 135, 0.25);
}

.payment-modal__cta .button--primary.payment-cta--paypal:active {
  box-shadow: 0 4px 16px rgba(0, 112, 186, 0.3);
}

.order-id-container {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 50%, #fdf2f8 100%);
  border: 1.5px solid rgba(253, 186, 116, 0.4);
  border-radius: var(--ui-radius-lg);
  padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 26px);
  box-shadow: 0 8px 24px rgba(253, 186, 116, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  margin-bottom: var(--ui-space-md);
  position: relative;
  overflow: hidden;
}

.order-id-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ui-primary), #f59e0b, var(--ui-primary));
  border-radius: var(--ui-radius-lg) var(--ui-radius-lg) 0 0;
}

.order-id-icon {
  width: 52px;
  height: 52px;
  fill: var(--ui-primary);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(255, 122, 24, 0.12);
  flex-shrink: 0;
}

.order-id-texts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.order-id-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ui-primary-dark);
  font-weight: 700;
}

.order-id-value {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: var(--ui-text-strong);
  letter-spacing: 0.02em;
}

.order-id-hint {
  font-size: 0.82rem;
  color: var(--ui-text-muted);
  line-height: 1.4;
}

.customer-info-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--ui-space-sm);
  padding: 1rem;
  background: var(--ui-surface-muted);
  border-radius: var(--ui-radius-md);
  margin-bottom: var(--ui-space-sm);
}

.customer-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.customer-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ui-text-muted);
}

.customer-value {
  font-size: 0.95rem;
  color: var(--ui-text-strong);
}

#customerAddressText:not(:empty)::before {
  content: "\f0d1";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 0.5rem;
  color: var(--ui-success);
}

.payment-options-container {
  border: none;
  padding: 0;
  margin: 0;
}

.payment-options-container legend {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ui-text-muted);
  margin-bottom: 0.65rem;
  padding: 0;
}

.payment-methods-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-method-option {
  flex: 1 1 0;
  min-width: 120px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #e5e7eb;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  min-height: 52px;
}

.payment-method-option:hover {
  border-color: #ffc107;
  background: #fffbf0;
}

.payment-method-option:has(input[type="radio"]:checked) {
  border-color: #ffc107;
  background: #fff8e1;
  box-shadow: 0 0 0 1px #ffc107;
}

.payment-method-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method-option__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff3cd;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.payment-method-option__icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.payment-method-option__icon i {
  font-size: 0.9rem;
  color: #0f172a;
}

.payment-method-option__icon--online {
  background: #e6f5ff;
}

.payment-method-option__icon--paypal {
  background: #eef3ff;
  width: auto;
  padding: 0 8px;
}

.payment-method-option__icon--paypal img {
  width: 52px;
  height: 16px;
  object-fit: contain;
}

.payment-modal__cta-paypal-icon {
  width: 64px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.payment-method-option__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ui-text-strong);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.cart-summary__label-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-summary__info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0 2px;
  margin-inline-start: 4px;
  cursor: pointer;
  color: var(--ui-text-muted, #6b7280);
  font-size: 0.78rem;
  line-height: 1;
  vertical-align: middle;
  transition: color 0.15s;
}

.cart-summary__info-btn:hover,
.cart-summary__info-btn:focus-visible {
  color: var(--ui-primary, #2563eb);
}

.cart-summary__info-tooltip {
  display: block;
  margin-top: 4px;
  padding: 6px 10px;
  background: var(--ui-surface-subtle, #f3f4f6);
  border-radius: 6px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--ui-text-muted, #6b7280);
  animation: cartInfoFadeIn 0.15s ease;
}

@keyframes cartInfoFadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Tablet (480px–860px): force 2×2 grid ───────────── */
@media (min-width: 480px) and (max-width: 860px) {
  .payment-methods-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .payment-method-option {
    min-width: 0;
  }
}

/* ── Mobile (≤ 989px): compact layout ───────────────── */
@media (max-width: 989px) {
  .payment-methods-wrapper {
    gap: 0.3rem;
  }

  .payment-method-option {
    padding: 7px 6px;
    gap: 0.3rem;
  }

  .payment-method-option__icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  .payment-method-option__icon img {
    width: 15px;
    height: 15px;
  }

  .payment-method-option__icon i {
    font-size: 0.8rem;
  }

  .payment-method-option__icon--paypal {
    padding: 0 6px;
  }

  .payment-method-option__icon--paypal img {
    width: 44px;
    height: 14px;
  }

  .payment-method-option__name {
    font-size: 0.76rem;
  }
}

.payment-options-container > .field-input {
  margin-top: 0.75rem;
  width: 100%;
}

.payment-email-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--ui-text-muted, #888);
}

@keyframes emailHighlightPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 122, 24, 0.4); }
  50%  { box-shadow: 0 0 0 6px rgba(255, 122, 24, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 24, 0); }
}

.payment-email-highlight {
  border-color: var(--ui-primary, #ff7a18) !important;
  animation: emailHighlightPulse 0.8s ease 2;
}

.payment-options-container--error legend {
  color: #dc2626;
}

.payment-options-container--error .payment-method-option {
  border-color: #fca5a5;
  background: #fff5f5;
}

.payment-options-container--error .payment-method-option:hover {
  border-color: #ef4444;
  background: #fff1f1;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

#swipeOverlay {
  display: none;
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

#swipeOverlay .swipe-hand {
  font-size: 2rem;
  color: rgba(0, 0, 0, 0.3);
  animation: swipeAnim 1s ease-in-out infinite alternate;
}

@keyframes swipeAnim {
  0% {
    transform: translateX(0) translateY(-50%);
  }

  100% {
    transform: translateX(-30px) translateY(-50%);
  }
}

@media (max-width: 480px) {
  #swipeOverlay {
    display: block;
  }
}

@media (min-width: 1360px) {
  .cart-page {
    --cart-shell-max: 1280px;
  }

  .cart-app {
    width: 100%;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1200px) {
  .cart-page {
    padding: clamp(16px, 4vw, 48px) clamp(14px, 3vw, 40px) clamp(28px, 5vw, 72px);
  }

  .cart-app {
    padding: clamp(10px, 3vw, 20px) 0;
  }

  .cart-header__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-quick-nav {
    justify-content: flex-start;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-section {
    padding: clamp(20px, 3vw, 28px);
    margin-top: 20px;
  }
}

@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-header__top {
    grid-template-columns: 1fr;
  }

  .cart-quick-nav {
    width: 100%;
    justify-content: space-between;
  }

  .cart-section {
    padding: clamp(18px, 4vw, 26px);
    margin-top: 20px;
  }

  .cart-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-table-wrapper {
    max-height: none;
  }

  .working-hours {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .customer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-content {
    width: min(640px, 94vw);
  }
}

@media (max-width: 768px) {
  .cart-page {
    padding: clamp(14px, 5vw, 28px);
  }

  .cart-header {
    padding: clamp(18px, 5vw, 30px);
  }

  .cart-quick-nav {
    width: 100%;
    justify-content: flex-end;
    gap: var(--ui-space-xs);
  }

  .ui-progress {
    flex-wrap: wrap;
    gap: 6px;
  }

  .ui-progress__step {
    flex: 1 1 calc(50% - 8px);
  }

  .cart-section {
    padding: clamp(16px, 5vw, 24px);
    margin-top: 20px;
  }

  .cart-summary {
    flex-direction: column;
    align-items: stretch;
    gap: var(--ui-space-sm);
  }

  .order-history-hub {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-history-hub__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cart-primary-actions {
    flex-direction: column;
    gap: var(--ui-space-xs);
  }

  .cart-primary-actions .button--secondary,
  .cart-primary-actions .ui-cta-button {
    width: 100%;
  }

  .customer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .working-hours {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: min(95vw, 520px);
    padding: clamp(18px, 6vw, 26px);
    height: auto;
  }
}

@media (max-width: 480px) {
  .customer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cart-page {
    padding: clamp(12px, 5vw, 20px);
  }

  .cart-title {
    font-size: clamp(1.3rem, 7vw, 1.9rem);
  }

  .cart-header__top {
    gap: var(--ui-space-sm);
  }

  .cart-quick-nav {
    gap: var(--ui-space-xs);
  }

  .cart-quick-nav__btn {
    width: 46px;
    height: 46px;
  }

  .cart-quick-nav__btn i {
    font-size: 1rem;
  }

  .ui-progress {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ui-progress__step {
    flex: 1 0 auto;
  }

  .cart-table {
    min-width: 380px;
  }

  .cart-table th,
  .cart-table td {
    font-size: clamp(0.8rem, 3.5vw, 0.95rem);
    padding-inline: clamp(6px, 2vw, 10px);
  }

  .cart-section {
    padding: clamp(14px, 6vw, 20px);
    margin-top: 20px;
  }

  .service-switch__toggle .service-switch__label {
    display: none;
  }

  .service-switch__status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(10px, 4vw, 20px);
    padding: 23px clamp(4px, 4vw, 18px) 0;
  }

  .service-switch__status-label {
    font-size: clamp(0.76rem, 3.3vw, 0.92rem);
  }

  .modal {
    padding: clamp(6px, 5vw, 14px);
  }

  .modal-content {
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .payment-modal {
    padding: clamp(22px, 8vw, 34px);
  }
}

.cart-hero {
  width: min(var(--ui-content-max), 100%);
  max-width: 1040px;
  margin-inline: auto;
  margin-block: 0 var(--ui-space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-inline: var(--ui-space-sm);
}

.cart-hero__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: clamp(1.55rem, 3.4vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cart-hero__title i {
  color: var(--ui-primary);
  font-size: 0.82em;
  flex-shrink: 0;
}

.cart-hero__subtitle {
  margin: 0;
  color: var(--ui-text-muted);
  font-size: clamp(0.88rem, 1.8vw, 0.97rem);
  line-height: 1.55;
  max-width: 52ch;
}

@media (max-width: 640px) {
  .cart-hero {
    margin-block-end: var(--ui-space-sm);
  }
}

.cart-bottom-nav {
  position: sticky;
  bottom: calc(clamp(14px, 4vw, 28px) + var(--ui-safe-bottom) + var(--ui-cookie-banner-height));
  width: min(var(--cart-shell-max, var(--ui-content-max)), 100%);
  max-width: min(var(--cart-shell-max, var(--ui-content-max)), 100%);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 22px) clamp(18px, 4vw, 26px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(255, 245, 235, 0.6));
  border-radius: var(--ui-radius-lg);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(12px) saturate(110%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--ui-space-xs);
  align-items: stretch;
  z-index: 1000;
}

.cart-bottom-nav__context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ui-space-xs);
  flex-wrap: wrap;
  grid-column: 1 / -1;
  min-height: 0;
  padding: 0;
}

.cart-bottom-nav-attribution {
  width: min(var(--cart-shell-max, var(--ui-content-max)), 100%);
  max-width: min(var(--cart-shell-max, var(--ui-content-max)), 100%);
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cart-bottom-nav-attribution:empty {
  display: none;
}

.cart-bottom-nav-attribution .gz-platform-attribution {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.cart-bottom-nav__title {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-bottom-nav__subtitle {
  margin: 4px 0 0;
  color: var(--ui-text-muted);
  font-size: 0.95rem;
}

.cart-item-word {
  display: inline;
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.cart-bottom-nav__cta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--ui-space-xs);
  grid-column: 1 / -1;
}

.cart-bottom-nav__rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--ui-space-xs);
  grid-column: 1 / -1;
}

.cart-bottom-nav__btn {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  padding: 14px 16px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cart-bottom-nav__btn:hover,
.cart-bottom-nav__btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.cart-bottom-nav__btn--ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ui-text);
}

.cart-bottom-nav__btn--primary {
  background: linear-gradient(135deg, var(--ui-primary), #f59e0b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(255, 122, 24, 0.32);
}

.cart-bottom-nav__btn.is-disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.cart-bottom-nav__btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: var(--ui-radius-pill);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ui-primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.cart-bottom-nav__rail-item {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ui-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 244, 230, 0.58));
  color: var(--ui-text);
  border-radius: 16px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  min-height: 54px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cart-bottom-nav__rail-item:hover,
.cart-bottom-nav__rail-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(224, 103, 12, 0.32);
  box-shadow: 0 18px 38px rgba(255, 122, 24, 0.18);
}

.cart-bottom-nav__rail-item--active {
  background: linear-gradient(145deg, rgba(255, 122, 24, 0.14), rgba(255, 255, 255, 0.9));
  border-color: rgba(224, 103, 12, 0.35);
  color: var(--ui-primary-dark);
}

.cart-bottom-nav__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-bottom-nav__icon i {
  font-size: 1rem;
}

.cart-bottom-nav__label {
  font-size: 0.95rem;
}

.cart-bottom-nav__badge {
  min-width: 1.9rem;
  padding: 4px 6px;
  background: #fff;
  color: var(--ui-primary-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(255, 122, 24, 0.18);
}

@media (max-width: 1024px) {
  .cart-bottom-nav {
    bottom: calc(
      clamp(14px, 4vw, 28px) +
      var(--ui-safe-bottom) +
      var(--ui-cookie-banner-height) +
      clamp(22px, 3.5vw, 30px)
    );
  }

  .cart-bottom-nav-attribution {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    bottom: calc(
      var(--ui-safe-bottom) +
      var(--ui-cookie-banner-height) +
      var(--cart-attribution-safe-gap)
    );
    z-index: 999;
  }
}

@media (max-width: 720px) {
  .cart-page {
    padding-bottom: var(
      --cart-page-bottom-clearance,
      calc(
        clamp(150px, 28vw, 210px) +
        clamp(14px, 4vw, 28px) +
        var(--ui-safe-bottom) +
        var(--ui-cookie-banner-height) +
        clamp(22px, 3.5vw, 30px)
      )
    );
  }

  .cart-bottom-nav {
    position: fixed;
    left: calc(clamp(18px, 4vw, 48px) + var(--ui-safe-left));
    right: calc(clamp(18px, 4vw, 48px) + var(--ui-safe-right));
    width: auto;
    max-width: none;
    margin: 0;
  }

  .cart-bottom-nav__cta-row {
    grid-template-columns: 1fr;
  }

  .cart-bottom-nav__btn--primary {
    order: -1;
  }

  .cart-bottom-nav__rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-bottom-nav-attribution {
    position: fixed;
    left: calc(clamp(18px, 4vw, 48px) + var(--ui-safe-left));
    right: calc(clamp(18px, 4vw, 48px) + var(--ui-safe-right));
    width: auto;
    max-width: none;
    margin: 0;
    bottom: calc(
      var(--ui-safe-bottom) +
      var(--ui-cookie-banner-height) +
      var(--cart-attribution-safe-gap)
    );
    transform: none;
    z-index: 999;
  }
}

@media (max-width: 520px) {
  .cart-bottom-nav {
    padding: clamp(14px, 4vw, 18px);
    border-radius: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 8px;
  }

  .cart-bottom-nav__context {
    display: none;
  }

  .cart-bottom-nav__cta-row {
    display: contents;
  }

  .cart-bottom-nav__btn {
    min-height: 48px;
    padding: 12px;
    gap: 6px;
    font-size: 0.95rem;
  }

  .cart-bottom-nav__rail {
    display: contents;
  }

  .cart-bottom-nav__rail-item {
    min-height: 48px;
    padding: 12px;
    gap: 0;
  }

  .cart-bottom-nav__icon {
    width: 22px;
    height: 22px;
  }

  .cart-bottom-nav__label {
    display: none;
  }

  /* Hide text on the "Zurück zum Menü" button for very small screens */
  #cartNavMenu {
    gap: 0;
    padding: 12px;
    min-height: 48px;
  }

  #cartNavMenu span {
    display: none;
  }

  #cartNavMenu i {
    font-size: 1.15rem;
  }

  #cartNavPrimary {
    order: -2;
    grid-column: 1 / -1;
  }
}

@media (min-width: 1025px) {
  .service-switch__toggle .service-switch__label {
    display: none;
  }

  .service-switch__status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(10px, 4vw, 20px);
    padding: 23px clamp(4px, 4vw, 18px) 0;
  }

  .service-switch__status-label {
    font-size: clamp(0.76rem, 3.3vw, 0.92rem);
  }
}

@media (max-width: 528px) {
  .service-switch {
    --toggle-width: clamp(220px, 85vw, 320px);
    --toggle-height: clamp(46px, 15vw, 60px);
    --toggle-knob-size: calc(var(--toggle-height) + 4px);
    --toggle-knob-reveal: calc(var(--toggle-knob-size) * 0.12);
  }

  .service-switch.toggle--knob .toggle--btn::before {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22),
      inset 0 8px 8px 4px rgba(255, 255, 255, 0.7),
      inset 0 0 6px 0 rgba(0, 0, 0, 0.25), inset 0 0 0 7px #dcdcdc,
      inset 0 0 0 9px var(--toggle-knob-color);
  }

  .service-switch[data-service="delivery"] .service-switch__status-label--delivery::after {
    background: linear-gradient(135deg, #22c55e, #16a34a);
  }
}

@media (max-width: 420px) {
  .cart-app {
    padding: clamp(8px, 4vw, 14px) 0;
  }

  .cart-table {
    min-width: 320px;
  }

  .service-switch {
    --toggle-width: min(100%, 260px);
    --toggle-height: 48px;
    --toggle-knob-size: 58px;
    --toggle-knob-reveal: 5px;
  }

  .service-switch.toggle--knob .toggle--feature {
    padding-inline: calc(var(--toggle-knob-size) * 0.62);
    gap: calc(var(--toggle-knob-size) * 0.15);
  }

  .service-switch__status-label {
    letter-spacing: 0.08em;
  }
}

/* Cookie info banner – shared style for cart, search and privacy pages */
.cookie-info-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: none;
  padding: 12px 16px;
  background: #111827;
  color: #e5e7eb;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.35);
}

.cookie-info-banner--visible {
  display: block;
}

html.modal-open .cookie-info-banner,
body.modal-open .cookie-info-banner {
  display: none !important;
}

.cookie-info-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-info-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-info-text a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-info-text a:hover {
  color: #bfdbfe;
}

.cookie-info-button {
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.2);
  background: #f97316;
  color: #111827;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-info-button:hover {
  background: #fb923c;
  transform: translateY(-1px);
}

.tax-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef3ff;
  color: #1f3f71;
  border: 1px solid #d7e4ff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.tax-chip--sm {
  padding: 2px 6px;
  font-size: 11px;
}

.tax-chip--muted {
  background: #f6f7fb;
  color: #4a5568;
  border-color: #e2e8f0;
}

.cart-summary__total [data-role="tax-label"],
.payment-summary-total [data-role="tax-label"] {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: #6b7280;
  letter-spacing: 0;
  display: block;
  line-height: 1.2;
  margin-top: 2px;
}

.cart-summary__note {
  margin: 8px 0 0;
  color: #4a5568;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .cookie-info-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-info-button {
    width: 100%;
    text-align: center;
  }
}

/* Tax Chip Styling */
.tax-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(17, 17, 17, 0.05);
  color: var(--ui-text-muted);
  font-size: 0.85rem;
}

.tax-chip--sm {
  font-size: 0.8rem !important;
  /* Slightly increased from 0.7rem */
  font-weight: 400 !important;
  /* Removed bold */
  line-height: normal;
  display: inline-block;
  opacity: 0.8;
  vertical-align: 1px;
}

/* Ensure the JS-targeted element also gets this style if classes are missing in HTML */
#cartTaxNote {
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  /* Removed bold */
  line-height: normal;
  color: var(--ui-text-muted);
  opacity: 0.8;
}

/* Arabic / RTL layout fixes for nested cart containers */
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-page {
  direction: rtl;
}

/* Keep delivery/pickup form containers in LTR order even on Arabic UI. */
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #pickupScheduleField,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #pickupContactFields,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #deliveryScheduleField,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #deliveryFields,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .schedule-grid,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .customer-grid,
body.cairo-font.cart-page #pickupScheduleField,
body.cairo-font.cart-page #pickupContactFields,
body.cairo-font.cart-page #deliveryScheduleField,
body.cairo-font.cart-page #deliveryFields,
body.cairo-font.cart-page .schedule-grid,
body.cairo-font.cart-page .customer-grid {
  direction: rtl;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .customer-grid input,
body.cairo-font.cart-page .customer-grid input {
  direction: ltr;
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #pickupEtaHint.schedule-hint,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #deliveryEtaHint.schedule-hint,
body.cairo-font.cart-page #pickupEtaHint.schedule-hint,
body.cairo-font.cart-page #deliveryEtaHint.schedule-hint {
  direction: rtl;
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .customer-notes-toggle,
body.cairo-font.cart-page .customer-notes-toggle {
  direction: rtl;
  padding-right: 0;
  padding-left: calc(
    var(--customer-notes-chevron-size) +
    var(--customer-notes-info-size) +
    var(--customer-notes-controls-gap) +
    var(--customer-notes-info-shift) +
    var(--customer-notes-chevron-end-offset) +
    8px
  );
  order: 2;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .note-info-trigger,
body.cairo-font.cart-page .note-info-trigger {
  right: auto;
  left: calc(
    var(--customer-notes-chevron-size) +
    var(--customer-notes-chevron-end-offset) +
    var(--customer-notes-controls-gap) +
    var(--customer-notes-info-shift)
  );
  order: 1;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .customer-notes-toggle__chevron,
body.cairo-font.cart-page .customer-notes-toggle__chevron {
  right: auto;
  left: var(--customer-notes-chevron-end-offset);
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .customer-notes-toggle__text,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .customer-notes-toggle .field-label,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .customer-notes-toggle__preview,
body.cairo-font.cart-page .customer-notes-toggle__text,
body.cairo-font.cart-page .customer-notes-toggle .field-label,
body.cairo-font.cart-page .customer-notes-toggle__preview {
  direction: rtl;
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .customer-notes-toggle__chevron::before {
  transform: rotate(135deg);
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .customer-notes-block[data-expanded="true"] .customer-notes-toggle__chevron::before {
  transform: rotate(45deg);
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .schedule-grid select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M8.75 3.5L5.25 7L8.75 10.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: left var(--schedule-chevron-offset) center;
  padding-left: calc(
    var(--schedule-chevron-size) +
    var(--schedule-chevron-offset) +
    var(--schedule-field-inline-padding)
  );
  padding-right: var(--schedule-field-inline-padding);
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #pickupEtaHint .schedule-hint__surface,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #deliveryEtaHint .schedule-hint__surface,
body.cairo-font.cart-page #pickupEtaHint .schedule-hint__surface,
body.cairo-font.cart-page #deliveryEtaHint .schedule-hint__surface,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #pickupEtaHint .schedule-hint__copy,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #deliveryEtaHint .schedule-hint__copy,
body.cairo-font.cart-page #pickupEtaHint .schedule-hint__copy,
body.cairo-font.cart-page #deliveryEtaHint .schedule-hint__copy,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #pickupEtaHint .schedule-hint__summary,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #deliveryEtaHint .schedule-hint__summary,
body.cairo-font.cart-page #pickupEtaHint .schedule-hint__summary,
body.cairo-font.cart-page #deliveryEtaHint .schedule-hint__summary,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #pickupEtaHint .schedule-hint__details,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #deliveryEtaHint .schedule-hint__details,
body.cairo-font.cart-page #pickupEtaHint .schedule-hint__details,
body.cairo-font.cart-page #deliveryEtaHint .schedule-hint__details {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .online-ordering-modal__panel,
body.cairo-font.cart-page .online-ordering-modal__panel {
  direction: rtl;
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .online-ordering-modal__header,
body.cairo-font.cart-page .online-ordering-modal__header {
  flex-direction: row;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .online-ordering-modal__eyebrow,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .online-ordering-modal__message,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .online-ordering-modal__contact-link,
body.cairo-font.cart-page .online-ordering-modal__eyebrow,
body.cairo-font.cart-page .online-ordering-modal__message,
body.cairo-font.cart-page .online-ordering-modal__contact-link {
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .online-ordering-modal__contact-link,
body.cairo-font.cart-page .online-ordering-modal__contact-link {
  direction: rtl;
  unicode-bidi: plaintext;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .online-ordering-modal__footer,
body.cairo-font.cart-page .online-ordering-modal__footer {
  justify-content: flex-start;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #paymentInfoModal #customerNameText,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #paymentInfoModal #customerAddressText,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #paymentInfoModal #customerSummaryText,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #paymentInfoModal #orderScheduleText,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #paymentInfoModal #orderScheduleSummaryText,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #paymentInfoModal #customerPhoneWrapper,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #paymentInfoModal #customerPhoneText,
body.cairo-font.cart-page #paymentInfoModal #customerNameText,
body.cairo-font.cart-page #paymentInfoModal #customerAddressText,
body.cairo-font.cart-page #paymentInfoModal #customerSummaryText,
body.cairo-font.cart-page #paymentInfoModal #orderScheduleText,
body.cairo-font.cart-page #paymentInfoModal #orderScheduleSummaryText,
body.cairo-font.cart-page #paymentInfoModal #customerPhoneWrapper,
body.cairo-font.cart-page #paymentInfoModal #customerPhoneText {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #paymentInfoModal .payment-info-card__toggle,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #paymentInfoModal .payment-info-card__heading,
body.cairo-font.cart-page #paymentInfoModal .payment-info-card__toggle,
body.cairo-font.cart-page #paymentInfoModal .payment-info-card__heading {
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #paymentInfoModal #customerPhoneWrapper,
body.cairo-font.cart-page #paymentInfoModal #customerPhoneWrapper {
  justify-content: flex-start;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-hero,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-section,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .payment-modal,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .payment-summary-card,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .distance-pricing-panel,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .working-hours-panel {
  direction: rtl;
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .working-hours-panel__summary {
  direction: rtl;
  flex-direction: row;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .working-hours-panel__chevron::before,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .distance-pricing-panel__chevron::before,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .schedule-hint__chevron::before {
  transform: rotate(135deg);
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .working-hours-panel[open] .working-hours-panel__chevron::before,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .distance-pricing-panel[open] .distance-pricing-panel__chevron::before,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .schedule-hint--expanded .schedule-hint__chevron::before {
  transform: rotate(45deg);
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-hero {
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-hero__title,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-section__title,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .working-hours__title,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .payment-info-card__title,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-bottom-nav__btn,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-bottom-nav__rail-item {
  direction: rtl;
  flex-direction: row;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-item-name,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-item-note,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-item-note--exclusions,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-item-note--extras,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-image-lightbox__caption,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .working-hours__toggle {
  direction: rtl;
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .working-hours__toggle::after {
  content: "\f053";
  margin-left: 0;
  margin-right: auto;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .working-hours__toggle[aria-expanded="true"]::after {
  content: "\f106";
}

/* ================================================================
   RTL OVERRIDES — Arabic, Kurdish, and RTL layouts
   Controls, dropdowns, actions, price block
   ================================================================ */

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-item__footer {
  flex-direction: row-reverse;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-item__price-block {
  align-items: flex-start;
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-item__price-line {
  justify-content: flex-start;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item__controls,
body.cairo-font.cart-page .cart-item__controls {
  direction: ltr;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item__selects,
body.cairo-font.cart-page .cart-item__selects {
  direction: ltr;
  justify-content: flex-end;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .variant-dropdown-label,
body.cairo-font.cart-page .variant-dropdown-label {
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .variant-dropdown-hint,
body.cairo-font.cart-page .variant-dropdown-hint {
  text-align: right;
  direction: rtl;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item .cart-item__select,
body.cairo-font.cart-page .cart-item .cart-item__select {
  text-align: right;
  text-align-last: right;
  padding: 9px 12px 9px 32px;
  background-position: left 10px center, 0 0;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item .cart-item__select.quantity-dropdown,
body.cairo-font.cart-page .cart-item .cart-item__select.quantity-dropdown {
  direction: ltr;
  text-align: center;
  text-align-last: center;
  padding: 9px 32px 9px 12px;
  background-position: right 10px center, 0 0;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item__actions,
body.cairo-font.cart-page .cart-item__actions {
  direction: ltr;
  justify-content: flex-end;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item__unit-price-badge,
body.cairo-font.cart-page .cart-item__unit-price-badge {
  direction: ltr;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item__unit-price,
body.cairo-font.cart-page .cart-item__unit-price {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-item__breakdown-line {
  direction: ltr;
  unicode-bidi: isolate;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-item--discounted .cart-item__price {
  align-items: flex-start;
  text-align: left;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item__tax-note {
  text-align: right;
  direction: rtl;
}

@media (max-width: 913px) {
  :is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item__meta--media-hosted,
  body.cairo-font.cart-page .cart-item__meta--media-hosted {
    grid-template-columns: clamp(92px, 22vw, 112px) minmax(0, 1fr);
    grid-template-areas:
      "media price"
      "media controls";
  }

  :is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item__meta--media-hosted .cart-item__controls,
  body.cairo-font.cart-page .cart-item__meta--media-hosted .cart-item__controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  :is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item__meta--media-hosted .cart-item__selects,
  body.cairo-font.cart-page .cart-item__meta--media-hosted .cart-item__selects {
    grid-column: auto;
  }

  :is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item__meta--media-hosted .cart-item__actions,
  body.cairo-font.cart-page .cart-item__meta--media-hosted .cart-item__actions {
    grid-column: auto;
    justify-content: flex-end;
  }

  :is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item .cart-item__select.quantity-dropdown,
  body.cairo-font.cart-page .cart-item .cart-item__select.quantity-dropdown {
    padding: 6px 22px 6px 8px;
    background-position: right 8px center, 0 0;
  }

  :is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item__meta--media-hosted .cart-item__selects--quantity-only .cart-item__select.quantity-dropdown,
  body.cairo-font.cart-page .cart-item__meta--media-hosted .cart-item__selects--quantity-only .cart-item__select.quantity-dropdown {
    padding: 6px 22px 6px 8px;
    background-position: right 8px center, 0 0;
  }
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-summary__value {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
  direction: ltr;
  unicode-bidi: isolate;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .payment-summary-total > span:last-child,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) #paymentCartTotal,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar)
  .payment-summary-row__prices
  > .payment-summary-row__subtotal:only-child {
  direction: ltr;
  unicode-bidi: isolate;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .working-hours__table {
  direction: rtl;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .working-hours__row td:first-child {
  direction: rtl;
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .working-hours__row td:last-child {
  text-align: left;
  direction: ltr;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .distance-pricing-panel__tracking-status {
  text-align: left;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .distance-pricing-panel__tracking-foot {
  flex-direction: row-reverse;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .distance-pricing-pill {
  flex-direction: row-reverse;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .distance-pricing-panel__tracking-link {
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .note-info-popover {
  right: auto;
  left: var(--note-popover-left);
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .note-info-popover::before {
  right: auto;
  left: var(--note-popover-arrow-left);
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) .cart-item-note--exclusions {
  padding-right: 14px;
  padding-left: 42px;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-extras-editor__footer,
body.cairo-font.cart-page .cart-extras-editor__footer {
  direction: rtl;
  justify-content: flex-start;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item-note--extras::after,
body.cairo-font.cart-page .cart-item-note--extras::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(135deg);
  flex: 0 0 auto;
  opacity: 0.45;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .cart-item-note--exclusions::after,
body.cairo-font.cart-page .cart-item-note--exclusions::after {
  transform: rotate(135deg);
  align-self: center;
  opacity: 0.75;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .floating-toast-container:not(.floating-toast-container--center),
body.cairo-font.cart-page .floating-toast-container:not(.floating-toast-container--center) {
  left: clamp(16px, 4vw, 36px);
  right: auto;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .floating-toast-container--center,
body.cairo-font.cart-page .floating-toast-container--center {
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) input[type="email"],
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) input[type="tel"],
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) input[inputmode="numeric"],
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) #plz {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) #deliveryFields input {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) .customer-grid input::placeholder,
body.cairo-font.cart-page .customer-grid input::placeholder {
  direction: rtl;
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #pickupName,
body.cairo-font.cart-page #pickupName {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #pickupName::placeholder,
body.cairo-font.cart-page #pickupName::placeholder {
  direction: rtl;
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) #telefon {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) #pickupDate,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) #deliveryDate,
body.cairo-font.cart-page #pickupDate,
body.cairo-font.cart-page #deliveryDate {
  position: relative;
  direction: rtl;
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) #pickupDate::-webkit-calendar-picker-indicator,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) #deliveryDate::-webkit-calendar-picker-indicator,
body.cairo-font.cart-page #pickupDate::-webkit-calendar-picker-indicator,
body.cairo-font.cart-page #deliveryDate::-webkit-calendar-picker-indicator {
  position: absolute;
  left: var(--schedule-field-inline-padding);
  right: auto;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) #pickupTime,
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar) #deliveryTime,
body.cairo-font.cart-page #pickupTime,
body.cairo-font.cart-page #deliveryTime {
  direction: ltr;
  text-align: right;
  text-align-last: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #pickupTime[data-no-slots="true"],
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) #deliveryTime[data-no-slots="true"],
body.cairo-font.cart-page #pickupTime[data-no-slots="true"],
body.cairo-font.cart-page #deliveryTime[data-no-slots="true"] {
  direction: rtl;
  text-align: right;
  text-align-last: right;
}

/* Arabic RTL corrections for cart hero, switch, bottom CTA and cookie banner */
:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) body.cart-page .cart-hero,
body.cairo-font.cart-page .cart-hero {
  direction: rtl;
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) body.cart-page .cart-hero__title,
body.cairo-font.cart-page .cart-hero__title {
  direction: rtl;
  flex-direction: row;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) body.cart-page .cart-hero__subtitle,
body.cairo-font.cart-page .cart-hero__subtitle {
  direction: rtl;
  text-align: right;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) body.cart-page .service-switch__status,
body.cairo-font.cart-page .service-switch__status {
  direction: rtl;
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) body.cart-page .service-switch.toggle--knob .toggle--btn::before,
body.cairo-font.cart-page .service-switch.toggle--knob .toggle--btn::before {
  left: auto;
  right: calc(-1 * var(--toggle-knob-reveal));
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) body.cart-page .toggle--checkbox:checked + .service-switch__toggle::before,
body.cairo-font.cart-page .toggle--checkbox:checked + .service-switch__toggle::before {
  left: auto;
  right: calc(100% - var(--toggle-knob-size) + var(--toggle-knob-reveal));
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) body.cart-page .service-switch__icon,
body.cairo-font.cart-page .service-switch__icon {
  left: auto;
  right: calc((-1 * var(--toggle-knob-reveal)) + (var(--toggle-knob-size) / 2));
  transform: translate(50%, -50%);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

:is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) body.cart-page .toggle--checkbox:checked + .service-switch__toggle .service-switch__icon,
body.cairo-font.cart-page .toggle--checkbox:checked + .service-switch__toggle .service-switch__icon {
  left: auto;
  right: calc(100% - var(--toggle-knob-size) + var(--toggle-knob-reveal) + (var(--toggle-knob-size) / 2));
}

@media (min-width: 721px) {
  :is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) body.cart-page .cart-bottom-nav__cta-row,
  body.cairo-font.cart-page .cart-bottom-nav__cta-row {
    direction: rtl;
  }

  :is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) body.cart-page #cartNavPrimary,
  body.cairo-font.cart-page #cartNavPrimary {
    order: -1;
  }
}

@media (min-width: 641px) {
  :is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) body.cart-page .cookie-info-banner-inner,
  body.cairo-font.cart-page .cookie-info-banner-inner {
    direction: rtl;
    justify-content: flex-start;
  }

  :is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) body.cart-page .cookie-info-text,
  body.cairo-font.cart-page .cookie-info-text {
    order: 2;
    flex: 1;
    text-align: right;
  }

  :is(html[dir="rtl"], html[lang="ar"], html.rt-lang-ar, html.rt-lang-rtl) body.cart-page .cookie-info-button,
  body.cairo-font.cart-page .cookie-info-button {
    order: 1;
  }
}
