/* Order page: layout on top of the TENA light theme (body.page tokens). */

.order-hero { padding-bottom: 20px; }
.order-hero .lead { max-width: 640px; }

.order-section { padding-top: 10px; }
.order-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px;
  align-items: start; max-width: 1180px;
}
.order-main { display: grid; gap: 20px; min-width: 0; }

.order-step {
  margin: 0; min-width: 0; padding: 26px 26px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-1);
}
.order-step legend {
  float: left; width: 100%; display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px; padding: 0;
  font: 700 18px/1.2 'Space Grotesk', sans-serif; color: var(--heading);
}
.order-step legend + * { clear: both; }
.step-no {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 700 13px/1 'Inter', sans-serif;
}
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* product choices */
.product-group + .product-group { margin-top: 18px; }
.group-head {
  margin-bottom: 8px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.product-option {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 16px 18px; margin-bottom: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.product-option:hover { border-color: var(--accent-dim); }
.product-option.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.product-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.po-body { display: grid; gap: 3px; min-width: 0; }
.po-name { font-weight: 700; color: var(--heading); font-size: 15px; }
.po-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.po-price { font: 700 20px/1 'Space Grotesk', sans-serif; color: var(--heading); white-space: nowrap; text-align: right; }
.po-price small { display: block; margin-top: 4px; font: 500 11px/1 'Inter', sans-serif; color: var(--muted); }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.qty-row label { font-weight: 600; color: var(--heading); font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty-btn { width: 40px; height: 40px; border: 0; background: #f3f8f4; color: var(--heading); font-size: 18px; cursor: pointer; }
.qty-btn:hover { background: var(--accent-soft); color: var(--accent); }
.qty input { width: 56px; height: 40px; border: 0; text-align: center; font: 600 15px 'Inter', sans-serif; color: var(--heading); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* the pilot-form field styles come from tena.css; tighten spacing here */
.order-step.pilot-form .field { margin-bottom: 12px; }
.order-step.pilot-form .form-row { margin-bottom: 0; }

.field-error { display: none; margin: 4px 0 0; font-size: 13px; color: var(--clay); }
.field-error.show { display: block; }

/* summary */
.order-summary {
  position: sticky; top: 96px; padding: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-2);
}
.sum-head { margin-bottom: 16px; font: 700 18px/1.2 'Space Grotesk', sans-serif; color: var(--heading); }
.sum-line, .sum-total { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; color: var(--text); }
.sum-line span:last-child { white-space: nowrap; }
.sum-total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font: 700 22px/1.2 'Space Grotesk', sans-serif; color: var(--heading); }
.sum-note { margin: 6px 0 16px; font-size: 12.5px; color: var(--muted); }
.terms { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text); cursor: pointer; }
.terms input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.order-submit { width: 100%; justify-content: center; margin-top: 16px; }
.order-submit:disabled { opacity: .6; cursor: wait; }
.pay-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.pay-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--accent); }
.order-summary .form-status { margin-top: 12px; }

.order-after { margin-top: 40px; }

@media (max-width: 980px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}
@media (max-width: 560px) {
  .order-step { padding: 20px 16px 16px; }
  .product-option { grid-template-columns: auto 1fr; }
  .po-price { grid-column: 2; }
}
