/* Production customer steps (contact, delivery incl. free partner-school delivery, the order summary with the
   terms notice, payment, order status, the delivery-address dialog when a school withdraws). Uses style.css tokens. */
.ptt-choices{display:grid;gap:10px;margin:0 0 18px}
.ptt-choice{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:10px;background:white;padding:14px 16px;cursor:pointer}
.ptt-choice input{accent-color:var(--forest);width:18px;height:18px;flex-shrink:0}
.ptt-choice span{display:grid;gap:2px;flex:1}.ptt-choice small{color:var(--muted);font-size:12px}
.ptt-choice em{font-style:normal;font-weight:700;color:var(--forest)}
.ptt-choice.selected,.ptt-choice:has(input:checked){border-color:var(--forest);box-shadow:0 0 0 1px var(--forest)}
.ptt-choices.invalid .ptt-choice{border-color:var(--error)}
[data-ptt-locker],[data-ptt-door]{margin-bottom:18px}
.ptt-total{display:grid;grid-template-columns:1fr auto;gap:8px 16px;margin:18px 0 6px;padding:16px 0 0;border-top:1px solid var(--line);font-size:14px}
.ptt-total dt{color:var(--muted)}.ptt-total dd{margin:0;text-align:right}
.field.ptt-code input{max-width:190px;font-size:22px!important;letter-spacing:.35em;text-align:center}
.check-row.invalid span{color:var(--error)}
.ptt-dialog{border:0;padding:0;background:transparent;max-width:min(460px,calc(100vw - 32px));width:100%}
.ptt-dialog::backdrop{background:rgba(16,50,41,.45)}
.header-end [data-ptt-open-resume]{justify-self:end;min-height:30px;padding:4px 0;font-size:11px}
.ptt-choice.disabled{opacity:.6;cursor:not-allowed}.ptt-choice.disabled em{color:var(--muted)}
[data-ptt-school]{margin-bottom:18px}[data-ptt-school] .hint{margin-top:8px}
/* The delivery-address dialog after a partner school withdrew (the emailed one-time link). */
.ptt-dialog.ptt-address-dialog{max-width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}
[data-ptt-home-door],[data-ptt-home-locker]{margin-bottom:6px}
/* Order summary before payment and its Terms and Refunds notice (30 Sep 2026): conspicuous, plain words. */
.ptt-destination{font-size:13px;line-height:1.6;margin:14px 0 0;overflow-wrap:anywhere}
.ptt-terms{border:2px solid var(--gold);border-radius:10px;background:#fff8e6;padding:16px 18px 4px;margin:24px 0 6px}
.ptt-terms h3{font-size:18px;margin:0 0 8px}
.ptt-terms ul{margin:0;padding-left:19px;font-size:13px;line-height:1.6}.ptt-terms li{margin:5px 0}
.ptt-terms .check-row{font-size:13px;font-weight:700;margin:14px 0}.ptt-terms .check-row a{color:var(--forest)}
@media(max-width:650px){.ptt-choice{padding:12px}.ptt-total{font-size:13px}.ptt-terms{padding:14px 14px 2px}}
/* Extra copies of the same book at checkout (30 Sep 2026). */
.ptt-copies{margin:4px 0 0}.ptt-copies select{max-width:200px}.ptt-copies .hint{margin-top:2px}
/* Delivery lookups (2 Oct 2026): the locker search and Google address suggestions; the typed fields stay below. */
.ptt-search-row{display:flex;gap:8px}.ptt-search-row input{flex:1;min-width:0}.ptt-search-row .button{flex-shrink:0}
.ptt-locker-results{margin:8px 0 14px}.ptt-locker-results:empty{display:none}
.ptt-locker-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;max-height:300px;overflow:auto}
.ptt-locker-option{display:grid;gap:2px;width:100%;text-align:left;border:1px solid var(--line);border-radius:10px;background:white;padding:10px 12px;cursor:pointer;font:inherit;color:inherit}
.ptt-locker-option small{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.ptt-locker-option:hover,.ptt-locker-option.selected{border-color:var(--forest);box-shadow:0 0 0 1px var(--forest)}
[data-ptt-locker-finder]{color:var(--forest);white-space:nowrap}
.ptt-places gmp-place-autocomplete{display:block;width:100%}.ptt-places .hint{margin-top:6px}
/* A giveaway winner's prize pass (11 Oct 2026). */
.ptt-prize{margin:0 0 16px;padding:12px 14px;border:1px solid var(--gold);border-radius:10px;background:var(--sage);color:var(--ink);font-size:14px;line-height:1.5}
/* The payday special (27 Oct 2026): "Payday special (usually R1,500)" under the printed book's price, in the deepened gold. */
.ptt-offer-note{display:block;margin-top:2px;font-size:12px;line-height:1.4;font-weight:600;color:#866629}
/* The code screen (13 Oct 2026): who sent the code, a way to fix the address, and where to look when it isn't in the inbox. */
.ptt-sent{font-size:14px;line-height:1.6;color:var(--ink);margin:0 0 6px;overflow-wrap:anywhere}
.ptt-sent-change{margin-bottom:16px}.ptt-sent-change .subtle-link{font-size:14px;min-height:24px}
.ptt-tip{background:var(--sage);color:var(--forest);border-radius:9px;padding:12px 14px;font-size:13px;line-height:1.55;margin:0 0 18px}
.ptt-tip p{margin:0}.ptt-tip p+p{margin-top:6px}
.button[aria-disabled="true"]{opacity:.6;cursor:not-allowed}
.ptt-resend-status{margin-top:12px;font-size:12px}.ptt-resend-status:empty{display:none}
/* The last step on top (14 Oct 2026): after the characters are approved, a phone's first screen shows the delivery
   choice, the running total and the next button; the "brief saved" confirmation is one line above them. */
.brief-ready{display:flex;gap:8px;align-items:baseline;margin:0 0 14px;padding:9px 13px;border-radius:9px;background:var(--sage);color:var(--forest);font-size:13px;line-height:1.45}
.brief-ready span{font-weight:700}
#book-studio>.panel:first-child{margin-top:0}
.brief-saved h3{margin:0 0 6px}.brief-saved .panel{margin-top:14px}
.ptt-price-line{font-size:14px;line-height:1.5;margin:-4px 0 14px}
.ptt-where{margin:-6px 0 18px}
/* The running total and the next button stay at the bottom of the screen while the delivery step is in view. */
.ptt-paybar{position:sticky;bottom:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--white);
  margin:16px -25px -25px;padding:12px 25px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);
  border-radius:0 0 var(--radius) var(--radius);box-shadow:0 -8px 16px -10px rgba(16,50,41,.3)}
.ptt-running{display:grid;grid-template-columns:auto 1fr;column-gap:6px;align-items:baseline;min-width:0;margin:0;line-height:1.25}
.ptt-running span{font-size:12px;color:var(--muted)}.ptt-running strong{font-size:17px;color:var(--forest)}
.ptt-running small{grid-column:1/-1;font-size:11px;color:var(--muted)}
.ptt-paybar .button{flex-shrink:0}
@media(max-width:650px){
  [data-production-delivery] .chapter-label{margin:0 0 6px}
  [data-production-delivery] h2{font-size:23px;margin-bottom:6px}
  .ptt-price-line{font-size:13px;margin:0 0 12px}
  .ptt-choices{gap:7px;margin-bottom:14px}
  /* Price on the title's row, the description under both: the whole width for the words. */
  [data-production-delivery] .ptt-choice{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:11px;row-gap:1px;padding:9px 12px}
  [data-production-delivery] .ptt-choice span{display:contents}
  [data-production-delivery] .ptt-choice input{grid-row:1/3}
  [data-production-delivery] .ptt-choice strong{grid-column:2;font-size:14px;line-height:1.3}
  [data-production-delivery] .ptt-choice em{grid-column:3;grid-row:1;font-size:14px;white-space:nowrap}
  [data-production-delivery] .ptt-choice small{grid-column:2/4;font-size:11px;line-height:1.35}
  /* The six-step row gives way to "LAST STEP" here (Chrome 105+, Safari 15.4+; older browsers keep it). */
  .workspace:has([data-brief-ready]) .journey nav{display:none}
  .brief-ready{font-size:12px;padding:7px 12px;margin-bottom:10px}
  .ptt-paybar{margin:14px -20px -20px;padding:10px 20px calc(10px + env(safe-area-inset-bottom))}
  .ptt-running strong{font-size:16px}.ptt-paybar .button{padding:11px 14px}
  /* Typing an address with the keyboard open: the bar steps back into the page so it never covers the field. */
  [data-production-delivery]:has(.field :focus) .ptt-paybar{position:static;box-shadow:none}
}
/* Delivery codes (23 Oct 2026): the quiet link, the code box, the applied line and the code's own option. */
.ptt-code-link{margin:-8px 0 16px}
.ptt-code-link button{border:0;background:none;color:var(--forest);text-decoration:underline;font-size:12px;padding:0;cursor:pointer}
.ptt-code-box{border:1px dashed #bac8b4;border-radius:10px;background:var(--paper);padding:14px 16px;margin:-6px 0 18px}
.ptt-code-row{display:flex;gap:10px;align-items:flex-end}
.ptt-code-row .field{flex:1;min-width:0}
.ptt-code-row .field input{text-transform:uppercase;letter-spacing:.6px}
.ptt-code-applied{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;margin:-6px 0 14px;color:var(--forest)}
.ptt-code-applied strong{letter-spacing:.6px}
.ptt-code-applied button{border:0;background:none;color:var(--muted);text-decoration:underline;font-size:11px;padding:0;cursor:pointer}
.ptt-choice.code-option.selected,.ptt-choice.code-option:has(input:checked){background:#fbfaf3}
/* The code's own words a shade darker than the muted grey, so they pass WCAG AA contrast on the cream card. */
.ptt-choice.code-option small,.ptt-code-applied button,.ptt-code-box .hint,[data-ptt-code-area] .hint,[data-ptt-code-handover],[data-ptt-code-area] .optional{color:#5f6a62}

/* A partner school's link (23 Oct 2026): the calm banner above the delivery step. */
.ptt-school-banner{display:flex;gap:10px;align-items:flex-start;border:1px solid #cfdcc9;background:#f3f7f0;border-radius:10px;padding:10px 12px;margin:0 0 14px;font-size:13px;color:var(--forest)}
.ptt-school-banner b{font-weight:700}.ptt-school-banner svg{flex:0 0 auto;margin-top:1px}
.ptt-school-closed{margin:0 0 14px;color:var(--ink);font-size:13px}
