/* checkout.css — the checkout page (V15, lane 2), from the canvas's "Checkout · phone" and "Checkout · computer".
   Phone first: one column — the bag, you, where I message you, shipping, a code and a note, the total. On a computer
   the bag and the total ride a column on the right that stays in view. Glass panels only (no blur: nothing floats);
   inputs are 16 px (iOS zooms into anything smaller); every tap target is 44 px or more. */

#checkout { padding-top: 6px; padding-bottom: 8px; }
#checkout [hidden] { display: none !important; }
#checkout h1 { margin-top: 2px; }
#checkout h2 { font-size: 28px; }
.co-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.co-back .icon { width: 20px; height: 20px; }

/* Small words: hints, notes under the button */
.co-small { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-dim); }
.co-center { text-align: center; }
.co-label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.co-opt { font-weight: 400; color: var(--ink-dim); }
.co-lede { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.co-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.co-err { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: var(--accent); }
.co-err:empty { display: none; }
.co-err a { color: inherit; font-weight: 600; }

/* A note at the top: a cancel, a card gone, a checkout that went through */
.co-notice { margin: 12px 0 0; padding: 14px 18px; border-radius: 22px; font-size: 16px; line-height: 1.45; }

/* ── The layout ── a phone: one column, in the canvas's order */
.co-grid { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.co-main, .co-side { display: contents; }
.co-bag { order: 0; }
.co-you { order: 1; }
.co-reach { order: 2; }
.co-ship { order: 3; }
.co-extras { order: 4; }
.co-total { order: 5; }
#checkout .panel { border-radius: 28px; padding: 18px 18px 20px; }

/* ── Boxes ── her glass, a soft line, 16 px type */
.field {
  display: block; width: 100%; min-height: 50px; padding: 0 16px; border-radius: 16px;
  border: 1px solid var(--field-line); background: #fff; font-size: 16px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
textarea.field { min-height: 78px; padding: 12px 16px; line-height: 1.45; resize: vertical; }
select.field {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233A2A30' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field::placeholder { color: var(--ink-dim); opacity: 1; }   /* an example is still words to read: 7:1 on white (at .8 it was 4.0) */
.field:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.co-row { display: flex; gap: 8px; }
.co-row .field { flex: 1; min-width: 0; }
.co-apply { flex: none; min-height: 50px; padding: 0 18px; border-radius: 16px; }
.co-tabs { margin-top: 12px; }
.co-tabs button { min-height: 44px; padding: 0 8px; }

/* A tick box: the box itself 22 px, the whole line the tap target */
.co-tick { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 15px; line-height: 1.45; }
.co-tick input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ink); cursor: pointer; }

/* ── The bag ── */
.co-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-head .arrow-link { font-size: 15px; }
.co-bag-note { margin: 8px 0 4px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.45; }
.co-lines { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.co-line { display: flex; align-items: center; gap: 12px; }
.co-line-card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.co-pc { flex: none; width: 52px; }
.co-line-words { min-width: 0; display: flex; flex-direction: column; }
.co-line-words .name { font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.co-line-words .co-small { margin: 2px 0 0; overflow-wrap: anywhere; }
.co-line-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.co-line-end .price { font-size: 21px; line-height: 1.1; }
.co-remove { min-height: 36px; font-size: 14px; font-weight: 500; color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; }
.co-line-end .co-remove { padding: 0; min-height: 44px; }
.co-later { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(168, 70, 106, .16); }
.co-later .co-label { margin-top: 0; }
.co-later .co-lines { opacity: .7; }

/* ── You ── */
.co-me { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.co-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #fff, var(--blush)); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(160, 72, 104, .15);
}
.co-avatar .icon { width: 22px; height: 22px; }
.co-me-words { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-me-words strong { font-size: 16px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-me-words .co-small { margin: 0; }
.co-me .co-link { flex: none; font-size: 14px; }
.co-signin { margin-top: 14px; width: 100%; }
/* A guest's panel: what shipping costs as plain rows (never boxes: nothing here is pressed, Stripe's page asks), the
   way to an account as one quiet line, the handle as a link */
.co-guest-ship { margin: 12px 0 0; display: grid; grid-template-columns: 1fr auto; row-gap: 8px; font-size: 16px; }
.co-guest-ship:empty { display: none; }
.co-guest-ship dt { display: flex; flex-direction: column; color: var(--ink); }
.co-guest-ship dt span { font-size: 14px; line-height: 1.4; color: var(--ink-dim); }
.co-guest-ship dd { margin: 0; padding-left: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.co-guest-in { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(168, 70, 106, .16); font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.co-guest-in a { display: inline-block; padding: 6px 0; color: var(--accent); font-weight: 600; text-underline-offset: 2px; }
.co-add { text-decoration: underline; text-underline-offset: 3px; }
.co-reach-line { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-soft); overflow-wrap: anywhere; }
/* the link in the sentence: 44 px tall and wider than its word (a thumb's target), without pushing the lines apart */
.co-reach-line .co-link { display: inline-block; min-height: 0; margin: -11px 0 -11px 0; padding: 11px 10px 11px 6px; text-decoration: underline; text-underline-offset: 3px; }
.co-you .co-mail { margin-top: 2px; padding-bottom: 0; }

/* ── Shipping ── */
.co-ship .co-label#to-label { margin-top: 12px; margin-bottom: 0; }
.co-more .co-label { margin-top: 12px; }
.co-abroad { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .7); }
.co-abroad p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.co-abroad .btn { width: 100%; }
.co-options { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.co-options:empty { display: none; }
.co-opt-card {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-height: 56px; border-radius: 18px;
  background: rgba(255, 255, 255, .6); border: 1px solid #fff; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.co-opt-card.co-info { cursor: default; }
.co-opt-card:has(input:checked) { background: #fff; border: 2px solid var(--ink); padding: 12px 13px; }
.co-opt-card input {
  flex: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; border: 2px solid rgba(168, 70, 106, .35); background: #fff;
  -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-width .15s var(--ease);
}
.co-opt-card input:checked { border: 7px solid var(--ink); }
.co-opt-card input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.co-opt-words { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-opt-words strong { font-size: 16px; font-weight: 600; }
.co-opt-words span { font-size: 14px; line-height: 1.4; color: var(--ink-dim); }
.co-opt-price { flex: none; font-size: 16px; font-weight: 600; }
.co-ship > .co-small { margin-top: 12px; }

/* ── Shipping abroad: a request (V17) ── the mock's screen 1. "Shipping" (what a request is, her usual prices there)
   comes before "Where can I message you?"; a white box, as the mock draws it */
.co-grid.co-request .co-ship { order: 2; }
.co-grid.co-request .co-reach { order: 3; }
.co-abroad.co-ask { background: #fff; border: 1px solid rgba(149, 57, 91, .2); }
.co-abroad.co-ask .co-ask-title { font-size: 21px; font-weight: 500; line-height: 1.2; }
.co-abroad.co-ask p { margin: 8px 0 0; }
.co-abroad.co-ask .co-label { margin: 14px 0 0; }
.co-abroad.co-ask .co-small { margin-top: 12px; font-size: 14px; }
.co-ask-prices { margin: 6px 0 0; display: grid; grid-template-columns: 1fr auto; font-size: 16px; }
.co-ask-prices dt, .co-ask-prices dd { padding: 10px 0; border-top: 1px solid rgba(149, 57, 91, .14); }
.co-ask-prices dt { display: flex; flex-direction: column; color: var(--ink); }
.co-ask-prices dt span { font-size: 14px; line-height: 1.4; color: var(--ink-dim); }
.co-ask-prices dd { margin: 0; padding-left: 12px; text-align: right; font-size: 17px; }
.co-sum .co-soft { color: var(--ink-dim); }
.co-sum .co-plus { font-family: var(--text); font-size: 16px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.co-req-note { margin-top: 10px; }

/* ── A code and a note ── */
.co-extras .co-code .co-label, .co-extras > .co-note:first-child .co-label { margin-top: 0; }
.co-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 4px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .8); border: 1px solid #fff; font-weight: 600;
}
.co-applied .co-link { padding: 0 12px; font-size: 14px; }

/* ── The total ── */
.co-sum { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 8px; column-gap: 0; font-size: 16px; }
.co-sum dt { color: var(--ink-soft); }
.co-sum dd { margin: 0; padding-left: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.co-sum .co-saving { color: var(--accent); }
.co-sum .co-total-label, .co-sum .co-total-value { padding-top: 10px; border-top: 1px solid rgba(168, 70, 106, .16); }
.co-sum .co-total-label { display: flex; align-items: flex-end; padding-bottom: 4px; font-weight: 600; color: var(--ink); }
.co-sum .co-total-value { font-size: 30px; line-height: 1.1; }
.co-lost { margin-top: 14px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .7); }
.co-pay { margin-top: 12px; min-height: 56px; font-size: 17px; }
.co-pay .icon { width: 18px; height: 18px; stroke-width: 2; }
/* Waiting, the button still says what it waits for ("Pick where it ships"): its own muted colour, 5:1 under its words,
   never the whole button faded (at .45 the words read 2.6:1 — V17). */
.co-pay:disabled { background: #75686E; cursor: default; transform: none; }
.co-pay[aria-busy="true"] { background: var(--ink); opacity: .75; }
.co-rule { margin: 12px 2px 0; }
.co-rule a { color: var(--accent); font-weight: 600; text-underline-offset: 2px; }
.co-pay-err { text-align: center; }
.co-why { margin: 8px 0 0; font-size: 15px; line-height: 1.45; text-align: center; color: var(--ink-soft); }
.co-why:empty { display: none; }
.co-total .co-small { margin-top: 10px; }
/* The ways to pay: small ticks under the button (the tick is drawn, so a screen reader reads only the name). */
.co-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.35; color: var(--ink-soft); }
.co-ways li { display: flex; align-items: center; gap: 5px; }
.co-ways li[hidden] { display: none; }
.co-ways li::before { content: ""; flex: none; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2395395B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.co-signed { margin: 10px 0 0; font-size: 15px; line-height: 1.45; text-align: center; color: var(--ink); font-weight: 600; }
.co-signed:empty { display: none; }
.co-signed-ship { display: block; font-weight: 400; color: var(--ink-soft); }
.co-signed-ship .co-link { margin-left: 4px; text-decoration: underline; text-underline-offset: 2px; }

/* ── Signing in right here ── a guest refused while guest checkout is busy (signin-inline.js): the server's sentence,
   then the email box and the code, in a soft box under the button (as "Guest checkout ships to US addresses" sits) */
.co-inline { margin-top: 12px; padding: 14px 16px 4px; border-radius: 18px; background: rgba(255, 255, 255, .7); }
.co-inline .co-inline-say { margin: 0 0 2px; }
.co-inline .co-label { margin-top: 12px; }
.co-inline .si-here-lede { margin: 10px 0 0; font-size: 15px; color: var(--ink-soft); overflow-wrap: anywhere; }
.co-inline .si-here-lede strong { color: var(--ink); font-weight: 600; }
.co-inline .btn-block { margin-top: 12px; }
.co-inline .co-err.ok { color: var(--ink-soft); }
.co-inline .field.co-code-in { min-height: 60px; text-align: center; font-size: 28px; font-weight: 600; letter-spacing: .45em; padding: 0 0 0 .45em; }
.co-inline [aria-disabled="true"] { cursor: progress; }
.co-inline .btn[aria-disabled="true"] { opacity: .8; }
.co-inline-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; margin-top: 2px; }
.co-inline .co-inline-more { margin: 2px 0 0; border-top: 1px solid rgba(168, 70, 106, .16); text-align: center; }

/* ── Coming back, and an empty bag ── */
.co-return, .co-empty { margin-top: 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 22px 26px; }
.co-return img, .co-empty img { height: auto; }
.co-return h2, .co-empty h2 { font-size: 32px; outline: none; }
.co-return-body { max-width: 34em; }
.co-return-body p { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.co-return-actions { margin-top: 10px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.co-return-actions .btn { width: 100%; }
.co-empty .hint { margin: 0 0 8px; }

/* ── A computer ── the canvas's 7 : 5, the bag and the total on the right */
@media (min-width: 900px) {
  #checkout { padding-top: 14px; }
  #checkout h2 { font-size: 30px; }
  .co-grid { margin-top: 22px; display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; }
  .co-main, .co-side { display: flex; flex-direction: column; gap: 16px; }
  .co-side { position: sticky; top: 92px; }
  #checkout .panel { padding: 22px 26px 24px; }
  .co-reach .co-tabs { max-width: 360px; }
  .co-ship .co-tabs { max-width: 440px; }
  .co-more { max-width: 440px; }
  .co-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start; }
  .co-extras .co-label { margin-top: 0; }
  .co-extras textarea.field { min-height: 50px; }
  .co-signin { width: auto; min-width: 220px; }
  .co-pc { width: 58px; }
  .co-return, .co-empty { max-width: 640px; margin-left: auto; margin-right: auto; padding: 40px 48px 36px; }
  .co-return-actions { flex-direction: row; justify-content: center; }
  .co-return-actions .btn { width: auto; }
}
