/* The booking journey: /cart, /summary and /thank-you. Uses the home page colours, fonts and buttons from home.css. */
.co { background: var(--hp-soft); padding-bottom: 72px; }
.co [hidden] { display: none !important; }
.co h2 { font-size: 22px; line-height: 1.25; }
.co h3 { font-size: 17px; line-height: 1.3; }
.co p { margin: 0; }

/* Top band and steps */
.co-top { position: relative; background: #0b3a24; padding: 28px 0 24px; margin-bottom: 28px; }
.co-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--hp-yellow), var(--hp-green) 50%, #111); }
.co .co-top h1 { color: #fff; font-size: 32px; line-height: 1.15; }
.co-steps { list-style: none; display: flex; gap: 8px; margin: 20px 0 0; padding: 0; }
.co-steps li { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 9px; font-family: var(--hp-head); font-size: 14px; font-weight: 500; color: #a9c9b7; }
.co-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; min-width: 8px; background: rgba(255, 255, 255, .2); }
.co-steps__n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; border: 2px solid rgba(255, 255, 255, .35); }
.co-steps__t { white-space: nowrap; }
.co-steps li.active { color: #fff; font-weight: 600; }
.co-steps li.active .co-steps__n { background: var(--hp-yellow); border-color: var(--hp-yellow); color: #111; }
.co-steps li:has(~ .active) { color: #d5ebdf; }
.co-steps li:has(~ .active) .co-steps__n { background: var(--hp-green); border-color: var(--hp-green); }
.co-steps li:has(~ .active)::after { background: var(--hp-green); }

/* Layout */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.co-side { position: sticky; top: 112px; }

/* Basket lines */
.co-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; background: #fff; border: 1px solid var(--hp-line); border-left: 6px solid var(--hp-green); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--hp-shadow); }
.co-item--yellow { border-left-color: var(--hp-yellow-600); }
.co-item--black { border-left-color: #111; }
.co-item--bundle { border-left-color: #111; }
.co-tag { display: inline-block; margin-bottom: 8px !important; padding: 3px 10px; border-radius: 999px; background: #111; color: var(--hp-yellow); font-family: var(--hp-head); font-size: 12px; font-weight: 600; }
.co-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; color: var(--hp-muted); font-size: 15px; }
.co-facts li { display: inline-flex; align-items: center; gap: 6px; }
.co .co-facts .hp-i { width: 16px; height: 16px; color: var(--hp-green); }
.co-bundle { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.co-bundle li { display: flex; gap: 8px; align-items: flex-start; font-size: 16px; color: var(--hp-ink); }
.co-bundle .hp-i { width: 18px; height: 18px; margin-top: 3px; flex: none; color: var(--hp-green); }
.co-bundle strong { font-weight: 600; }
.co-bundle small { display: block; font-size: 14px; color: var(--hp-muted); }
.co-qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; }
.co-qty__label { margin-right: 8px; font-weight: 600; color: var(--hp-ink); }
.co-qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hp-line); background: #fff; color: var(--hp-green-700); font-size: 18px; line-height: 1; cursor: pointer; transition: background-color .2s, border-color .2s; }
.co-qty button:hover { background: var(--hp-green-50); border-color: var(--hp-green); }
.co-qty .digitJS { min-width: 30px; text-align: center; font-family: var(--hp-head); font-weight: 600; color: var(--hp-ink); }
.co-item__side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.co-price { font-family: var(--hp-head); font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--hp-ink); white-space: nowrap; }
.co-price__vat { font-size: 14px; color: var(--hp-muted); }
.co-price__was { margin-top: 4px !important; font-size: 14px; color: var(--hp-muted); }
.co-remove { margin-top: auto; padding: 8px 0 0; background: none; border: 0; color: var(--hp-muted); font-size: 14px; text-decoration: underline; cursor: pointer; }
.co-remove:hover { color: #b3261e; }
.co-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.co-back { padding: 0; background: none; border: 0; color: var(--hp-green-700); font-size: 16px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.co .hp-btn:disabled { opacity: .6; cursor: wait; }

.co-alert { margin-bottom: 14px !important; padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #8c1d18; font-weight: 600; }

/* Forms */
.co-form { display: none; background: #fff; border: 1px solid var(--hp-line); border-radius: 16px; padding: 26px; box-shadow: var(--hp-shadow); }
.co-form.open { display: block; animation: co-in .3s ease-out; }
@keyframes co-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.co-form__lead { margin-top: 4px !important; color: var(--hp-muted); }
.co-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.co-field--full { grid-column: 1 / -1; }
.co-field label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 15px; color: var(--hp-ink); }
.co .co-field input, .co .co-field select { width: 100%; height: 46px; padding: 8px 12px; border: 1px solid #a9b8af; border-radius: 10px; background: #fff; color: var(--hp-ink); font: inherit; font-size: 16px; box-shadow: none; }
.co .co-field input:focus, .co .co-field select:focus { outline: none; border-color: var(--hp-green); box-shadow: 0 0 0 3px var(--hp-green-50); }
.co .input-group { position: static; display: block; width: auto; margin: 0; }
.co .input-group.error input, .co .input-group.error select { border-color: #b3261e; }
.co-field-err, .co .co-err { margin-top: 5px !important; color: #b3261e; font-size: 14px; font-weight: 600; }

/* Phone: code, prefix and number in one row; the real value is in the hidden field */
.co .phonecode-field { display: flex; align-items: center; gap: 6px; position: static; width: 100%; height: auto; padding: 0; margin: 0; border: 0; background: none; }
.co .co-field .phonecode-field select { flex: 0 0 76px; width: 76px; padding: 8px 4px; }
.co .phonecode-field span.prefix { position: static; flex: none; width: auto; height: auto; padding: 0 2px; background: none; border: 0; color: var(--hp-ink); font-size: 16px; }
.co .co-field .phonecode-field input.telephone { flex: 1; min-width: 0; width: auto; }
.co .phonecode-field .hidden-field { display: none; }

/* Payment choice */
.co-pay { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px !important; }
.co-pay__opt { margin: 0; cursor: pointer; }
.co-pay__opt input { position: absolute; opacity: 0; }
.co-pay__opt span { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 10px 14px; border: 2px solid var(--hp-line); border-radius: 12px; font-weight: 600; color: var(--hp-ink); transition: border-color .2s, background-color .2s; }
.co-pay__opt input:checked + span { border-color: var(--hp-green); background: var(--hp-green-50); }
.co-pay__opt input:focus-visible + span { outline: 3px solid var(--hp-blue); outline-offset: 2px; }
.co-pay__opt .hp-i { color: var(--hp-green); }

/* Consents */
.co-consents { display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hp-line); }
.co-check { display: flex; gap: 10px; align-items: flex-start; }
.co .co-check input { flex: none; position: static; width: 20px; height: 20px; margin: 2px 0 0; opacity: 1; appearance: auto; accent-color: var(--hp-green); }
.co .co-check label { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.4; color: var(--hp-text); cursor: pointer; }
.co .co-check label::before, .co .co-check label::after { content: none; }
.co-legal { font-size: 14px; color: var(--hp-muted); }
.co-legal a, .co-check a { color: var(--hp-green-700); text-decoration: underline; }
.co-course { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--hp-green-50); font-size: 15px; }
.co-course h4 { margin: 0 0 2px; font-size: 16px; }
.co-course ul { margin: 4px 0 0; padding-left: 18px; }
.co .headingJS { margin-top: 18px; }
.co-same { margin-top: 8px; }

/* Summary panel */
.co-sum { background: #fff; border: 1px solid var(--hp-line); border-radius: 16px; padding: 22px; box-shadow: var(--hp-shadow); }
.co-sum__lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 15px; color: var(--hp-text); }
.co-sum__nums { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--hp-line); display: grid; gap: 6px; }
.co-sum__nums > div { display: flex; justify-content: space-between; gap: 12px; }
.co-sum__nums dt { font-weight: 400; color: var(--hp-muted); }
.co-sum__nums dd { margin: 0; color: var(--hp-ink); }
.co .co-sum__total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--hp-line); }
.co .co-sum__total dt, .co .co-sum__total dd { font-family: var(--hp-head); font-size: 20px; font-weight: 700; color: var(--hp-ink); }
.co-sum__note, .co-sum__how { margin-top: 8px !important; font-size: 14px; color: var(--hp-muted); }
.co-sum .co-check { margin-top: 14px; }
.co-pay-btn { width: 100%; margin-top: 14px; }
.co-help { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hp-line); font-size: 15px; }
.co-help__pay { display: flex; gap: 8px; align-items: flex-start; color: var(--hp-text); }
.co-help__pay .hp-i { width: 18px; height: 18px; margin-top: 2px; flex: none; color: var(--hp-green); }
.co-cards { display: flex; gap: 8px; margin-top: 10px; }
.co-cards img { width: 44px; height: 28px; object-fit: contain; border: 1px solid var(--hp-line); border-radius: 6px; padding: 2px; background: #fff; }
.co-help__talk { margin-top: 14px; display: grid; gap: 4px; }
.co-help__q { font-weight: 600; color: var(--hp-ink); }
.co-help__talk a { display: inline-flex; align-items: center; gap: 7px; color: var(--hp-green-700); font-weight: 600; }
.co-help__talk .hp-i { width: 16px; height: 16px; }

/* Review */
.co-card { background: #fff; border: 1px solid var(--hp-line); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--hp-shadow); overflow-wrap: anywhere; }
.co-card h2 { margin-bottom: 8px; font-size: 19px; }
.co-review { padding: 12px 0; border-top: 1px solid var(--hp-line); }
.co-review:first-of-type { border-top: 0; padding-top: 4px; }
.co-review__meta { color: var(--hp-muted); font-size: 15px; }
.co-review__addons { margin: 4px 0 0; padding-left: 18px; font-size: 15px; }
.co-review__who { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px !important; font-size: 15px; }
.co-review__who .hp-i { width: 16px; height: 16px; margin-top: 3px; flex: none; color: var(--hp-green); }
.co-review__who strong { color: var(--hp-ink); font-weight: 600; }
.co-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.co-change a { color: var(--hp-green-700); font-weight: 600; text-decoration: underline; }

/* Empty basket and thank-you */
.co-empty { max-width: 640px; padding: 32px 0 16px; font-size: 18px; }
.co-empty__go, .co-done__go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.co-done { max-width: 640px; margin: 48px auto 0; padding: 40px 32px; background: #fff; border: 1px solid var(--hp-line); border-radius: 20px; box-shadow: var(--hp-shadow); text-align: center; }
.co-done__mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--hp-green); color: #fff; }
.co-done__mark .hp-i { width: 30px; height: 30px; }
.co-done--declined .co-done__mark, .co-done--unknown .co-done__mark { background: var(--hp-yellow); color: #111; }
.co .co-done h1 { font-size: 28px; line-height: 1.2; }
.co-done p { margin-top: 10px !important; font-size: 18px; }
.co-done__go { justify-content: center; }

@media (max-width: 960px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .co-side { position: static; }
  .co-steps__t { display: none; }
  .co-steps li.active .co-steps__t { display: inline; }
  .co-steps li.active { flex: 0 0 auto; }
}
@media (max-width: 600px) {
  .co { padding-bottom: 48px; }
  .co-top { padding: 20px 0 18px; margin-bottom: 18px; }
  .co .co-top h1 { font-size: 26px; }
  .co-item { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .co-item__side { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 4px 8px; text-align: left; padding-top: 12px; border-top: 1px solid var(--hp-line); }
  .co-remove { margin: 0 0 0 auto; padding: 0; }
  .co-form { padding: 18px; }
  .co-fields, .co-two { grid-template-columns: minmax(0, 1fr); }
  .co-actions { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .co-actions .hp-btn { width: 100%; }
  .co-done { margin-top: 24px; padding: 28px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .co-form.open { animation: none; }
}
