/* The quote calculator (/shop/quote/). Loaded with fresh.css and fresh-shop.css, whose colours, buttons
   and option pills it uses. The steps are on the left; the quote slip (a piece of paper with a bite out
   of its corner, like our cookie) stays beside them. On a phone the slip sits under the steps, with the
   price on a bar along the bottom of the screen until the slip itself is in view. */
.qc-hero h1 { max-width: 10.5em; }
.qc-sec { padding-top: clamp(5rem, 9vw, 7rem); }
.qc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 400px); gap: clamp(20px, 3.2vw, 48px); align-items: start; }
.qc-steps { display: grid; gap: 14px; min-width: 0; }
.qc :where(p, ul, dl, dd, h3, fieldset) { margin: 0; }
.qc :where(ul) { padding: 0; list-style: none; }

/* ---------- a step ---------- */
.qc-step { min-width: 0; padding: 16px 20px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); scroll-margin-top: calc(var(--head-h) + 14px); }
.qc-step-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'n h go' 'n sum go'; align-items: center; column-gap: 14px; }
.qc-n { grid-area: n; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--soft); color: var(--heading); font: 400 1.4rem/1 var(--font-display); transition: background-color 0.2s ease, color 0.2s ease; }
.qc-step.is-open .qc-n { background: var(--accent); color: var(--on-accent); }
.qc-step-head h2 { grid-area: h; margin: 0; align-self: end; font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.1; color: var(--heading); }
.qc-step.is-open .qc-step-head h2, .qc-step:not(.is-done) .qc-step-head h2 { align-self: center; grid-row: 1 / -1; }
.qc-step-head h2:focus { outline: none; }
.qc-step-sum { grid-area: sum; align-self: start; overflow: hidden; margin-top: 3px; font-weight: 700; font-size: 0.98rem; color: var(--text-soft); white-space: nowrap; text-overflow: ellipsis; }
.qc-step-sum:empty { display: none; }
.qc-change { grid-area: go; }
.qc-step-body { display: none; padding: 18px 0 6px; }
.qc-step.is-open .qc-step-body { display: block; animation: qc-in 0.22s var(--ease-out); }
@keyframes qc-in { from { opacity: 0; transform: translateY(6px); } }
.qc-step:not(.is-open):not(.is-done) { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.qc-step:not(.is-open):not(.is-done) .qc-step-head h2 { color: var(--muted); }

.qc-link, .qc-change { padding: 8px 2px; border: 0; background: none; color: var(--accent-ink); font: 800 0.98rem/1.2 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qc-link:focus-visible, .qc-change:focus-visible, .qc-prod:focus-visible, .qc-cat:focus-visible, .qc-stepper button:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; border-radius: 10px; }
.qc-help { font-weight: 700; color: var(--text-soft); line-height: 1.45; }
.qc-warn { padding: 12px 16px; border-radius: 16px; background: #fff; border: 2px solid #b4432f; color: #8a2c1c; font-weight: 800; line-height: 1.4; }
.qc .opt { margin-left: 6px; font-weight: 700; font-size: 0.84rem; color: var(--muted); }

/* ---------- 1. choose your cookies ---------- */
.qc-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qc-cat { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--soft); color: var(--text); font: 800 0.98rem/1 var(--font-body); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.qc-cat[aria-pressed='true'] { background: var(--text); color: var(--on-dark); }
.qc-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px 12px; margin-top: 16px; }
.qc-prods > li[hidden] { display: none; }
.qc-prod { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qc-prod-pic { display: block; overflow: hidden; aspect-ratio: 1; border-radius: var(--r-md); background: var(--soft); box-shadow: inset 0 0 0 2px transparent; transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease; }
.qc-prod-pic img, .qc-prod-pic picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.qc-prod-name { font-weight: 900; font-size: 0.98rem; line-height: 1.2; }
.qc-prod-from { font-weight: 800; font-size: 0.92rem; color: var(--accent-ink); }
.qc-prod-from small { font-weight: 700; color: var(--muted); }
.qc-prod:active .qc-prod-pic { transform: scale(0.97); }
.qc-prod.is-loading { opacity: 0.6; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .qc-prod:hover .qc-prod-pic { transform: translateY(-3px); box-shadow: inset 0 0 0 3px var(--mark); }
  .qc-cat:hover { background: var(--sand-3); }
  .qc-cat[aria-pressed='true']:hover { background: var(--text); }
}
.qc-else { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: var(--r-md); background: var(--soft); font-weight: 700; line-height: 1.45; --accent-ink: var(--accent-deep); }
.qc-else .f-ico { flex: none; width: 34px; height: 34px; }

/* ---------- 2. make it yours ---------- */
.qc-build-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qc-build-top img { flex: none; width: 84px; height: 84px; border-radius: var(--r-sm); object-fit: cover; }
.qc-build-top h3 { font-size: 1.25rem; line-height: 1.2; color: var(--text); }
.qc-build-top p { margin-top: 4px; font-weight: 700; font-size: 0.95rem; }
.qc-preview { flex: none; width: 96px; margin-left: auto; }
.qc-preview svg { display: block; width: 100%; height: auto; }
.qc-form { display: grid; gap: 22px; }
.qc-form input[type='text'], .qc-form textarea, .qc-form select, .qc-field input { width: 100%; min-width: 0; min-height: 54px; padding: 12px 16px; border: 2px solid var(--field-line); border-radius: 16px; background: #fff; color: var(--text); font: 800 1.02rem/1.3 var(--font-body); -webkit-appearance: none; appearance: none; }
.qc-form input::placeholder, .qc-field input::placeholder { color: var(--muted); opacity: 1; font-weight: 700; }
.chrome-new .qc-form :is(input[type='text'], textarea, select):focus-visible, .chrome-new .qc-field input:focus-visible { outline: 3px solid var(--mark); outline-offset: 1px; border-radius: 16px; }
.qc-form .counter { display: block; margin-top: 4px; font-size: 0.84rem; font-weight: 700; color: var(--muted); text-align: right; }
.qc-form .tier-table { margin-top: 12px; font-weight: 700; }
.qc-form .tier-table summary { cursor: pointer; color: var(--accent-ink); font-weight: 800; }
.qc-form .tier-table table { margin-top: 8px; border-collapse: collapse; }
.qc-form .tier-table :is(th, td) { padding: 5px 18px 5px 0; text-align: left; }
.qc-stepper { display: inline-flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: var(--soft); }
.qc-stepper button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--text); font: 900 1.5rem/1 var(--font-body); cursor: pointer; box-shadow: 0 2px 0 var(--line); transition: transform 0.12s ease; }
.qc-stepper button:active { transform: translateY(2px) scale(0.97); box-shadow: none; }
.qc-stepper output { min-width: 2.4em; font: 400 1.6rem/1 var(--font-display); color: var(--text); text-align: center; font-variant-numeric: tabular-nums; }
.qc-item { display: grid; gap: 4px; margin-top: 22px; padding: 16px 18px; border-radius: var(--r-md); background: var(--soft); }
.qc-item-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-weight: 800; color: var(--text-soft); }
.qc-item-total strong { font: 400 1.9rem/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.qc-item-per { font-weight: 700; color: var(--text-soft); }
.qc-nudge { font-weight: 800; color: var(--accent-deep); }
.qc-nudge:empty, .qc-item-per:empty { display: none; }
.qc-errors { margin-top: 14px; padding: 12px 16px 12px 34px; border-radius: 16px; background: #fff; border: 2px solid #b4432f; color: #8a2c1c; font-weight: 800; line-height: 1.4; list-style: disc; }
.qc .qc-errors { padding-left: 34px; list-style: disc; }
.qc-errors[hidden] { display: none; }
.qc .qc-errors:has(> li:only-child) { padding-left: 16px; list-style: none; }
.qc-errors:focus { outline: none; }
.qc-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 18px; }

/* ---------- 3. getting them to you ---------- */
.qc-mode .p-pill small { display: block; }
.qc-mode .p-pill > span { align-items: center; }
.qc-mode .p-pill > span strong { display: block; }
.qc-mode .p-pill .f-ico { flex: none; width: 30px; height: 30px; }
.qc-where { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.qc-where[hidden], .qc-field[hidden] { display: none; }
.qc-field { display: grid; gap: 7px; min-width: 0; }
.qc-field > label { font-weight: 900; font-size: 0.95rem; line-height: 1.2; color: var(--text); }
.qc-ways { margin-top: 18px; }
.qc-ways:empty { display: none; }
.qc-service-list { display: grid; gap: 10px; }
.qc-service { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 12px 18px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; transition: background-color 0.15s ease, box-shadow 0.15s ease; }
.qc-service > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qc-service > span { display: grid; gap: 2px; }
.qc-service strong { font-weight: 900; color: var(--text); }
.qc-service small { font-weight: 700; font-size: 0.92rem; color: var(--text-soft); }
.qc-service b { flex: none; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.qc-service:has(input:checked) { background: var(--soft); box-shadow: inset 0 0 0 3px var(--mark); }
.qc-service:has(input:focus-visible) { outline: 3px solid var(--mark); outline-offset: 3px; }
.qc-service.is-off { cursor: not-allowed; background: transparent; }
.qc-service.is-off strong { color: var(--muted); }
.qc-service.is-late small, .qc-way-note.is-late { color: #8a2c1c; }
.qc-way-note { padding: 14px 18px; border-radius: var(--r-md); background: var(--soft); font-weight: 700; line-height: 1.45; }

/* ---------- the quote slip ---------- */
.qc-slip-wrap { position: sticky; top: calc(var(--head-h) + 16px); min-width: 0; filter: drop-shadow(0 24px 28px rgba(var(--shade), 0.3)) drop-shadow(0 2px 4px rgba(91, 65, 43, 0.08)); scroll-margin-top: calc(var(--head-h) + 14px); }
.qc-slip {
  padding: 26px 24px 24px; border-radius: 30px; background: #fff;
  --bite: radial-gradient(circle at calc(100% - 6px) 4px, #0000 33px, #000 33.5px), radial-gradient(circle at calc(100% - 52px) -8px, #0000 22px, #000 22.5px), radial-gradient(circle at calc(100% + 8px) 50px, #0000 21px, #000 21.5px);
  -webkit-mask: var(--bite); mask: var(--bite); -webkit-mask-composite: source-in; mask-composite: intersect;
}
.qc-slip-kind { padding-right: 76px; font: 400 1.7rem/1.1 var(--font-display); color: var(--heading); }
.qc-slip-empty { margin-top: 12px; font-weight: 700; line-height: 1.45; color: var(--text-soft); }
.qc-lines { display: grid; gap: 14px; margin-top: 18px; }
.qc-lines > li.has-error { padding: 10px 12px; border-radius: 14px; box-shadow: inset 0 0 0 2px #b4432f; }
.qc-line-main { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.qc-line-main strong { font-weight: 900; line-height: 1.25; color: var(--text); }
.qc-times { font-weight: 800; color: var(--accent-ink); white-space: nowrap; }
.qc-line-price { flex: none; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.qc-line-details { margin-top: 3px; font-size: 0.92rem; font-weight: 600; line-height: 1.4; color: var(--text-soft); }
.qc-line-error { margin-top: 4px; font-weight: 800; font-size: 0.92rem; color: #8a2c1c; }
.qc-line-acts { display: flex; gap: 16px; }
.qc-line-acts .qc-link { padding: 5px 0; font-size: 0.9rem; }
.qc-more { margin-top: 6px; }
.qc-sum { display: grid; gap: 7px; margin-top: 14px; padding-top: 16px; border-top: 2px dashed rgba(91, 65, 43, 0.3); }
.qc-sum > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-weight: 700; color: var(--text-soft); }
.qc-sum dd { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.qc-sum .is-todo dt { color: var(--muted); }
.qc-sum .qc-link { padding: 0; }
.qc-total { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--line); font-weight: 900; color: var(--text); }
.qc-total strong { font: 400 2.5rem/1 var(--font-display); color: var(--heading); font-variant-numeric: tabular-nums; }
.qc-per { margin-top: 6px; font-size: 0.9rem; font-weight: 600; line-height: 1.4; color: var(--text-soft); }
.qc-free, .qc-when { margin-top: 8px; font-weight: 800; line-height: 1.4; color: var(--accent-deep); }
.qc-slip .qc-warn { margin-top: 12px; }
.qc-acts { display: grid; gap: 12px; margin-top: 20px; }
.qc-slip .f-btn--soft { background: var(--soft); --shelf: var(--sand-3); }
.qc-status { font-weight: 800; color: #8a2c1c; line-height: 1.4; }
.qc-status:empty { display: none; }
.qc-cart-q { font-weight: 800; line-height: 1.4; color: var(--text); }
#qc-ask-box[hidden] { display: none; }
.qc-ask { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 2px dashed rgba(91, 65, 43, 0.3); }
.qc-turnstile { min-height: 65px; }
.qc-ask h3 { font-size: 1.15rem; color: var(--text); }
.qc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* The question about news and offers, with the two buttons that each send the quote. */
.qc-news { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--soft); }
.qc-news:focus { outline: none; }
.qc-news:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; }
.qc-news-ask { line-height: 1.45; }
.qc-news-ask strong { display: block; margin-bottom: 3px; font-weight: 900; font-size: 1.05rem; color: var(--text); }
.qc-news-ask span { font-size: 0.92rem; font-weight: 600; color: var(--text-soft); }
.qc-news-btns { display: grid; gap: 12px; }
.qc-news .f-btn--soft { background: #fff; }
/* A quote is not an order: by the buttons, and again (with the way to order) once a quote is saved.
   The same amber as the "Quote only" tag on the quote's own page. */
.qc-note { margin-top: 14px; padding: 10px 14px; border-radius: var(--r-md); background: #fff4d6; font-size: 0.92rem; font-weight: 600; line-height: 1.45; color: #5c3f00; }
.qc-note strong { font-weight: 900; color: #4a3200; }
.qc-notyet { display: grid; gap: 8px; margin: 4px 0; padding: 16px; border-radius: var(--r-md); background: #fff4d6; }
.qc-saved .qc-notyet p { color: #5c3f00; }
.qc-saved .qc-notyet .qc-notyet-h { font-size: 1.12rem; font-weight: 900; line-height: 1.25; color: #4a3200; }
.qc-notyet .qc-acts { margin-top: 6px; }
.qc-saved-news { font-weight: 800; color: var(--accent-deep); }
.qc-small { font-size: 0.86rem; font-weight: 600; line-height: 1.45; color: var(--text-soft); }
.qc-saved { display: grid; gap: 10px; margin-top: 10px; }
.qc-saved-ref { justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--soft); font: 900 1rem/1.2 var(--font-body); letter-spacing: 0.02em; color: var(--text); }
.qc-saved h3 { font: 400 1.6rem/1.15 var(--font-display); color: var(--heading); }
.qc-saved h3:focus { outline: none; }
.qc-saved p { font-weight: 700; line-height: 1.5; color: var(--text-soft); }
.qc-noscript { grid-column: 1 / -1; padding: 16px 18px; border-radius: var(--r-md); background: #fff; font-weight: 700; }

/* ---------- the bar along the bottom of a phone ---------- */
.qc-bar { display: none; }

@media (max-width: 900px) {
  .qc { grid-template-columns: minmax(0, 1fr); }
  .qc-slip-wrap { position: static; }
  .qc-bar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--text); color: var(--on-dark); box-shadow: 0 16px 34px -14px rgba(var(--shade-deep), 0.75); transition: transform 0.25s var(--ease-out), opacity 0.2s ease; }
  .qc-bar[hidden] { display: none; }
  .qc-bar.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .qc-bar small { display: block; font-weight: 700; font-size: 0.8rem; opacity: 0.85; }
  .qc-bar strong { font: 400 1.45rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
  .qc-bar .f-btn { background: #fff; color: var(--text); --shelf: var(--sand-3); }
  .qc-sec { padding-bottom: 96px; }
}
@media (max-width: 560px) {
  .qc-step { padding: 14px 14px; border-radius: 26px; }
  .qc-step-head { column-gap: 11px; }
  .qc-n { width: 40px; height: 40px; font-size: 1.2rem; }
  .qc-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qc-where, .qc-two { grid-template-columns: minmax(0, 1fr); }
  .qc-preview { width: 76px; }
  .qc-build-top img { width: 68px; height: 68px; }
  .qc-slip { padding: 24px 18px 20px; }
  .qc-go .f-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .qc-step.is-open .qc-step-body { animation: none; }
  .qc-prod-pic, .qc-n, .qc-cat, .qc-service, .qc-stepper button, .qc-bar { transition: none; }
}
