/* Unified DPC order form. Loaded after dpc-ui.css and reuses its geometry tokens. */
:root {
  --dpc-order-bg: #0b0f16;
  --dpc-order-surface: #111722;
  --dpc-order-field: #070a0f;
  --dpc-order-border: rgba(255, 255, 255, .14);
  --dpc-order-border-strong: rgba(103, 232, 249, .58);
  --dpc-order-text: #f8fafc;
  --dpc-order-muted: #a7b0c2;
  --dpc-order-subtle: #7f8aa1;
  --dpc-order-accent: #22d3ee;
  --dpc-order-danger: #fca5a5;
  --dpc-order-success: #6ee7b7;
}

body.dpc-order-open {
  overflow: hidden !important;
}

.dpc-order[hidden] {
  display: none !important;
}

.dpc-order {
  position: fixed;
  inset: 0;
  z-index: 100100;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(2, 5, 9, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dpc-order,
.dpc-order * {
  box-sizing: border-box;
}

.dpc-order__dialog {
  width: min(100%, 780px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--dpc-order-text);
  background: var(--dpc-order-bg);
  border: 1px solid var(--dpc-order-border);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .68), 0 0 0 1px rgba(34, 211, 238, .05);
  font-family: inherit;
}

.dpc-order__header {
  position: relative;
  flex: 0 0 auto;
  padding: 22px 72px 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.dpc-order__eyebrow {
  margin: 0 0 6px;
  color: var(--dpc-order-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dpc-order__title {
  margin: 0;
  color: var(--dpc-order-text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

.dpc-order__description {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--dpc-order-muted);
  font-size: 16px;
  line-height: 1.5;
}

.dpc-order__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: var(--dpc-control-compact, 44px);
  height: var(--dpc-control-compact, 44px);
  padding: 0;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--dpc-order-border);
  border-radius: var(--dpc-control-radius-compact, 10px);
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.dpc-order__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
}

.dpc-order__close svg {
  width: var(--dpc-icon-standard, 18px);
  height: var(--dpc-icon-standard, 18px);
}

.dpc-order__scroll {
  min-height: 0;
  padding: 20px 24px 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.dpc-order__product {
  margin: 0 0 20px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: center;
  background: rgba(34, 211, 238, .055);
  border: 1px solid rgba(34, 211, 238, .2);
  border-radius: var(--dpc-control-radius-standard, 14px);
}

.dpc-order__product-label {
  margin: 0 0 3px;
  color: var(--dpc-order-subtle);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dpc-order__product-name {
  min-width: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dpc-order__product-price {
  color: var(--dpc-order-accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.dpc-order__form {
  margin: 0;
}

.dpc-order__section {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.dpc-order__section--nested {
  margin-bottom: 0;
}

.dpc-order__legend,
.dpc-order__section-title {
  margin: 0 0 12px;
  padding: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.dpc-order__required-note {
  color: var(--dpc-order-subtle);
  font-size: 13px;
  font-weight: 500;
}

.dpc-order__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--dpc-gap-standard, 12px);
}

.dpc-order__field {
  min-width: 0;
}

.dpc-order__field--full {
  grid-column: 1 / -1;
}

.dpc-order__label {
  margin: 0 0 7px;
  display: block;
  color: #e8edf6;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.dpc-order__optional {
  color: var(--dpc-order-subtle);
  font-weight: 500;
}

.dpc-order__control {
  width: 100%;
  min-width: 0;
  min-height: var(--dpc-control-standard, 52px);
  padding: 13px var(--dpc-control-pad-compact, 16px);
  color: #fff;
  background: var(--dpc-order-field);
  border: 1px solid var(--dpc-order-border);
  border-radius: var(--dpc-control-radius-standard, 14px);
  outline: none;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

textarea.dpc-order__control {
  min-height: 88px;
  resize: vertical;
}

select.dpc-order__control {
  color-scheme: dark;
}

.dpc-order__control::placeholder {
  color: #69748a;
  opacity: 1;
}

.dpc-order__control:hover {
  border-color: rgba(255, 255, 255, .24);
}

.dpc-order__control[aria-invalid="true"] {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .12);
}

.dpc-order__hint {
  margin: 6px 0 0;
  color: var(--dpc-order-subtle);
  font-size: 13px;
  line-height: 1.45;
}

.dpc-order__error {
  min-height: 0;
  margin: 6px 0 0;
  color: var(--dpc-order-danger);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.dpc-order__error:empty {
  display: none;
}

.dpc-order__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--dpc-gap-compact, 8px);
}

.dpc-order__choice,
.dpc-order__fulfillment {
  position: relative;
  min-width: 0;
}

.dpc-order__choice input,
.dpc-order__fulfillment input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dpc-order__choice-label {
  min-height: var(--dpc-control-standard, 52px);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7d0df;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--dpc-order-border);
  border-radius: var(--dpc-control-radius-standard, 14px);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.dpc-order__choice input:checked + .dpc-order__choice-label {
  color: #041015;
  background: var(--dpc-order-accent);
  border-color: var(--dpc-order-accent);
}

.dpc-order__fulfillment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--dpc-gap-standard, 12px);
}

.dpc-order__fulfillment-label {
  min-height: 118px;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  color: #dce3ee;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--dpc-order-border);
  border-radius: var(--dpc-control-radius-standard, 14px);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dpc-order__fulfillment-label:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .26);
}

.dpc-order__fulfillment input:checked + .dpc-order__fulfillment-label {
  background: rgba(34, 211, 238, .09);
  border-color: var(--dpc-order-border-strong);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .16);
}

.dpc-order__fulfillment-name {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.dpc-order__fulfillment-note {
  color: var(--dpc-order-subtle);
  font-size: 13px;
  line-height: 1.35;
}

.dpc-order__free {
  margin-top: auto;
  padding: 3px 8px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(110, 231, 183, .26);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.dpc-order__delivery-panel {
  margin: 12px 0 0;
  padding: 16px;
  background: var(--dpc-order-surface);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--dpc-control-radius-standard, 14px);
}

.dpc-order__delivery-panel[hidden] {
  display: none !important;
}

.dpc-order__pickup-address {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.5;
}

.dpc-order__delivery-copy {
  margin: 7px 0 0;
  color: var(--dpc-order-muted);
  font-size: 14px;
  line-height: 1.45;
}

.dpc-order__consent {
  position: relative;
  min-height: var(--dpc-control-compact, 44px);
  margin: 0;
  padding: 4px 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--dpc-order-muted);
  font-size: 13px;
  line-height: 1.5;
}

.dpc-order__consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--dpc-order-accent);
}

.dpc-order__consent a {
  color: #67e8f9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dpc-order__summary {
  margin: 0 0 14px;
  padding: 12px 14px;
  color: #fecaca;
  background: rgba(127, 29, 29, .2);
  border: 1px solid rgba(248, 113, 113, .36);
  border-radius: var(--dpc-control-radius-compact, 10px);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.dpc-order__summary[hidden] {
  display: none !important;
}

.dpc-order__actions {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin: 0;
  padding: 14px 24px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--dpc-order-line);
  background: linear-gradient(to bottom, rgba(11, 15, 22, .86), var(--dpc-order-bg) 22%);
}

.dpc-order__actions[hidden] {
  display: none !important;
}

.dpc-order__submit {
  width: 100%;
  min-height: var(--dpc-control-standard, 52px);
  padding: 12px var(--dpc-control-pad-standard, 20px);
  color: #031014;
  background: var(--dpc-order-accent);
  border: 1px solid var(--dpc-order-accent);
  border-radius: var(--dpc-control-radius-standard, 14px);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(34, 211, 238, .18);
  transition: background-color .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease;
}

.dpc-order__submit:hover {
  background: #67e8f9;
  border-color: #67e8f9;
}

.dpc-order__submit:active {
  transform: translateY(1px);
}

.dpc-order__submit:disabled {
  opacity: .56;
  cursor: not-allowed;
}

.dpc-order__status {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--dpc-order-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.dpc-order__success {
  padding: 28px 0 38px;
  text-align: left;
}

.dpc-order__success[hidden] {
  display: none !important;
}

.dpc-order__success-mark {
  width: var(--dpc-control-large, 60px);
  height: var(--dpc-control-large, 60px);
  margin: 0 0 18px;
  display: grid;
  place-items: center;
  color: #032016;
  background: var(--dpc-order-success);
  border-radius: var(--dpc-control-radius-large, 16px);
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 900;
}

.dpc-order__success h3 {
  margin: 0 0 9px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.dpc-order__success p {
  max-width: 560px;
  margin: 0;
  color: var(--dpc-order-muted);
  font-size: 16px;
  line-height: 1.55;
}

.dpc-order__confirm {
  margin: 0 24px 20px;
  padding: 14px;
  color: #f8fafc;
  background: #171d28;
  border: 1px solid rgba(251, 191, 36, .34);
  border-radius: var(--dpc-control-radius-standard, 14px);
}

.dpc-order__confirm[hidden] {
  display: none !important;
}

.dpc-order__confirm p {
  margin: 0 0 12px;
  color: #d8dee9;
  font-size: 14px;
  line-height: 1.45;
}

.dpc-order__confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--dpc-gap-compact, 8px);
}

.dpc-order__confirm button {
  min-height: var(--dpc-control-compact, 44px);
  padding: 9px 14px;
  border-radius: var(--dpc-control-radius-compact, 10px);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.dpc-order__confirm-cancel {
  color: #031014;
  background: var(--dpc-order-accent);
  border: 1px solid var(--dpc-order-accent);
}

.dpc-order__confirm-close {
  color: #e2e8f0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
}

.dpc-order :focus-visible {
  outline: 3px solid var(--dpc-focus-ring, #67e8f9);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .dpc-order {
    align-items: end;
    padding: 0;
  }

  .dpc-order__dialog {
    width: 100%;
    max-height: 100dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
  }

  .dpc-order__header {
    padding: 18px 66px 15px 16px;
  }

  .dpc-order__close {
    top: 14px;
    right: 14px;
  }

  .dpc-order__description {
    font-size: 15px;
  }

  .dpc-order__scroll {
    padding: 16px 16px 0;
  }

  .dpc-order__product {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 14px;
  }

  .dpc-order__product-price {
    font-size: 18px;
  }

  .dpc-order__grid,
  .dpc-order__fulfillment-grid {
    grid-template-columns: 1fr;
  }

  .dpc-order__fulfillment-label {
    min-height: var(--dpc-control-large, 60px);
    padding: 12px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    align-items: center;
  }

  .dpc-order__fulfillment-note {
    grid-column: 1;
  }

  .dpc-order__free {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }

  .dpc-order__actions {
    padding-right: 16px;
    padding-left: 16px;
  }

  .dpc-order__confirm {
    margin-right: 16px;
    margin-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dpc-order *,
  .dpc-order *::before,
  .dpc-order *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
