/* The licence page's checkout (license.js) and the thanks page: who the licence is for, then PayPal's own buttons. */
.checkout-section { padding-top: 8px; }
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.checkout-form, .checkout-pay { display: grid; gap: 16px; padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: rgba(13, 22, 48, .6); }
.checkout-form h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.checkout-form .eyebrow { margin-bottom: .8rem; }
.checkout-form .fine { margin-top: -4px; }
.checkout-pay { border-color: rgba(34, 211, 238, .5); box-shadow: 0 0 70px -28px rgba(34, 211, 238, .65);
  background: linear-gradient(180deg, rgba(13, 22, 48, .9), rgba(10, 16, 36, .9)); }
.checkout-sum { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.checkout-sum .price { font-size: clamp(2.2rem, 3.6vw, 2.8rem); }
.checkout-pay .fine { margin-top: 0; }
.checkout-pay .fine a, .check a { color: #c7d2fe; }
.opt { margin-left: 6px; font-weight: 400; font-size: .82rem; color: var(--dim); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .95rem; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--cyan); }
.field input[aria-invalid="true"] { border-color: #fca5a5; }
.check input[aria-invalid="true"] { outline: 2px solid #fca5a5; outline-offset: 2px; }

/* PayPal draws its button in a frame of its own. Its frame is light: with the page's dark color-scheme around it, the
   browser would paint it an opaque white backdrop instead of clear. */
.pp-buttons { display: flex; flex-direction: column; gap: 12px; min-height: 48px; color-scheme: light; }
.checkout-pay .form-status:empty { display: none; }

/* shown while the service runs on PayPal's sandbox */
.test-mode { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; flex-basis: 100%; margin: 0;
  padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(253, 230, 138, .3);
  background: rgba(253, 230, 138, .06); color: #f5e6b0; font-size: .86rem; line-height: 1.45; }
.test-mode b { font: 500 .72rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fde68a; }
.test-mode[hidden] { display: none; }
.page-hero .test-mode { width: fit-content; max-width: 62ch; margin-top: 1.2rem; }

.order-ref { margin-top: 1.4rem; color: var(--muted); }
.order-ref code { font-size: 1rem; color: var(--text); letter-spacing: .04em; }

@media (max-width: 820px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout-form, .checkout-pay { padding: 22px; }
}

/* three licences side by side: Personal, Indie and Business (site.css lines up their rows) */
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan .usd { margin: 6px 0 0; color: var(--dim); font-size: .9rem; }
.plans-currency { margin-top: 18px; }
.boxes.three { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; margin-top: 2rem; }
.box-p { color: var(--muted); font-size: .97rem; }
.box-link { margin: 14px 0 0; }
.box-link a { color: #c7d2fe; }
.checkout-switch { margin: 10px 0 0; }
.wf-switch-plan { padding: 0; border: 0; background: none; color: #c7d2fe; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 980px) {
  .plans, .boxes.three { grid-template-columns: minmax(0, 1fr); }
}
