/* Catalog discovery, checkout recovery and order status use existing tokens. */
.book-finder[hidden],.finder-empty[hidden],#book-results [hidden],.checkout-errors[hidden] { display:none !important; }
.book-finder { display:grid; grid-template-columns:minmax(0,1fr) 180px auto; gap:12px 20px; align-items:end; margin-bottom:32px; padding-bottom:24px; border-bottom:1px solid var(--line-strong); }
.book-finder .field { margin:0; min-width:0; }
.book-finder input,.book-finder select { width:100%; min-height:48px; padding:12px; font:inherit; color:var(--ink); background:var(--paper); border:1px solid var(--control-border); border-radius:8px; }
.book-finder input::placeholder { color:var(--muted); opacity:1; }
.book-finder .btn { min-height:48px; }
.finder-count { grid-column:1/-1; font-size:14px; color:var(--muted); min-height:24px; }
.finder-empty { padding:32px 0 64px; }
.finder-empty h2 { font-size:26px; }
.finder-empty p { margin:12px 0 24px; }
.finder-empty .arrow-link { margin-left:20px; }
.form-section-title,.delivery-choices legend { font:600 23px/1.5 var(--serif); color:var(--ink); }
.form-section-title { margin:32px 0 12px; }
.panel-form > .form-section-title:first-of-type { margin-top:0; }
.section-help { color:var(--muted); font-size:14px; line-height:1.8; margin:0 0 20px; }
.delivery-choices { margin-top:32px; }
.delivery-choices label:has(input:checked) { background:var(--paper-2); border-radius:8px; }
.delivery-choices label { padding-inline:12px; }
.checkout-errors { margin-bottom:24px; }
.checkout-errors ul { margin-top:12px; padding-left:22px; }
.checkout-errors a { display:inline-block; padding-block:6px; text-decoration:underline; text-underline-offset:3px; }
.field-error { color:var(--fire); font-size:14px; line-height:1.7; margin:6px 0 12px; }
[aria-invalid=true] { border-color:var(--fire) !important; }
[data-checkout] input,[data-checkout] select,[data-checkout] textarea { scroll-margin-block:120px; }
.date-parts > div:has(.field-error),.time-parts > div:has(.field-error) { min-width:0; }
.lookup-book-title { font-size:26px; margin:12px 0; }
.order-progress { list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:0; margin:24px 0; }
.order-progress li { border-bottom:1px solid var(--line-strong); padding:10px 0 14px; color:var(--muted); font-size:14px; }
.order-progress li > span { display:block; font:600 23px/1.5 var(--serif); margin-bottom:4px; }
.order-progress small { display:block; font-size:12px; margin-top:6px; }
.order-progress .current { color:var(--ink); border-color:var(--ink); font-weight:700; }
.order-progress .done { color:var(--ink); }
.lookup-help { padding:20px 0; margin-top:24px; border-top:1px solid var(--line); }
.lookup-help summary { cursor:pointer; padding-block:12px; color:var(--ink); font-weight:600; min-height:48px; }
.lookup-help p { margin:12px 0; overflow-wrap:anywhere; }
@media(max-width:700px) { .book-finder { grid-template-columns:minmax(0,1fr) auto; gap:16px 12px; } .book-finder > .field:first-child { grid-column:1/-1; } .form-section-title,.delivery-choices legend { font-size:21px; } }
@media(max-width:380px) { .finder-empty .arrow-link { display:block; margin:20px 0 0; } }
