/* The order configuration window in Eden's look (Alik 19.10). Loaded by front/layouts/masterNew.blade.php when
   `menu_order_configuration` is on and `buyer_frontend_mode` is `design`; the window then carries
   `.order-config-design` (front/menu.blade.php). Only the window: the menu around it stays legacy.

   Eden drew no dialogs, menu or step indicator — this carries his entry screens' tokens and components over
   (css/new-design-entry.css: ENTRY DIALOGS, .nd-cta, .nd-slot, .nd-field-box, .nd-auth-cta, .nd-back,
   .nd-addr-saved). Weight as there: `#multistepModal.order-config-design:not(#\9)` beats the Sites' own `css`
   without !important. The brand colour is the page's --primary (Branch colour, else the Site's), as
   NewDesign::theme() does on the entry screens; its own variables are not printed on the menu. */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600&display=swap');

/* ─────────── Tokens ─────────── */

#multistepModal.order-config-design {
  --oc-brand: var(--primary);
  --oc-brand-hover: color-mix(in srgb, var(--primary) 88%, #fff);
  --oc-brand-soft: color-mix(in srgb, var(--primary) 9%, #fff);
  --oc-on-brand: #fff;
  --oc-secondary: color-mix(in srgb, var(--primary) 35%, #000);
  --oc-ink: #16242c;
  --oc-ink-2: rgba(22, 36, 44, .82);
  --oc-line: rgba(22, 36, 44, .07);
  --oc-card-shadow: 0 1px 2px color-mix(in srgb, var(--oc-secondary) 5%, transparent),
                    0 10px 22px -16px color-mix(in srgb, var(--oc-secondary) 40%, transparent);
  --oc-card-shadow-hover: 0 2px 4px color-mix(in srgb, var(--oc-secondary) 7%, transparent),
                          0 18px 34px -18px color-mix(in srgb, var(--oc-secondary) 46%, transparent);
  --oc-ease: cubic-bezier(.16, 1, .3, 1);
  --oc-font: 'Heebo', 'Assistant', system-ui, sans-serif;
}

/* ─────────── Shell (Eden ENTRY DIALOGS) ─────────── */

body:has(#multistepModal.order-config-design.show) .modal-backdrop.show {
  background: rgba(0, 0, 0, .55);
  opacity: 1;
}

#multistepModal.order-config-design:not(#\9) .modal-content {
  border: none;
  border-radius: 26px;
  background: #fff;
  color: var(--oc-ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}

/* Heebo everywhere in the window but the icon fonts (Sites set their fonts with !important) */
#multistepModal.order-config-design:not(#\9) .modal-content,
#multistepModal.order-config-design:not(#\9) .modal-content :is(h1, h2, h3, h4, h5, h6, p, span, a, b, strong, button, input, select, label, li, div):not(.fa, [class*="icon-"]) {
  font-family: var(--oc-font) !important;
}

#multistepModal.order-config-design:not(#\9) .modal-header {
  min-height: 56px;
  padding: 16px 20px 0;
  border: 0;
  color: var(--oc-ink);
}

#multistepModal.order-config-design:not(#\9) .modal-header .welcome {
  font-size: 15px;
  font-weight: 500;
  color: var(--oc-ink-2);
}

#multistepModal.order-config-design:not(#\9) .modal-header button.close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--oc-secondary) 8%, transparent);
  color: var(--oc-secondary);
  opacity: 1;
  text-shadow: none;
}

#multistepModal.order-config-design:not(#\9) .modal-header button.close span {
  font-size: 22px;
  line-height: 1;
  color: inherit;
}

#multistepModal.order-config-design:not(#\9) .modal-body {
  padding: 8px 22px 20px;
  color: var(--oc-ink);
}

/* ─────────── Headings ─────────── */

#multistepModal.order-config-design:not(#\9) .order-config-title {
  margin-block-end: 18px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--oc-ink);
}

#multistepModal.order-config-design:not(#\9) .order-config-heading {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--oc-ink);
}

#multistepModal.order-config-design:not(#\9) .order-config-welcome-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--oc-ink-2);
}

#multistepModal.order-config-design:not(#\9) :is(.modal-body h6, .order-config-summary-heading) {
  font-size: 15px;
  font-weight: 500;
  color: var(--oc-ink-2);
}

/* ─────────── The summary card (Eden's card: white, radius 24, the soft lift shadow) ─────────── */

#multistepModal.order-config-design:not(#\9) .order-details {
  padding: 14px 18px;
  border: 1px solid var(--oc-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--oc-card-shadow);
}

#multistepModal.order-config-design:not(#\9) .order-details p {
  margin-block: 8px;
  font-size: 16px;
  color: var(--oc-ink);
}

#multistepModal.order-config-design:not(#\9) .order-details strong {
  font-weight: 500;
}

#multistepModal.order-config-design:not(#\9) .order-details svg :is(path, circle, rect, line, polyline) {
  stroke: var(--oc-brand);
}

#multistepModal.order-config-design:not(#\9) .order-details .btn-link,
#multistepModal.order-config-design:not(#\9) .order-details a.text-danger {
  font-weight: 500;
  color: var(--oc-brand) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─────────── Tiles: the type choice, log in / on as a guest, the Branches (square, Eden's card tokens) ─────────── */

#multistepModal.order-config-design:not(#\9) :is(.order-type-choice button, a.order-config-tile) {
  border: 1px solid rgba(22, 36, 44, .05) !important;
  border-radius: 20px !important;
  background: #fff !important;
  color: var(--oc-ink);
  box-shadow: var(--oc-card-shadow) !important;
  font-weight: 500;
  transition: transform .26s var(--oc-ease), box-shadow .26s var(--oc-ease), border-color .26s;
}

#multistepModal.order-config-design:not(#\9) :is(.order-type-choice button, a.order-config-tile):hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--oc-brand) 28%, transparent) !important;
  box-shadow: var(--oc-card-shadow-hover) !important;
}

#multistepModal.order-config-design:not(#\9) :is(.order-type-choice button, a.order-config-tile):active {
  transform: scale(.98);
  transition-duration: .1s;
}

/* the legacy frames and fills (an inner frame, a filled guest tile on phones) give way to one look */
#multistepModal.order-config-design:not(#\9) a.order-config-tile::after {
  content: none;
}

#multistepModal.order-config-design:not(#\9) :is(.order-type-choice button, a.order-config-tile) :is(span, .order-config-tile-label) {
  font-size: 16px;
  font-weight: 500;
  color: var(--oc-ink) !important;
}

#multistepModal.order-config-design:not(#\9) :is(.order-type-choice button, a.order-config-tile) svg {
  filter: none;
}

#multistepModal.order-config-design:not(#\9) :is(.order-type-choice button, a.order-config-tile) svg :is(path, circle, rect, ellipse, polygon):not([fill="none"]) {
  fill: var(--oc-brand) !important;
}

/* the choice already made: the applied type, the draft's type, Branch or day (aria-pressed / aria-current) */
#multistepModal.order-config-design:not(#\9) :is(.order-type-choice button[aria-pressed="true"], a.order-config-tile[aria-pressed="true"], a[aria-current="true"]) {
  border-color: var(--oc-brand) !important;
  box-shadow: 0 0 0 1.5px var(--oc-brand), var(--oc-card-shadow) !important;
}

/* ─────────── Stage indicator (Eden's outlined brand circle; a passed stage filled) ─────────── */

#multistepModal.order-config-design:not(#\9) .order-config-stages li > :is(button, span) {
  color: rgba(22, 36, 44, .5);
  font-size: 13px;
}

#multistepModal.order-config-design:not(#\9) .order-config-stage-number {
  width: 30px;
  height: 30px;
  border: 0;
  box-shadow: inset 0 0 0 1.5px rgba(22, 36, 44, .2);
  font-size: 14px;
  font-weight: 600;
}

#multistepModal.order-config-design:not(#\9) .order-config-stages li.is-done > :is(button, span) {
  color: var(--oc-brand);
}

#multistepModal.order-config-design:not(#\9) .order-config-stages li.is-done .order-config-stage-number {
  background: var(--oc-brand);
  color: var(--oc-on-brand);
  box-shadow: none;
}

#multistepModal.order-config-design:not(#\9) .order-config-stages li.is-current > span {
  color: var(--oc-ink);
  font-weight: 600;
}

#multistepModal.order-config-design:not(#\9) .order-config-stages li.is-current .order-config-stage-number {
  background: #fff;
  color: var(--oc-brand);
  box-shadow: inset 0 0 0 1.75px var(--oc-brand);
}

/* ─────────── «חזור» (Eden's back pill) ─────────── */

#multistepModal.order-config-design:not(#\9) .order-config-back .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-block: 8px;
  padding-inline: 15px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 0 0 1px rgba(22, 36, 44, .11);
  color: var(--oc-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

#multistepModal.order-config-design:not(#\9) .order-config-back .btn::after {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .26s var(--oc-ease);
}

html[dir="ltr"] #multistepModal.order-config-design:not(#\9) .order-config-back .btn::after {
  transform: scaleX(-1);
}

#multistepModal.order-config-design:not(#\9) .order-config-back .btn:hover {
  background: rgba(255, 255, 255, .74);
  box-shadow: inset 0 0 0 1px rgba(22, 36, 44, .18);
  color: var(--oc-ink);
}

#multistepModal.order-config-design:not(#\9) .order-config-back .btn:hover::after {
  transform: translateX(-3px);
}

/* ─────────── Main actions: «לתשלום», «אישור», «בחר» (Eden .auth-cta / the dialog's brand button) ─────────── */

#multistepModal.order-config-design:not(#\9) :is([data-order-config-checkout] .btn, .order-config-confirm-actions .btn-primary, .order-config-address-button, .region_select .btn) {
  min-height: 52px;
  padding: 10px 28px;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--oc-brand) !important;
  color: var(--oc-on-brand) !important;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.014em;
  box-shadow: 0 2px 8px -3px color-mix(in srgb, var(--oc-secondary) 45%, transparent);
  transition: transform .24s var(--oc-ease), background-color .24s, box-shadow .24s;
}

#multistepModal.order-config-design:not(#\9) :is([data-order-config-checkout] .btn, .order-config-confirm-actions .btn-primary, .order-config-address-button:not(:disabled), .region_select .btn):hover {
  transform: translateY(-2px);
  background: var(--oc-brand-hover) !important;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--oc-secondary) 50%, transparent);
}

#multistepModal.order-config-design:not(#\9) .order-config-address-button:disabled {
  opacity: .45;
}

#multistepModal.order-config-design:not(#\9) .order-config-cart-warning {
  font-weight: 500;
}

/* ─────────── The address step (Eden's delivery row: a radius-16 field, the map at radius 20) ─────────── */

#multistepModal.order-config-design:not(#\9) :is(.order-config-address-input, gmp-place-autocomplete) {
  min-height: 52px;
  border: 0 !important;
  border-radius: 16px;
  background: #fff;
  color: var(--oc-ink);
  color-scheme: light;
  box-shadow: inset 0 0 0 1px var(--oc-line), 0 1px 2px color-mix(in srgb, var(--oc-secondary) 5%, transparent);
  font-size: 17px;
}

#multistepModal.order-config-design:not(#\9) #map,
#multistepModal.order-config-design:not(#\9) .map_wrapper {
  border-radius: 20px;
  overflow: hidden;
}

/* saved addresses (Eden .addr-saved) and the new-address card (Eden's brand «+», soft here) */
#multistepModal.order-config-design:not(#\9) a.order-config-address {
  min-height: 62px !important;
  border: 1px solid rgba(22, 36, 44, .05);
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--oc-ink);
  box-shadow: var(--oc-card-shadow);
  font-size: 16px;
  font-weight: 500;
  transition: transform .26s var(--oc-ease), box-shadow .26s var(--oc-ease);
}

#multistepModal.order-config-design:not(#\9) a.order-config-address:hover {
  transform: translateY(-2px);
  box-shadow: var(--oc-card-shadow-hover);
}

#multistepModal.order-config-design:not(#\9) .order-config-new-address-tile {
  border-radius: 16px !important;
  background: var(--oc-brand-soft) !important;
  color: var(--oc-brand) !important;
  box-shadow: none;
  font-weight: 600;
}

/* the region list (no map) */
#multistepModal.order-config-design:not(#\9) .order-config-region-select {
  min-height: 52px;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: inset 0 0 0 1px var(--oc-line);
  font-size: 17px;
}

/* ─────────── The days (Eden .slot: rows with the outlined brand circle, no column titles) ─────────── */

#multistepModal.order-config-design:not(#\9) .catering_days .titles {
  display: none;
}

#multistepModal.order-config-design:not(#\9) .catering_days a.order-config-day {
  position: relative;
  align-items: center;
  min-height: 64px;
  margin-block: 0 10px;
  padding-inline-end: 56px;
  border: 1px solid rgba(22, 36, 44, .05);
  border-radius: 20px;
  background: #fff;
  color: var(--oc-ink);
  box-shadow: var(--oc-card-shadow);
  transition: transform .24s var(--oc-ease), box-shadow .24s, border-color .24s;
}

#multistepModal.order-config-design:not(#\9) .catering_days a.order-config-day:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--oc-brand) 28%, transparent);
  box-shadow: var(--oc-card-shadow-hover);
}

#multistepModal.order-config-design:not(#\9) .catering_days a.order-config-day .col-4 {
  padding-block: 0 !important;
  border-color: rgba(20, 35, 40, .12) !important;
  font-size: 16px;
  color: rgba(22, 36, 44, .84);
}

#multistepModal.order-config-design:not(#\9) .catering_days a.order-config-day .col-4:first-child {
  font-size: 18px;
  font-weight: 600;
  color: var(--oc-ink);
}

#multistepModal.order-config-design:not(#\9) .catering_days a.order-config-day .col-4:last-child {
  font-size: 17px;
  font-weight: 500;
  color: var(--oc-ink);
  font-variant-numeric: tabular-nums;
}

/* the round control at the row's end (Eden .slot-act): an outlined brand circle and a brand chevron,
   the circle filled and the chevron white on hover */
#multistepModal.order-config-design:not(#\9) .catering_days a.order-config-day::before,
#multistepModal.order-config-design:not(#\9) .catering_days a.order-config-day::after {
  content: "";
  position: absolute;
  top: 50%;
  border-radius: 999px;
  transition: background-color .24s;
}

#multistepModal.order-config-design:not(#\9) .catering_days a.order-config-day::before {
  inset-inline-end: 12px;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  background: #fff;
  box-shadow: inset 0 0 0 1.75px var(--oc-brand);
}

#multistepModal.order-config-design:not(#\9) .catering_days a.order-config-day::after {
  inset-inline-end: 22px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: var(--oc-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[dir="ltr"] #multistepModal.order-config-design:not(#\9) .catering_days a.order-config-day::after {
  transform: scaleX(-1);
}

#multistepModal.order-config-design:not(#\9) .catering_days a.order-config-day:hover::before {
  background: var(--oc-brand);
}

#multistepModal.order-config-design:not(#\9) .catering_days a.order-config-day:hover::after {
  background: var(--oc-on-brand);
}

/* ─────────── Log in / register (Eden's fields and action; the tabs become a pill switch) ─────────── */

#multistepModal.order-config-design:not(#\9) #auth_dialog .nav-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 auto 18px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--oc-secondary) 7%, transparent);
}

#multistepModal.order-config-design:not(#\9) #auth_dialog {
  text-align: center;
}

#multistepModal.order-config-design:not(#\9) #auth_dialog .nav-tabs .nav-link {
  margin: 0;
  padding: 8px 18px;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--oc-ink-2) !important;
  font-size: 15px;
  font-weight: 500;
}

#multistepModal.order-config-design:not(#\9) #auth_dialog .nav-tabs .nav-link.active {
  background: #fff !important;
  color: var(--oc-ink) !important;
  font-weight: 600;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--oc-secondary) 18%, transparent);
}

#multistepModal.order-config-design:not(#\9) #auth_dialog .tab-content {
  text-align: start;
}

#multistepModal.order-config-design:not(#\9) #auth_dialog input:is([type="tel"], [type="text"], [type="email"], [type="password"], [type="date"], [type="number"]) {
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding-inline: 18px;
  border: 0 !important;
  border-radius: 14px !important;
  background: #fff;
  color: var(--oc-ink);
  box-shadow: inset 0 0 0 1px var(--oc-line), 0 1px 2px color-mix(in srgb, var(--oc-secondary) 5%, transparent);
  font-size: 17px;
  text-align: start;
  transition: box-shadow .22s;
}

#multistepModal.order-config-design:not(#\9) #auth_dialog input:is([type="tel"], [type="text"], [type="email"], [type="password"], [type="date"], [type="number"]):focus {
  outline: 0;
  box-shadow: inset 0 0 0 1px var(--oc-line), 0 4px 10px -4px color-mix(in srgb, var(--oc-secondary) 20%, transparent),
              0 14px 30px -12px color-mix(in srgb, var(--oc-brand) 55%, transparent);
}

#multistepModal.order-config-design:not(#\9) #auth_dialog input::placeholder {
  color: rgba(22, 36, 44, .5);
  opacity: 1;
}

#multistepModal.order-config-design:not(#\9) #auth_dialog input[type="submit"] {
  width: 100%;
  min-height: 56px;
  margin: 8px 0 0;
  border: 0;
  border-radius: 14px;
  background: var(--oc-brand);
  color: var(--oc-on-brand);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.014em;
  box-shadow: 0 2px 8px -3px color-mix(in srgb, var(--oc-secondary) 45%, transparent);
  transition: transform .24s var(--oc-ease), background-color .24s, box-shadow .24s;
}

#multistepModal.order-config-design:not(#\9) #auth_dialog input[type="submit"]:hover {
  transform: translateY(-2px);
  background: var(--oc-brand-hover);
}

#multistepModal.order-config-design:not(#\9) #auth_dialog a:not(.nav-link) {
  color: var(--oc-ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─────────── The loading spinner in the brand colour ─────────── */

#multistepModal.order-config-design:not(#\9) .order-config-spinner-wheel {
  border-color: var(--oc-brand) !important;
}

@media (prefers-reduced-motion: reduce) {
  #multistepModal.order-config-design:not(#\9) * {
    transition: none !important;
  }
}
