/* Order wizard and order page. Uses the theme variables (gift.css). */
@font-face { font-family: "Cormorant"; src: url("/fonts/Cormorant.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/Jost.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
.order-main { padding-block: 28px 64px; max-width: 980px; }
.o-step { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); min-height: 1em; margin: 0 0 6px; }
.o-h { font-size: clamp(34px, 7vw, 54px); text-transform: uppercase; margin: 0 0 18px; }
.o-h2 { font-size: 24px; text-transform: uppercase; margin: 32px 0 10px; }
.o-lede { font-size: 18px; max-width: 40em; }
.o-form label.o-l, .o-form p.o-l { display: block; font-weight: 700; margin: 18px 0 6px; }
.o-form input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file]), .o-form select, .o-form textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 12px; border: 2px solid #1C1A17; background: #fff; color: #1C1A17; border-radius: 0; }
.o-form textarea { resize: vertical; }
.o-hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.o-note { background: #fff; border-left: 4px solid var(--terracotta); padding: 10px 12px; margin: 12px 0; font-size: 15px; }
.o-err { color: #B3261E; font-weight: 700; font-size: 14px; margin: 6px 0 0; }
.o-opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.o-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 16px; }
/* the hidden attribute must win over display rules like the one above (the PDF add-on stayed visible for a PDF, Eugene 23.11) */
.order [hidden] { display: none !important; }
.o-count { margin: 4px 0 0; text-align: right; font-variant-numeric: tabular-nums; }
.o-count.is-over { color: var(--error, #B3261E); font-weight: 700; }
.o-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.o-choice { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.o-choice label { border: 2px solid #1C1A17; padding: 12px 16px; font-weight: 700; cursor: pointer; display: flex; gap: 8px; align-items: center; background: #fff; }
.o-grid2 { display: grid; gap: 24px; }
.o-grid3 { display: grid; gap: 0 12px; }
.o-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 12px; }
.o-back { font-weight: 700; }
.btn--ghost { background: transparent; color: #1C1A17; border: 2px solid #1C1A17; }
.o-preview { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.o-preview figcaption { font-size: 13px; color: var(--muted); }
.o-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.o-sw { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
.o-sw input { position: absolute; opacity: 0; }
.o-sw span { width: 44px; height: 44px; display: block; border: 2px solid transparent; outline: 2px solid transparent; }
.o-sw input:checked + span { outline-color: #1C1A17; border-color: #fff; }
.o-sw em { font-style: normal; }
.o-photo-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.o-upload { cursor: pointer; }
.o-crop { margin-top: 14px; }
.o-crop__circle { width: 220px; height: 220px; border-radius: 50%; border: 2px solid #1C1A17; background-color: #ddd; touch-action: none; cursor: grab; }
.o-crop input[type=range] { width: 220px; display: block; margin-top: 10px; }
.o-ac { position: relative; }
.o-ac__list { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 0; padding: 0; list-style: none; background: #fff; border: 2px solid #1C1A17; border-top: 0; max-height: 300px; overflow: auto; }
.o-ac__list li { padding: 10px 12px; cursor: pointer; }
.o-ac__list li:hover { background: var(--paper); }
.o-ac__none { color: var(--muted); cursor: default !important; }
.o-spelled { font-size: 18px; font-weight: 700; border: 2px solid #1C1A17; background: #fff; padding: 12px 14px; }
.o-rows { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 14px 0; }
.o-rows dt { color: var(--muted); }
.o-rows dd { margin: 0; }
.o-ded { white-space: pre-line; }
.o-edit { font-size: 14px; margin-left: 8px; }
.o-items { list-style: none; padding: 0; margin: 0; border-top: 2px solid #1C1A17; }
.o-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 2px solid #1C1A17; }
.o-item p { margin: 0 0 4px; }
.o-item__line { font-weight: 700; }
.o-total { font-size: 20px; margin-top: 18px; }
.o-addr { background: #fff; border: 2px solid #1C1A17; padding: 12px 14px; }
.o-rev-book { border-top: 2px solid #1C1A17; padding-top: 14px; margin-top: 14px; }
.o-rev-book h3 { margin: 0 0 8px; font-size: 22px; }
.o-preview-note { background: #FFF4E0; border: 2px dashed var(--terracotta); padding: 10px 12px; font-weight: 700; }
.o-status { min-height: 1.4em; }
.o-view-books { padding-left: 18px; }
/* cover preview */
.cv { --cv: #1F5A45; background: var(--cv); color: #FFF4E0; display: flex; flex-direction: column; align-items: center; text-align: center;
  font-family: "Jost", sans-serif; box-shadow: 6px 8px 0 rgba(28, 26, 23, .25); }
.cv--m { width: 240px; height: 360px; padding: 18px 12px 12px; }
.cv--l { width: 300px; height: 450px; padding: 22px 14px 14px; }
.cv--s { width: 64px; height: 96px; padding: 6px 4px; font-size: 3px; }
.cv-top { font-size: 8px; letter-spacing: .3em; margin: 0 0 8px; }
.cv-ring { position: relative; width: 82%; aspect-ratio: 1; display: grid; place-items: center; color: rgba(255, 244, 224, .75); }
.cv-ring > .cv-wheel { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-photo { border-radius: 50%; background-color: #e9e3d8; position: relative; z-index: 1; overflow: hidden; }
.cv-photo--chart { background: var(--cv); border: 1px solid rgba(255, 244, 224, .6); color: rgba(255, 244, 224, .85); }
.cv-photo--chart .cv-wheel { width: 100%; height: 100%; }
.cv-name { font-family: "Cormorant", serif; font-size: 34px; line-height: 1.05; margin: 10px 0 6px; overflow-wrap: anywhere; }
.cv-name--l { font-size: 25px; }
.cv-name--xl { font-size: 19px; }
.cv-when { font-size: 9px; margin: 0; }
.cv-site { font-size: 7px; margin: auto 0 0; opacity: .8; }
.cv--l .cv-name { font-size: 42px; } .cv--l .cv-name--l { font-size: 31px; } .cv--l .cv-name--xl { font-size: 23px; }
.cv--l .cv-top { font-size: 10px; } .cv--l .cv-when { font-size: 11px; }
.cv--s .cv-top, .cv--s .cv-when, .cv--s .cv-site { display: none; }
.cv--s .cv-ring { width: 70%; margin-top: 6px; }
.cv--s .cv-photo { width: 30px !important; height: 30px !important; }
.cv--s .cv-name { font-size: 9px; margin: 4px 0 0; }
@media (min-width: 760px) {
  .o-grid2 { grid-template-columns: 1fr 300px; align-items: start; }
  .o-grid3 { grid-template-columns: 2fr 1.4fr 1fr; }
  .o-preview { position: sticky; top: 20px; }
}
.order .top__cta { display: none; }
.o-back { white-space: nowrap; }
.order a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.o-upload, .o-photo-btns .btn { display: inline-flex; align-items: center; }
.o-time { display: flex; align-items: center; gap: 8px; }
.o-time select { width: auto !important; min-width: 7.5em; }
.o-upload.is-off { opacity: .4; pointer-events: none; }
.o-sub { margin: 18px 0 0; color: var(--muted); }
.o-sub + .o-total { margin-top: 6px; }
.o-link { word-break: break-all; font-weight: 400; }   /* same weight as its label (Eugene 11.11) */
.o-copy { font: inherit; font-size: 14px; border: 2px solid #1C1A17; background: #fff; padding: 2px 10px; cursor: pointer; margin-left: 6px; }
/* cart heading row: title left, currency switch right, sharing the text baseline; wraps under the title on narrow screens */
.o-cart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.o-cart-head .o-h { margin-bottom: 0; }
/* the same row above the prices on the book and gift card screens: "Format" / "Amount" left, "Pay in" right */
.o-price-head .o-l { margin-bottom: 8px; }
.o-cur { margin: 0; color: var(--muted); font-size: 15px; white-space: nowrap; }
.o-cur-note { text-align: right; margin: 4px 0 0; }
.o-cart-head + .o-items, .o-cur-note + .o-items { margin-top: 18px; }
/* "Add another book": the same air above (to the line under the last book) as below (to the hint text) */
.o-add { margin: 22px 0 18px; }
.o-cur label { display: inline; }
.o-cur select { width: auto; display: inline-block; margin-left: 6px; font: inherit; padding: 4px 8px; border: 1px solid var(--line, #d8d2c6); border-radius: 6px; background: transparent; color: inherit; }
.o-banner { border: 2px solid #1C1A17; background: #fff; padding: 16px 18px; margin: 0 0 24px; }
.o-banner .o-h2 { margin-top: 0; }
.o-banner p:last-child { margin-bottom: 0; }
/* T-129: format choice (printed book / PDF), gift card amounts */
.o-fmts { display: grid; gap: 10px; margin: 6px 0 22px; }
@media (min-width: 560px) { .o-fmts { grid-template-columns: 1fr 1fr; } }
.o-fmt { display: flex; gap: 10px; align-items: flex-start; border: 2px solid #1C1A17; padding: 12px 14px; cursor: pointer; background: #fff; }
.o-fmt input { margin-top: 4px; }
.o-fmt em { display: block; font-style: normal; color: var(--muted); font-size: 14px; margin-top: 4px; }
.o-fmt:has(input:checked) { box-shadow: inset 0 0 0 1px #1C1A17; background: #FBF7EF; }
.o-gc-mini { width: 30px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid #1C1A17; font-size: 16px; }
.o-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.o-chip { display: flex; gap: 8px; align-items: center; border: 2px solid #1C1A17; padding: 10px 16px; background: #fff; cursor: pointer; font-weight: 600; }
.o-chip:has(input:checked) { background: #FBF7EF; box-shadow: inset 0 0 0 1px #1C1A17; }
