/* Glacier Hollow checkout page (checkout.html, checkout.js) */

.co-section { padding-top: 32px; }
.co-section h2 { font-size: 1.5rem; outline: none; }

/* Lift tickets / Lessons switch */
.co-modes { display: inline-flex; background: var(--ice); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.co-mode {
  font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--muted);
  padding: 8px 20px; border-radius: 999px; cursor: pointer;
}
.co-mode[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(11, 37, 69, .12); }

/* Step indicator */
.co-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: step; }
.co-steps li {
  flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted);
  padding-top: 10px; border-top: 4px solid #dde6ef; font-size: .95rem;
}
.co-steps li::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #dde6ef; color: var(--muted); font-size: .8rem; flex: none;
}
.co-steps li.done { border-top-color: var(--blue); color: var(--navy); }
.co-steps li.done::before { content: "✓"; background: var(--blue); color: #fff; }
.co-steps li.current { border-top-color: var(--blue); color: var(--navy); }
.co-steps li.current::before { background: var(--navy); color: #fff; }

.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.co-form { min-width: 0; }

/* Option cards (tickets, lesson type) */
.co-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.co-option { position: relative; cursor: pointer; }
.co-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.co-option-body {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  border: 2px solid #dde6ef; border-radius: var(--radius); padding: 18px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.co-option:hover .co-option-body { border-color: #b3c7dc; }
.co-option input:checked + .co-option-body { border-color: var(--blue); box-shadow: 0 8px 24px rgba(21, 101, 192, .14); }
.co-option input:focus-visible + .co-option-body { outline: 3px solid rgba(21, 101, 192, .35); outline-offset: 2px; }
.co-option-price { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.co-option-price small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.co-shake { animation: co-shake .35s; }
@keyframes co-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.co-season-note { background: var(--ice); border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
#start-date { max-width: 260px; }

/* Counters */
.co-counters { display: flex; flex-direction: column; border: 1px solid #dde6ef; border-radius: var(--radius); background: #fff; }
.co-counter { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.co-counter + .co-counter { border-top: 1px solid #e6edf4; }
.co-counter-label { display: flex; flex-direction: column; font-weight: 600; line-height: 1.35; }
.co-counter-label small { font-weight: 400; }
.co-stepper { display: flex; align-items: center; gap: 10px; flex: none; }
.co-stepper button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #c9d6e3; background: #fff;
  font-size: 1.2rem; line-height: 1; color: var(--blue); cursor: pointer;
}
.co-stepper button:hover:not(:disabled) { background: var(--ice); }
.co-stepper button:disabled { color: #b8c4d0; cursor: default; }
.co-stepper output { min-width: 1.5em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-rentals { margin-top: 20px; }
.co-rentals summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.co-rentals > p { margin: 4px 0 10px; }

/* Summary */
.co-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 18px; }
.co-facts dt { color: var(--muted); }
.co-facts dd { margin: 0; overflow-wrap: anywhere; }
.co-lines { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.co-lines td, .co-lines th { padding: 8px 0; border-bottom: 1px solid #e6edf4; text-align: left; vertical-align: top; }
.co-lines td:last-child, .co-lines th:last-child { text-align: right; padding-left: 12px; white-space: nowrap; }
.co-lines tfoot th { border-bottom: 0; font-size: 1.1rem; color: var(--navy); }

.co-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.co-nav .btn:only-child, .co-nav [hidden] + .btn { margin-left: auto; }

/* Running total */
.co-total {
  position: sticky; top: 90px;
  border: 1px solid #dde6ef; border-radius: var(--radius); padding: 20px; background: #fff;
  box-shadow: 0 8px 24px rgba(11, 37, 69, .06);
}
.co-total h3 { margin: 0 0 8px; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.co-total p { margin: 0 0 10px; }
.co-total .co-lines { margin: 0; font-size: .92rem; }
.co-total-big { font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.co-total-big small { font-size: .9rem; font-weight: 400; color: var(--muted); }

/* Confirmation */
.co-done { max-width: 620px; margin: 0 auto; text-align: center; outline: none; }
.co-done-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: #e3f4e5; color: var(--green); font-size: 2rem; font-weight: 700;
}
.co-done #done-summary { text-align: left; margin: 24px 0; border: 1px solid #dde6ef; border-radius: var(--radius); padding: 20px 20px 0; }
.co-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 860px) {
  .co-layout { grid-template-columns: 1fr; }
  .co-total { position: static; }
}
@media (max-width: 560px) {
  .co-row { grid-template-columns: 1fr; }
  .co-steps li { font-size: 0; gap: 0; }   /* numbers only on small phones */
  .co-steps li.current { font-size: .9rem; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .co-shake { animation: none; }
}
