/*
 * Checkout embed default styles. Everything is driven by custom properties on .ck, so a page can
 * restyle the form with a few lines, e.g.
 *   .ck { --ck-accent: #0a7; --ck-accent-text: #fff; --ck-select: #123; }
 * Class names are all prefixed ck-. The card / bank fields (Stripe) read these same properties.
 *
 * The system (shared with page.css, manage.css and the emails):
 *   space   4 8 12 16 20 24 32 40 56
 *   type    11.5 label (brass caps, tracked) / 13 field label + help / 14.5 secondary / 16 body + fields / 17 prices (serif) / 26 total (serif)
 *   colour  gold = the one action and fine rules; forest = what is chosen, checked or focused;
 *           obsidian + ink = text; warm neutrals = surfaces and lines; red-brown = errors only
 *   shape   square corners, 1px lines, no shadows on controls
 */
.ck {
  --ck-accent: #C2A86C;            /* gold: the pay button, fine rules */
  --ck-accent-hover: #B89A5E;
  --ck-accent-text: #1D1F1E;
  --ck-select: #2C3F36;            /* forest: the chosen option, checked boxes, focused fields */
  --ck-select-text: #F8F6F2;
  --ck-text: #2E2C2A;
  --ck-soft: #57514B;              /* field labels, supporting copy */
  --ck-muted: #6E665E;             /* help text, placeholders */
  --ck-label: #755A26;             /* brass: small upper-case labels */
  --ck-heading: #1D1F1E;
  --ck-bg: transparent;
  --ck-surface: #F6F2E9;           /* tinted panels: summary, add-on, notes */
  --ck-field-bg: #FFFFFF;
  --ck-field-border: #9D938C;      /* fields and tick boxes (3:1 on white) */
  --ck-border: #E6E0D6;            /* hairlines */
  --ck-border-strong: #CFC7BA;     /* outlines of option cards and tabs */
  --ck-danger: #8B2F24;
  --ck-danger-bg: #F6ECE9;
  --ck-danger-focus: rgba(139, 47, 36, 0.18);
  --ck-focus: rgba(194, 168, 108, 0.5);
  --ck-radius: 0;
  --ck-gap: 32px;
  --ck-font: inherit;
  --ck-font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --ck-font-size: 16px;
  --ck-max-width: 100%;

  box-sizing: border-box;
  width: 100%;
  max-width: var(--ck-max-width);
  margin: 0 auto;
  background: var(--ck-bg);
  color: var(--ck-text);
  font-family: var(--ck-font);
  font-size: var(--ck-font-size);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  font-variant-numeric: lining-nums;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
/* A page that sets no font of its own gets the brand's sans-serif rather than the browser's default serif. */
.ck.ck--own-font { --ck-font: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif; }
.ck[data-theme="dark"] {
  --ck-select: #E9E2D3;            /* stone: on the dark ground, gold stays for the pay button alone */
  --ck-select-text: #1D1F1E;
  --ck-text: #F4F1EA;
  --ck-soft: #D5D0C5;
  --ck-muted: #B9B4A9;
  --ck-label: #C2A86C;
  --ck-heading: #F8F6F2;
  --ck-surface: rgba(248, 246, 242, 0.06);
  --ck-field-bg: #1B2420;
  --ck-field-border: #7C867F;
  --ck-border: rgba(248, 246, 242, 0.14);
  --ck-border-strong: rgba(248, 246, 242, 0.3);
  --ck-danger: #F0A596;
  --ck-danger-bg: rgba(240, 165, 150, 0.1);
  --ck-danger-focus: rgba(240, 165, 150, 0.28);
  --ck-focus: rgba(194, 168, 108, 0.45);
}
.ck *, .ck *::before, .ck *::after { box-sizing: border-box; }
.ck [hidden] { display: none !important; }
.ck p, .ck h2, .ck fieldset, .ck legend, .ck table { margin: 0; padding: 0; }
.ck fieldset { border: 0; min-width: 0; }
.ck button { font: inherit; letter-spacing: inherit; }

/* ---- Layout: sections 32px apart, each under a small brass label ---- */
.ck-form { display: flex; flex-direction: column; gap: var(--ck-gap); }
.ck-section { display: flex; flex-direction: column; gap: 12px; }
.ck-legend {
  display: block; float: left; width: 100%; margin: 0;
  font-size: 0.71875em; line-height: 1.5; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ck-label);
}
.ck-legend + * { clear: both; }
.ck-head { display: flex; flex-direction: column; gap: 8px; }
.ck-title { font-family: var(--ck-font-display); font-size: 1.625em; line-height: 1.25; font-weight: 400; letter-spacing: -0.01em; color: var(--ck-heading); text-wrap: balance; }
.ck-desc { color: var(--ck-soft); font-size: 0.9375em; line-height: 1.65; white-space: pre-line; }
.ck-small { font-size: 0.8125em; line-height: 1.5; color: var(--ck-muted); }
.ck-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ck .ck-badge {
  align-self: flex-start; margin-bottom: -12px;
  padding: 4px 9px 3px; border-radius: var(--ck-radius); white-space: nowrap;
  background: var(--ck-surface); color: var(--ck-muted); border: 1px solid var(--ck-border-strong);
  font-size: 0.65625em; line-height: 1.5; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---- Fields ---- */
.ck-grid { display: grid; gap: 14px 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.25rem), 1fr)); }
.ck-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ck-label { font-size: 0.8125em; line-height: 1.5; font-weight: 600; color: var(--ck-soft); }
.ck .ck-input {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; min-height: 50px; margin: 0;
  padding: 14px;
  font-family: inherit; font-size: max(16px, 1em); font-weight: 400; line-height: 20px; letter-spacing: normal;
  font-variant-numeric: lining-nums;
  color: var(--ck-text); background: var(--ck-field-bg);
  border: 1px solid var(--ck-field-border); border-radius: var(--ck-radius);
  box-shadow: none; outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ck .ck-input::placeholder { color: var(--ck-muted); opacity: 1; }
.ck .ck-input:focus { border-color: var(--ck-select); box-shadow: 0 0 0 1px var(--ck-select), 0 0 0 4px var(--ck-focus); }
.ck .is-invalid .ck-input, .ck .ck-input[aria-invalid="true"] { border-color: var(--ck-danger); box-shadow: inset 0 0 0 1px var(--ck-danger); }
.ck .is-invalid .ck-input:focus, .ck .ck-input[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 1px var(--ck-danger), 0 0 0 4px var(--ck-danger-focus); }
.ck .ck-input:disabled { opacity: 0.65; }
.ck-field-msg { font-size: 0.8125em; line-height: 1.5; font-weight: 600; color: var(--ck-danger); }
/* A note about a typed code ("applies to the add-ons only") is a hint, not a mistake: the form's quiet text colour. */
.ck-field-msg[data-ck-note] { font-weight: 400; color: var(--ck-soft); }
.ck-hint { font-size: 0.8125em; line-height: 1.5; color: var(--ck-muted); }
.ck-inline { display: flex; gap: 0; }
.ck-inline .ck-input { flex: 1 1 auto; min-width: 0; }
.ck-inline .ck-btn-secondary { margin-left: -1px; }
.ck-inline .ck-input:focus, .ck-inline .ck-input[aria-invalid="true"] { position: relative; z-index: 1; }

.ck .ck-linkbtn {
  display: inline; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; border-radius: var(--ck-radius);
  color: inherit; font-size: inherit; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ck-accent);
}
.ck .ck-linkbtn:hover { text-decoration-color: currentColor; }
.ck .ck-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px; flex: 0 0 auto;
  border: 1px solid var(--ck-field-border); border-radius: var(--ck-radius);
  background: var(--ck-field-bg); color: var(--ck-heading); cursor: pointer; text-decoration: none;
  font-size: 0.78125em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.ck .ck-btn-secondary:hover { border-color: var(--ck-select); background: var(--ck-surface); }
.ck .ck-btn-secondary:disabled { opacity: 0.6; cursor: default; }

/* Focus rings for everything clickable */
.ck button:focus-visible, .ck a:focus-visible, .ck summary:focus-visible, .ck .ck-terms-text:focus-visible, .ck .ck-error:focus-visible,
.ck .ck-radio:focus-visible, .ck .ck-check-input:focus-visible {
  outline: 2px solid var(--ck-select); outline-offset: 2px;
}

/* ---- Tick boxes: square, forest when chosen. A radio shows a filled square, a checkbox a tick. ---- */
.ck .ck-radio, .ck .ck-check-input {
  -webkit-appearance: none; appearance: none;
  display: inline-grid; place-content: center;
  width: 20px; height: 20px; margin: 2px 0 0; padding: 0; flex: 0 0 auto;
  border: 1px solid var(--ck-field-border); border-radius: var(--ck-radius); background: var(--ck-field-bg);
  cursor: pointer; transition: border-color 0.18s ease, background-color 0.18s ease;
}
.ck .ck-radio::before { content: ""; width: 10px; height: 10px; background: var(--ck-select); transform: scale(0); transition: transform 0.18s ease; }
.ck .ck-radio:checked { border-color: var(--ck-select); }
.ck .ck-radio:checked::before { transform: scale(1); }
.ck .ck-check-input::before {
  content: ""; width: 11px; height: 6px; margin-top: -3px;
  border-left: 2px solid var(--ck-select-text); border-bottom: 2px solid var(--ck-select-text);
  transform: rotate(-45deg) scale(0); transition: transform 0.18s ease;
}
.ck .ck-check-input:checked { background: var(--ck-select); border-color: var(--ck-select); }
.ck .ck-check-input:checked::before { transform: rotate(-45deg) scale(1); }
.ck .ck-check-input[aria-invalid="true"] { border-color: var(--ck-danger); box-shadow: inset 0 0 0 1px var(--ck-danger); }
.ck .ck-radio:disabled, .ck .ck-check-input:disabled { cursor: default; }

/* ---- Payment options ---- */
.ck-options { gap: 12px; }
.ck-opt {
  border: 1px solid var(--ck-border-strong); border-radius: var(--ck-radius); background: var(--ck-field-bg);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ck-opt:hover { border-color: var(--ck-field-border); }
.ck-opt.is-selected { border-color: var(--ck-select); box-shadow: inset 0 0 0 1px var(--ck-select); }
.ck-opt.is-disabled { opacity: 0.55; }
.ck-opt-label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; column-gap: 12px; row-gap: 2px; padding: 16px; cursor: pointer; }
.ck-opt-label > input { grid-column: 1; grid-row: 1; }
.ck-opt-body { display: contents; }
.ck-opt-name { grid-column: 2; grid-row: 1; font-size: 0.96875em; font-weight: 600; color: var(--ck-heading); overflow-wrap: anywhere; }
.ck-opt-sub { grid-column: 2 / -1; grid-row: 2; font-size: 0.84375em; line-height: 1.5; color: var(--ck-muted); }
.ck-opt-sub:empty { display: none; }
.ck-opt-price { grid-column: 3; grid-row: 1; color: var(--ck-heading); white-space: nowrap; text-align: right; }
.ck-opt-price-amt { font-family: var(--ck-font-display); font-size: 1.0625em; line-height: 1.4; }
.ck-opt-price-sub { font-size: 0.8125em; color: var(--ck-muted); }
.ck-opt-sched:empty { display: none; }
.ck-opt-sched { padding: 0 16px 12px 48px; margin-top: -6px; }

.ck-details > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: -8px 0; cursor: pointer;
  font-size: 0.8125em; font-weight: 600; color: var(--ck-soft);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ck-accent);
  list-style: none;
}
.ck-details > summary::-webkit-details-marker { display: none; }
.ck-details > summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px; flex: 0 0 auto;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.ck-details[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.ck-details[open] > summary { margin-bottom: -2px; }
.ck-table { width: 100%; border-collapse: collapse; font-size: 0.875em; margin-bottom: 8px; }
.ck-table th, .ck-table td { padding: 8px 0; border-bottom: 1px solid var(--ck-border); text-align: left; font-weight: 400; }
.ck-table th { padding-top: 4px; font-size: 0.75em; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ck-muted); }
.ck .ck-num { text-align: right; font-variant-numeric: lining-nums tabular-nums; }

/* ---- Order bump: the same card as a payment option ---- */
.ck-bump {
  border: 1px solid var(--ck-border-strong); border-radius: var(--ck-radius); background: var(--ck-field-bg);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ck-bump:hover { border-color: var(--ck-field-border); }
.ck-bump.is-checked { border-color: var(--ck-select); box-shadow: inset 0 0 0 1px var(--ck-select); }
.ck-bump-label { display: flex; align-items: flex-start; gap: 12px; padding: 16px; cursor: pointer; }
.ck-bump-body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ck-bump-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ck-bump-headline { font-size: 0.96875em; font-weight: 600; color: var(--ck-heading); }
.ck-bump-price { font-family: var(--ck-font-display); font-size: 1.0625em; line-height: 1.4; color: var(--ck-heading); white-space: nowrap; }
.ck-bump-desc { font-size: 0.875em; line-height: 1.55; color: var(--ck-soft); white-space: pre-line; }

/* ---- Discount code ---- */
.ck-code { gap: 8px; }
.ck .ck-code-toggle { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin: -16px 0; font-size: 0.84375em; color: var(--ck-soft); }
.ck .ck-code-applied .ck-linkbtn { display: inline-block; padding: 12px 0; margin: -12px 0; }
.ck-code-row { display: flex; flex-direction: column; gap: 6px; }
.ck-code-applied { font-size: 0.84375em; line-height: 1.6; color: var(--ck-soft); }

/* ---- Express buttons ---- */
.ck-express { display: flex; flex-direction: column; gap: 16px; }
.ck-express.is-pending { max-height: 0; overflow: hidden; gap: 0; margin-bottom: calc(-1 * var(--ck-gap)); }
.ck-express-el { min-height: 48px; }
.ck-divider { display: flex; align-items: center; gap: 14px; color: var(--ck-muted); font-size: 0.6875em; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ck-divider::before, .ck-divider::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--ck-border); }

/* ---- Payment method: the same card again, side by side ---- */
.ck-pay { gap: 12px; }
.ck-methods { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.ck-method {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  min-height: 54px; padding: 8px 10px; text-align: center; cursor: pointer;
  border: 1px solid var(--ck-border-strong); border-radius: var(--ck-radius); background: var(--ck-field-bg); color: var(--ck-text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ck-method .ck-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.ck-method:hover { border-color: var(--ck-field-border); }
.ck-method.is-selected { border-color: var(--ck-select); box-shadow: inset 0 0 0 1px var(--ck-select); color: var(--ck-heading); }
.ck-method:focus-within { outline: 2px solid var(--ck-select); outline-offset: 2px; }
.ck-method-name { font-size: 0.96875em; font-weight: 600; }
.ck-method-sub { font-size: 0.78125em; line-height: 1.4; color: var(--ck-muted); }
.ck-method-sub:empty { display: none; }
.ck-method-note { font-size: 0.84375em; line-height: 1.6; color: var(--ck-soft); }
.ck-pe { min-height: 0; margin-top: 4px; }

/* ---- Backup card for bank payments: a hairline panel under the bank form, in the form's own type and colours ---- */
.ck-backup { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding: 16px; border: 1px solid var(--ck-border-strong); border-radius: var(--ck-radius); background: var(--ck-surface); }
.ck-backup[hidden] { display: none; }
.ck-backup-title { margin: 0; font-size: 0.75em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ck-label); }
.ck-backup-consent { margin: 0; font-size: 0.875em; line-height: 1.6; color: var(--ck-text); }
.ck-backup-card[hidden] { display: none; }
.ck-backup-field { padding: 14px 12px; border: 1px solid var(--ck-field-border); border-radius: var(--ck-radius); background: var(--ck-field-bg); }
.ck-backup-field.StripeElement--focus { border-color: var(--ck-select); box-shadow: inset 0 0 0 1px var(--ck-select); }
.ck-backup-field.is-invalid, .ck-backup-field.StripeElement--invalid { border-color: var(--ck-danger); box-shadow: inset 0 0 0 1px var(--ck-danger); }
.ck-backup-skip { margin: 0; padding: 6px 0; }

/* ---- Terms ---- */
.ck-terms { gap: 10px; }
.ck-terms-text {
  max-height: 9.5em; overflow: auto; padding: 12px 14px; white-space: pre-line;
  font-size: 0.8125em; line-height: 1.6; color: var(--ck-soft);
  border: 1px solid var(--ck-border); border-radius: var(--ck-radius); background: var(--ck-surface);
}
.ck-check { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; margin: -10px 0; cursor: pointer; font-size: 0.875em; line-height: 1.55; color: var(--ck-soft); }
.ck-check-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.ck-terms.is-invalid .ck-check-text { color: var(--ck-danger); }

/* ---- Light formatting (bold, italic, https links, bullet lists) in the description, add-ons, terms and sections ---- */
.ck .ck-rich-p { display: block; margin: 0 0 0.6em; }
.ck .ck-rich-p:last-child { margin-bottom: 0; }
.ck .ck-rich-list { display: block; margin: 0 0 0.6em; padding: 0 0 0 1.15em; list-style: square; }
.ck .ck-rich-list:last-child { margin-bottom: 0; }
.ck .ck-rich-li { display: list-item; margin: 0 0 0.25em; list-style: inherit; }
.ck .ck-rich-li::marker { color: var(--ck-label); }
.ck-desc strong, .ck-bump-desc strong, .ck-terms strong, .ck-sec-body strong { font-weight: 600; color: var(--ck-heading); }
.ck-desc a, .ck-bump-desc a, .ck-terms a, .ck-sec-body a {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ck-accent);
}
.ck-desc a:hover, .ck-bump-desc a:hover, .ck-terms a:hover, .ck-sec-body a:hover { text-decoration-color: currentColor; }

/* ---- Sections ("What's inside", a guarantee): only with data-show-sections, under the form ---- */
.ck-sections { display: flex; flex-direction: column; gap: 12px; }
.ck-sec { padding: 16px 18px 18px; border: 1px solid var(--ck-border); border-radius: var(--ck-radius); background: var(--ck-surface); }
.ck-sec .ck-legend { float: none; margin-bottom: 6px; }
.ck-sec-body { font-size: 0.90625em; line-height: 1.6; color: var(--ck-soft); overflow-wrap: anywhere; }

/* ---- Summary: the receipt, with the total as the one large figure ---- */
.ck-summary {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 20px 18px; border-radius: var(--ck-radius); background: var(--ck-surface); border-top: 2px solid var(--ck-accent);
}
.ck-summary .ck-legend { float: none; }
.ck-sum-body { display: flex; flex-direction: column; gap: 8px; }
.ck-sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 0.90625em; }
.ck-sum-label { min-width: 0; overflow-wrap: anywhere; }
.ck-sum-value { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.ck-sum-discount, .ck-sum-bump, .ck-sum-fee { color: var(--ck-soft); }
.ck-sum-total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--ck-border-strong); font-size: 1em; font-weight: 600; color: var(--ck-heading); }
.ck-sum-total .ck-sum-value { font-family: var(--ck-font-display); font-weight: 400; font-size: 1.625em; line-height: 1.15; letter-spacing: -0.01em; }
.ck-sum-due { font-weight: 600; color: var(--ck-heading); }
.ck-sum-later { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--ck-border); color: var(--ck-soft); }
.ck-sum-later .ck-sum-row { font-size: 0.84375em; }
.ck-sum-later-head { font-size: 0.6875em; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ck-muted); }
.ck-summary .ck-details > summary { margin-top: -4px; }

/* ---- Errors and messages ---- */
.ck-error {
  padding: 12px 16px; border-radius: var(--ck-radius); font-size: 0.875em; line-height: 1.55;
  color: var(--ck-text); background: var(--ck-danger-bg); border-left: 3px solid var(--ck-danger);
}
.ck-message { color: var(--ck-text); }
.ck--message { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 8px 0; }
.ck-turnstile:empty { display: none; }

/* ---- Pay button and what sits around it ---- */
.ck-actions { display: flex; flex-direction: column; gap: 14px; }
.ck-form > .ck-terms + .ck-actions, .ck-form > .ck-summary + .ck-actions { margin-top: -8px; }
.ck-form > .ck-summary + .ck-terms { margin-top: -8px; }
.ck .ck-submit {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 58px; padding: 14px 24px; margin: 0;
  border: 0; border-radius: var(--ck-radius); cursor: pointer; box-shadow: none;
  background: var(--ck-accent); color: var(--ck-accent-text);
  font-family: inherit; font-size: 0.84375em; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.2;
  transition: background-color 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.ck .ck-submit:hover { background: var(--ck-accent-hover); transform: translateY(-1px); }
.ck .ck-submit:active { transform: translateY(0); }
.ck .ck-submit:disabled { cursor: wait; background: var(--ck-accent); transform: none; opacity: 0.8; }
.ck .ck-submit:focus-visible { outline: 2px solid var(--ck-heading); outline-offset: 3px; }
.ck-spinner {
  display: none; width: 16px; height: 16px; flex: 0 0 auto;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: ck-spin 0.7s linear infinite;
}
.ck-submit[aria-busy="true"] .ck-spinner { display: inline-block; }
@keyframes ck-spin { to { transform: rotate(360deg); } }
.ck-paypal { min-height: 48px; }
.ck--busy .ck-opt, .ck--busy .ck-bump, .ck--busy .ck-method, .ck--busy .ck-opt-label, .ck--busy .ck-bump-label, .ck--busy .ck-check { cursor: default; }

.ck-secure {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.78125em; line-height: 1.5; color: var(--ck-muted); text-align: center;
}
.ck-icon { width: 13px; height: 13px; fill: currentColor; flex: 0 0 auto; }

/* ---- Loading placeholders, shaped like the form they stand in for ---- */
.ck--loading { display: flex; flex-direction: column; gap: 10px; }
.ck-skel {
  height: 50px; border-radius: var(--ck-radius);
  background: linear-gradient(90deg, var(--ck-border) 0%, var(--ck-surface) 50%, var(--ck-border) 100%);
  background-size: 200% 100%;
  animation: ck-shimmer 1.6s ease-in-out infinite;
}
.ck-skel--short { width: 38%; height: 14px; margin-top: 10px; }
.ck-skel--short:first-child { margin-top: 0; }
.ck-skel--btn { height: 58px; margin-top: 18px; }
@keyframes ck-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---- Phones ---- */
@media (max-width: 480px) {
  .ck { --ck-gap: 28px; }
  .ck-summary { padding: 18px 16px 16px; }
  /* Name and amount on the first line; the note under them across the full width, so it never wraps beside "today" */
  .ck-opt-label { padding: 15px 14px; column-gap: 10px; }
  .ck-opt-sub { grid-column: 2 / -1; }
  .ck-opt-sched { padding: 0 14px 12px 44px; }
  .ck-bump-label { padding: 15px 14px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ck *, .ck *::before, .ck *::after { transition: none !important; animation: none !important; }
  .ck-submit[aria-busy="true"] .ck-spinner { border-right-color: currentColor; opacity: 0.6; }
}
