/* ==========================================================================
   /subscribe: the checkout, on One screen on white (2026-10-18). A functional
   purchase page: no persuasion beats, no urgency. Loaded after styles.css, on
   /subscribe/ only.

   Layout: the flow under the heading, with the whole screen beside its top
   on a computer; the flow alone on a phone. The flow is what you need, then
   the order: the receipt as hairline rows, the terms, the one field, the
   removal checkbox and the button. The questions close the page as open
   rows.
   ========================================================================== */

/* ---- The layout ---- */
.buy-layout { display: grid; gap: 40px; align-items: start; padding-bottom: var(--part-pad); }
.buy-figure { display: none; }
@media (min-width: 960px) {
  .buy-layout { grid-template-columns: 7fr 5fr; column-gap: 72px; }
  .buy-figure { display: block; }
}

/* ---- The steps ---- */
.buy-step h2 { font-size: 28px; }
.buy-step h2 + .list { margin-top: 20px; }
.buy-step--order { margin-top: 56px; }

/* ---- The order ---- */
.order-title { margin-bottom: 8px; }
.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.receipt-num { font-weight: 700; white-space: nowrap; }
.receipt-row--total { border-top: 1px solid var(--black); }
.receipt-row--total > span:first-child { font-weight: 700; white-space: nowrap; }
.receipt-total-cell { display: grid; justify-items: end; gap: 4px; text-align: right; }
#summary-total { font-size: 36px; font-weight: 700; line-height: 1.1; letter-spacing: -.015em; }
#summary-item-price[data-empty="1"] { display: none; }
#summary-total[data-empty="1"] { font-size: 17px; font-weight: 400; color: var(--grey); letter-spacing: 0; }

/* The terms, one fact per line, under the receipt: the page's one list style
   (styles.css .list, the same as "What you'll need"), with a hairline above
   so the receipt stays its own thing. Bare lines read as stray sentences
   (Allen, 2026-10-18). */
.order-points { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }

/* The email form is styles.css's .form; the label is visible on the page that takes the
   money. */
.buy-email-form { max-width: none; margin-top: 36px; }

/* The removal checkbox: a real checkbox inside its label, so the whole row is the tap target. */
.buy-ack {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 44px;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  cursor: pointer;
}
.buy-ack input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  border: 1px solid var(--black);
  border-radius: 6px;
  background: var(--white) no-repeat center / 15px 15px;
  cursor: pointer;
}
.buy-ack input:checked {
  background-color: var(--black);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}
.buy-ack input:focus-visible { outline-offset: 3px; }
.buy-ack input[aria-invalid="true"]:not(:checked) { box-shadow: 0 0 0 2px var(--black); }

/* The box and its line as one item, framed in black while the box is the thing to do (Allen,
   2026-10-19: the bold line alone went unnoticed; still never red). The frame draws in the row's
   own margins, so nothing moves when it appears or goes. */
.buy-ack-box { margin: -10px -12px; padding: 10px 12px; border-radius: 8px; }
.buy-ack-box.is-invalid { box-shadow: 0 0 0 2px var(--black); }

.buy-email-form .buy-submit { justify-self: stretch; min-height: 56px; }
.buy-note { margin-top: 16px; }

/* Sign-ups switched off: the notice stands where the form was. */
.buy-paused { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule); }
.buy-paused h3 { margin-bottom: 8px; }

/* The page's refusals, in its own voice: black and bold, never red. */
.buy-error { margin-top: 12px; font-weight: 700; }
.buy-error:empty { display: none; }
.buy-ack-error { margin-top: 12px; padding-left: 38px; }
.buy-noscript { margin-top: 16px; font-weight: 700; }

@media (forced-colors: active) {
  .buy-ack input { -webkit-appearance: auto; appearance: auto; }
}
