/* One-page checkout (src/checkout-page.js): delivery cards, summary bar on phones, sticky summary on desktop. First Press tokens from styles.css + brand.css. */
.co-wrap { max-width: 1120px; }
.co-sub { font: 600 1rem/1.3 var(--font); margin: 4px 0 10px; }
#h-method { margin-top: 8px; }
.co-check { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.co-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--forest); flex: 0 0 auto; }
#bill-fields { margin-top: 8px; }

/* delivery choice cards: radio | label + lines | price */
.co-opt { align-items: flex-start; }
.co-opt-b { flex: 1 1 auto; min-width: 0; }
.co-opt-b small + small { margin-top: 2px; }
.co-opt-p { flex: 0 0 auto; font-weight: 700; white-space: nowrap; padding-left: 8px; }
.co-opt.is-off { cursor: not-allowed; background: var(--ground); }
.co-opt.is-off strong, .co-opt.is-off .co-opt-p { color: var(--ink-2); }
.choice:has(input:focus-visible) { outline: 3px solid var(--forest); outline-offset: 2px; }
#co-options[aria-busy="true"] { opacity: .7; }
#co-options-hint { margin: 0 0 4px; }
#co-options-hint .btn { margin-left: 6px; }

/* note: collapsed behind "Add a note" */
.co-note > summary { font-family: var(--display); font-weight: 600; font-size: 1.05rem; cursor: pointer; min-height: 32px; display: flex; align-items: center; list-style-position: inside; }
.co-note[open] > summary { margin-bottom: 10px; }
.co-note > summary:focus-visible, .co-sumbar:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; border-radius: 8px; }
.co-secure { margin: 4px 0 0; }

.co-terms { text-align: center; margin: 10px 0 0; color: var(--ink-2); }
.co-terms a { color: var(--forest); }

/* summary column */
.co-line .cl-top strong { min-width: 0; overflow-wrap: anywhere; }
.co-amt { white-space: nowrap; font-weight: 700; }
.co-edit { margin: 10px 0 6px; }
.co-edit a { color: var(--forest); display: inline-flex; min-height: 44px; align-items: center; }
.co-totals .kv { font-size: .95rem; }
.co-totals .kv span { min-width: 0; }
.co-totals .co-total { font-size: 1.15rem; border-bottom: 0; }
.co-totals .co-total strong { font-family: var(--display); }
.co-totals p.muted, .co-totals .cur-note { margin: 6px 0 0; }
.co-sumbar { display: none; }

/* phones and tablets: the summary first, as a bar that opens in place */
@media (max-width: 899px) {
  .co-summary { padding: 0; }
  .co-sumbar { display: flex; width: 100%; align-items: center; gap: 10px; min-height: 56px; padding: 12px 16px; background: none; border: 0; font: 600 1rem/1.3 var(--font); color: var(--ink); cursor: pointer; text-align: left; }
  .co-sumbar-l { flex: 1 1 auto; min-width: 0; }
  .co-sumbar-t { font-family: var(--display); white-space: nowrap; }
  .co-chev { width: 10px; height: 10px; border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(45deg); margin: -4px 4px 0 2px; flex: 0 0 auto; }
  .co-sumbar[aria-expanded="true"] .co-chev { transform: rotate(-135deg); margin-top: 4px; }
  .co-sum-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .co-sumbody { padding: 0 16px 14px; }
  .co-summary.is-collapsed .co-sumbody { display: none; }
}
/* desktop: form left, sticky summary right (the summary comes first in the page for phones) */
@media (min-width: 900px) {
  .co-grid > .co-summary { grid-column: 2; grid-row: 1; }
  /* a long cart scrolls inside the summary so the totals stay in view */
  .co-summary #co-lines { max-height: calc(100vh - 380px); min-height: 120px; overflow: auto; padding-right: 4px; }
  .co-grid > .co-form { grid-column: 1; grid-row: 1; }
}
.co-event { margin: 14px 0 0; } /* the optional event date under the delivery options (src/event-date-field.js) */
#bill-fields .field[hidden] { display: none; } /* the billing region fields that do not fit the chosen country (src/billing-fields.js) */
