.cart-dialog.is-request-flow {
  width: min(100%, 573px);
  max-height: min(90dvh, 920px);
  margin: auto auto 0;
  border-radius: 30px 30px 0 0;
}

.cart-dialog.is-request-flow .checkout-panel {
  display: grid;
  max-height: min(90dvh, 920px);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 18px 20px max(18px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.request-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--pistachio);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.request-heading-actions {
  display: flex;
  align-items: center;
}

.request-close {
  min-width: 0;
  padding-inline: 12px;
}

.request-order-summary {
  display: grid;
  border: 1px solid rgb(99 37 45 / 12%);
  border-radius: 14px;
  background: rgb(255 255 255 / 25%);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
}

.request-order-summary[hidden] {
  display: none;
}

.request-summary-toggle {
  display: grid;
  width: 100%;
  min-height: 42px;
  grid-template-columns: 16px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--burgundy);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.request-summary-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.request-summary-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgb(99 37 45 / 8%);
  color: rgb(99 37 45 / 72%);
  font-size: 10px;
  font-weight: 800;
}

.request-summary-total {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
}

.request-summary-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 180ms ease;
}

.request-order-summary.is-open .request-summary-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.request-summary-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 220ms ease,
    opacity 160ms ease;
}

.request-order-summary.is-open .request-summary-details {
  grid-template-rows: 1fr;
  opacity: 1;
}

.request-summary-details-inner {
  min-height: 0;
  overflow: hidden;
}

.request-summary-items {
  display: grid;
  gap: 8px;
  margin: 0 12px 10px;
  padding: 10px 0 0;
  border-top: 1px solid rgb(99 37 45 / 10%);
  list-style: none;
}

.request-summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  color: rgb(99 37 45 / 78%);
  font-size: 11px;
}

.request-summary-item span:first-child {
  overflow-wrap: anywhere;
}

.request-summary-item strong {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 750;
}

.request-form-stage,
.request-contact-stage {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgb(99 37 45 / 30%) transparent;
}

.request-contact-stage[hidden],
.request-form-stage[hidden] {
  display: none;
}

.request-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 12px;
}

.request-progress span {
  height: 4px;
  border-radius: 999px;
  background: rgb(99 37 45 / 12%);
}

.request-progress span.is-active {
  background: var(--pistachio);
}

.order-request-form {
  min-height: 0;
}

.request-step {
  display: none;
}

.request-step.is-active {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.request-hint {
  margin: 0 0 8px;
  color: rgb(99 37 45 / 68%);
  font-size: 12px;
  line-height: 1.4;
}

.request-step-title {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 6vw, 28px);
  font-weight: 500;
  line-height: 1.08;
}

.fulfillment-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid rgb(99 37 45 / 14%);
  border-radius: 18px;
  background: rgb(99 37 45 / 5%);
}

.segment-choice,
.payment-choice {
  position: relative;
  cursor: pointer;
}

.segment-choice input,
.payment-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segment-face {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  color: rgb(99 37 45 / 62%);
  font-size: 12px;
  font-weight: 800;
  transition: 160ms ease;
}

.segment-face svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.segment-choice input:checked + .segment-face {
  background: var(--butter);
  box-shadow: 0 4px 14px rgb(99 37 45 / 10%);
  color: var(--burgundy);
}

.segment-choice input:focus-visible + .segment-face,
.payment-choice input:focus-visible + .payment-choice-card {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

.segment-choice:active .segment-face,
.payment-choice:active .payment-choice-card {
  transform: scale(0.985);
}

.schedule-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.schedule-card {
  position: relative;
  display: grid;
  min-height: 84px;
  gap: 8px;
  padding: 12px 13px;
  border: 1px solid rgb(99 37 45 / 14%);
  border-radius: 18px;
  background: rgb(255 255 255 / 34%);
  cursor: pointer;
  transition: 150ms ease;
}

.schedule-card:hover,
.schedule-card:focus-within {
  border-color: rgb(99 37 45 / 34%);
  background: rgb(255 255 255 / 48%);
}

.schedule-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.schedule-card-heading > span,
.request-field-label,
.payment-group legend {
  color: var(--pistachio);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.picker-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  stroke-width: 1.8;
}

.schedule-card input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--burgundy);
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

.schedule-card input::-webkit-calendar-picker-indicator {
  width: 0;
  margin: 0;
  opacity: 0;
}

.request-fields {
  display: grid;
  gap: 9px;
}

.request-field {
  display: grid;
  gap: 6px;
}

.request-field[hidden] {
  display: none;
}

.request-field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.request-field-label small {
  color: rgb(99 37 45 / 48%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.request-field input,
.request-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgb(99 37 45 / 14%);
  border-radius: 14px;
  outline: 0;
  background: rgb(255 255 255 / 34%);
  color: var(--burgundy);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.request-field textarea {
  min-height: 62px;
}

.request-field input:focus,
.request-field textarea:focus {
  border-color: rgb(99 37 45 / 38%);
  box-shadow: 0 0 0 3px rgb(99 37 45 / 7%);
}

.request-phone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid rgb(99 37 45 / 14%);
  border-radius: 14px;
  background: rgb(255 255 255 / 34%);
}

.request-phone > span {
  padding-left: 12px;
  font-size: 14px;
  font-weight: 750;
}

.request-phone input {
  border: 0;
  background: transparent;
}

.payment-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-group + .payment-group {
  margin-top: 12px;
}

.payment-group legend {
  margin-bottom: 7px;
}

.payment-choice-card {
  display: flex;
  min-height: 46px;
  align-items: center;
  border: 1px solid rgb(99 37 45 / 14%);
  border-radius: 15px;
  background: rgb(255 255 255 / 30%);
  transition: 150ms ease;
}

.payment-choice input:checked + .payment-choice-card {
  border-color: rgb(99 37 45 / 28%);
  background: var(--butter);
  box-shadow: 0 5px 16px rgb(99 37 45 / 9%);
}

.primary-currency-card {
  min-height: 64px;
  gap: 12px;
  padding: 8px 12px;
}

.primary-currency-code {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--burgundy);
  color: var(--butter);
  font-weight: 850;
}

.primary-currency-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.primary-currency-copy strong {
  font-size: 14px;
}

.primary-currency-copy small {
  color: rgb(99 37 45 / 58%);
  font-size: 10px;
}

.currency-selection-mark {
  display: grid;
  width: 25px;
  height: 25px;
  margin-left: auto;
  place-items: center;
  border-radius: 50%;
  background: rgb(99 37 45 / 8%);
  font-size: 12px;
}

.alternative-currency-toggle {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 11px 8px 13px;
  border: 1px solid rgb(99 37 45 / 14%);
  border-radius: 15px;
  background: rgb(255 255 255 / 24%);
  color: var(--burgundy);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: 150ms ease;
}

.alternative-currency-toggle:hover,
.alternative-currency-toggle:focus-visible {
  border-color: rgb(99 37 45 / 30%);
  background: rgb(255 255 255 / 40%);
}

.alternative-currency-toggle:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

.alternative-currency-toggle:active {
  transform: scale(0.99);
}

.alternative-currency-toggle-label {
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
}

.alternative-currency-selection {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--butter);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.alternative-currency-chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.alternative-currency-toggle[aria-expanded="true"] .alternative-currency-chevron {
  transform: rotate(180deg);
}

.alternative-currency-panel {
  padding-top: 7px;
}

.alternative-currency-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.compact-currency-card {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.compact-currency-card strong {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.payment-method-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payment-method-card {
  justify-content: center;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.request-actions {
  display: grid;
  grid-template-columns: minmax(88px, 0.62fr) minmax(0, 1.38fr);
  gap: 9px;
  margin-top: 14px;
}

.request-actions.is-single {
  grid-template-columns: 1fr;
}

.request-button-primary,
.request-button-secondary {
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgb(99 37 45 / 18%);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.request-button-primary {
  background: var(--burgundy);
  color: #fff5e8;
}

.request-button-primary:disabled {
  opacity: 0.42;
  cursor: default;
}

.request-button-secondary {
  background: rgb(255 255 255 / 32%);
  color: var(--burgundy);
}

.request-contact-stage {
  display: grid;
  gap: 11px;
}

.request-contact-stage .order-preview {
  max-height: min(32dvh, 270px);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.request-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.request-contact-actions .back-to-cart {
  min-width: 0;
  padding-inline: 10px;
  font-size: 12px;
}

@media (max-width: 480px) {
  .cart-dialog.is-request-flow {
    width: 100vw;
    max-width: none;
    max-height: min(91dvh, 920px);
  }

  .cart-dialog.is-request-flow .checkout-panel {
    max-height: min(91dvh, 920px);
    padding: 16px 20px max(14px, env(safe-area-inset-bottom));
  }

  .cart-dialog.is-request-flow .cart-heading h2 {
    font-size: clamp(25px, 7.4vw, 31px);
  }
}

@media (max-width: 340px) {
  .cart-dialog.is-request-flow .checkout-panel {
    padding-inline: 16px;
  }

  .segment-face {
    gap: 6px;
    font-size: 11px;
  }

  .request-step-title {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .segment-face,
  .payment-choice-card,
  .alternative-currency-toggle,
  .alternative-currency-chevron,
  .request-summary-chevron,
  .request-summary-details {
    transition-duration: 1ms !important;
  }
}
