/* The Cookie Club: the pages drawn before the new design, inside its menu and footer: the custom cookie
   pages, Our Story, the gallery, questions, the enquiry form, the cart, the checkout, order pages and
   policies. Their parts keep the class names they always had (assets/css/site.css); this file gives
   those parts the new design's colours, shapes and type. src/layout.mjs loads it on those pages only.
   Colours come from the list at the top of fresh.css. */

/* ------------------------------ words ------------------------------ */
.chrome-new .lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); font-weight: 700; line-height: 1.5; color: var(--text); max-width: 46ch; }
.chrome-new .small, .chrome-new .sub { color: var(--muted); }
.chrome-new .eyebrow { margin: 0 0 0.35rem; font-weight: 900; font-size: 0.88rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.chrome-new .eyebrow:has(+ h1), .chrome-new .eyebrow:has(+ h2) { display: inline-block; margin: 0 0 1rem; padding: 0.5em 1em; border-radius: 999px; background: var(--panel); color: var(--text); font-size: 0.92rem; line-height: 1; transform: rotate(-2deg); }
.chrome-new .center .lead, .chrome-new .center .sub { margin-inline: auto; }
.chrome-new .prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.08; margin: 1.7em 0 0.5em; }
.chrome-new .prose h1 + p, .chrome-new .prose h2:first-child { margin-top: 0; }
.chrome-new .prose li::marker { color: var(--mark); }
.chrome-new .text-link, .chrome-new .card .more { color: var(--accent-ink); }
.chrome-new .req { color: var(--accent-ink); }
.chrome-new .signoff { color: var(--heading); }
.chrome-new .crumbs ol { font-size: 0.88rem; font-weight: 800; color: var(--muted); gap: 4px 8px; }
.chrome-new .crumbs li + li::before { margin-right: 8px; opacity: 0.45; }
.chrome-new .crumbs a { color: var(--muted); text-decoration: none; }
.chrome-new .crumbs a:hover { color: var(--accent-ink); }

/* ------------------------------ buttons ------------------------------ */
.chrome-new .btn, .chrome-new a.btn { --shelf: var(--accent-shelf); display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; font: 900 1.02rem/1.15 var(--font-body); text-align: center; text-decoration: none; color: var(--on-accent); background: var(--accent); border: 0; border-radius: 999px; padding: 1em 1.6em; box-shadow: 0 5px 0 var(--shelf); transition: transform 0.16s ease, box-shadow 0.16s ease; }
.chrome-new .btn:active { transform: translateY(4px) scale(0.985); box-shadow: 0 1px 0 var(--shelf); }
.chrome-new .btn-ghost, .chrome-new a.btn-ghost, .chrome-new .btn-light, .chrome-new a.btn-light { background: var(--soft-2); color: var(--accent-deep); --shelf: var(--line); }
.chrome-new .btn-sm { font-size: 0.95rem; padding: 0.75em 1.2em; box-shadow: 0 4px 0 var(--shelf); }
.chrome-new .btn-block { display: flex; width: 100%; }
.chrome-new .btn[hidden] { display: none; }
.chrome-new .btn[disabled] { opacity: 0.6; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .chrome-new .btn:hover { color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 7px 0 var(--shelf); }
  .chrome-new .btn-ghost:hover, .chrome-new .btn-light:hover { color: var(--accent-deep); background: var(--soft-2); }
  .chrome-new .btn:active { transform: translateY(4px) scale(0.985); box-shadow: 0 1px 0 var(--shelf); }
}
@media (prefers-reduced-motion: reduce) { .chrome-new .btn { transition: none; } }

/* ------------------------------ the top of a page ------------------------------ */
/* A page that opens with a heading and then goes on: the heading sits on a field of colour that runs up
   under the floating menu, and icing drips from it onto what follows (as on the shop's pages). */
.chrome-new main:has(> .hero-sub + .section) { margin-top: calc(var(--head-h) * -1); }
.chrome-new main:has(> .hero-sub + .section) > .crumbs { padding-top: var(--head-h); background: var(--field); box-shadow: 0 0 0 100vmax var(--field); clip-path: inset(0 -100vmax); }
.chrome-new main:has(> .hero-sub + .section) > .crumbs ol, .chrome-new main:has(> .hero-sub + .section) > .crumbs a { color: var(--field-ink); }
.chrome-new main:has(> .hero-sub + .section) > .crumbs ol { padding-top: clamp(1.25rem, 3vw, 2.25rem); }
.chrome-new .hero-sub:has(+ .section) { background: radial-gradient(45% 55% at 84% 56%, var(--field-glow) 0%, transparent 70%), var(--field); padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: visible; }
.chrome-new .hero-sub:has(+ .section) h1 { color: var(--field-head); margin: 0; line-height: 0.95; max-width: 11em; }
.chrome-new .hero-sub:has(+ .section) .lead { color: var(--field-ink); margin: clamp(0.9rem, 2vw, 1.4rem) 0 0; }
.chrome-new .hero-sub + .section { position: relative; padding-top: clamp(6rem, 10vw, 8rem); }
.chrome-new .hero-sub + .section::before { content: ''; position: absolute; inset: 0 0 auto; height: 64px; background: var(--field); -webkit-mask: var(--drip-shape) 50% 0 / 360px 64px repeat-x; mask: var(--drip-shape) 50% 0 / 360px 64px repeat-x; pointer-events: none; }
.chrome-new .hero-actions { gap: 14px; margin-top: clamp(1.4rem, 3vw, 2rem); }
/* A page that is only its heading (thank you, page not found) stays on the page's own colour. */
.chrome-new .hero-sub:not(:has(+ .section)) { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5rem); }
.chrome-new .thanks-img { width: 120px; }
.chrome-new .thanks-junk { background: var(--soft); border: 0; border-radius: var(--r-md); padding: 1rem 1.25rem; }

/* Photos at the top of a page: framed in white and leaning a little. */
.chrome-new .hero-art > img { animation: none; }
.chrome-new .product-photo img, .chrome-new .kate-hero > img { border: 0; border-radius: var(--r-lg); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.6), 0 30px 40px -24px rgba(var(--shade-deep), 0.6); }
.chrome-new .kate-hero > img { transform: rotate(-2deg); }
.chrome-new .est-badge { background: var(--accent); border: 0; box-shadow: 0 10px 20px -10px rgba(var(--shade-deep), 0.7); }
.chrome-new .est-badge span, .chrome-new .est-badge strong { color: var(--on-accent); }

/* ------------------------------ sections and the things in them ------------------------------ */
.chrome-new .section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.chrome-new .alt { background: var(--soft); border: 0; }
.chrome-new .faq + .faq, .chrome-new .gallery-section + .gallery-section, .chrome-new .photo-use { padding-top: 0; }
.chrome-new .card { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); transition: transform 0.2s var(--ease-out); }
.chrome-new .card-art { background: var(--soft); border-radius: var(--r-md); }
.chrome-new .facts li { background: var(--soft); border: 0; border-radius: var(--r-md); }
.chrome-new .alt .facts li { background: #fff; }
.chrome-new .facts strong { color: var(--heading); }
.chrome-new .steps li { border: 0; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); }
.chrome-new .steps li::before { background: var(--accent); color: var(--on-accent); }
.chrome-new .chips li { background: var(--soft-2); border: 0; color: var(--text); }
.chrome-new .chips li:nth-child(3n + 1) { background: var(--panel); }
.chrome-new .panel { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2rem); top: calc(var(--head-h) + 20px); }
.chrome-new .ticks li::before { width: 10px; height: 10px; top: 0.5em; border: 0; background: var(--mark); }
.chrome-new .big-address { color: var(--text); }
.chrome-new .sister { background: var(--soft-2); border: 0; border-radius: var(--r-lg); box-shadow: none; }
.chrome-new .aussie { background: var(--panel); border: 0; color: var(--text); }
@media (hover: hover) and (pointer: fine) { .chrome-new .card:hover { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .chrome-new .card { transition: none; } }

/* Questions that fold open */
.chrome-new .faq details { background: var(--soft); border: 0; border-radius: var(--r-md); margin-bottom: 10px; }
.chrome-new .alt.faq details, .chrome-new .alt .faq details { background: #fff; }
.chrome-new .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 900; font-size: 1.06rem; line-height: 1.25; color: var(--text); border-radius: var(--r-md); }
.chrome-new .faq summary::after, .chrome-new .faq details[open] summary::after { content: ''; position: static; flex: none; width: 34px; height: 34px; border-radius: 50%; transform: none; background: linear-gradient(var(--mark), var(--mark)) center / 14px 3px no-repeat, linear-gradient(var(--mark), var(--mark)) center / 3px 14px no-repeat, var(--plus-bg, #fff); transition: transform 0.3s var(--ease-out); }
.chrome-new .faq details[open] summary::after { transform: rotate(135deg); --plus-bg: var(--line); }
.chrome-new .alt.faq summary::after, .chrome-new .alt .faq summary::after { --plus-bg: var(--soft); }
.chrome-new .faq .answer { padding: 0 20px 14px; max-width: 70ch; }
@media (prefers-reduced-motion: reduce) { .chrome-new .faq summary::after { transition: none; } }

/* Kate */
.chrome-new .kate-photo { border: 0; border-radius: 12rem 12rem 2rem 2rem; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.7), 0 30px 40px -24px rgba(var(--shade-deep), 0.6); transform: none; }
.chrome-new .shopfront { border: 0; border-radius: var(--r-md); }
.chrome-new .story-photo img { border: 0; border-radius: var(--r-lg); }
.chrome-new .story-photo figcaption { color: var(--muted); }

/* Photos */
.chrome-new .photo-grid { gap: clamp(12px, 1.6vw, 20px); }
.chrome-new .photo-grid a { border: 0; border-radius: var(--r-md); background: var(--soft); transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out); }
.chrome-new .photo-grid figcaption { color: var(--muted); }
.chrome-new .gallery-head { align-items: flex-end; margin-bottom: 0.5rem; }
.chrome-new .lightbox-dialog { border: 0; border-radius: var(--r-lg); overflow: hidden; }
.chrome-new .lightbox-dialog::backdrop { background: rgba(58, 40, 25, 0.82); }
.chrome-new .lightbox-close { border: 0; background: var(--soft-2); color: var(--text); }
@media (hover: hover) and (pointer: fine) { .chrome-new .photo-grid a:hover { transform: translateY(-3px); box-shadow: var(--lift); } }
@media (prefers-reduced-motion: reduce) { .chrome-new .photo-grid a { transition: none; } }

/* ------------------------------ forms ------------------------------ */
/* The edge of a field is darker than the design's other lines, so it can be seen by everyone. */
.chrome-new { --field-line: #a08a76; }
.chrome-new .enquiry { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.chrome-new label { color: var(--text); }
.chrome-new input, .chrome-new select, .chrome-new textarea { color: var(--text); background: #fff; border: 2px solid var(--field-line); border-radius: 14px; }
.chrome-new input::placeholder, .chrome-new textarea::placeholder { color: var(--muted); opacity: 0.85; }
.chrome-new input:focus, .chrome-new select:focus, .chrome-new textarea:focus { border-color: var(--mark); box-shadow: 0 0 0 3px rgba(var(--shade), 0.28); background: #fff; }
.chrome-new input[type='checkbox'], .chrome-new input[type='radio'] { accent-color: var(--accent); }
.chrome-new [aria-invalid='true'] { border-color: #b3261e; }

/* ------------------------------ choices ------------------------------ */
.chrome-new .tile-body { border-color: var(--field-line); border-radius: 14px; }
.chrome-new .tile:hover .tile-body { border-color: var(--mark); }
.chrome-new .tile input:checked + .tile-body { border-color: var(--mark); background: var(--soft); box-shadow: inset 0 0 0 1px var(--mark); }
.chrome-new .tile input:focus-visible + .tile-body, .chrome-new .swatch input:focus-visible + .dot { outline-color: var(--mark); }
.chrome-new .tile.is-off .tile-body, .chrome-new .tile.is-off:hover .tile-body { border-color: var(--line); background: transparent; box-shadow: none; }
.chrome-new .link-btn, .chrome-new .pb-nudge, .chrome-new .pb-gift { color: var(--accent-ink); }
.chrome-new .opt-in input, .chrome-new .co-agree input { accent-color: var(--accent); }
/* On the sand of the news question the quieter button is white, so it still reads as a button. */
.chrome-new .enq-news .btn-ghost { background: #fff; }
.chrome-new .enq-news { border-radius: var(--r-md); }

/* A calendar of days to choose from */
.chrome-new .cal-nav { border-color: var(--field-line); color: var(--text); }
.chrome-new .cal-grid button { border-color: var(--field-line); border-radius: 12px; color: var(--text); }
.chrome-new .cal-grid button:hover:not(:disabled):not(.is-off) { background: var(--soft-2); }
.chrome-new .cal-grid button:disabled, .chrome-new .cal-grid button.is-off { border-color: transparent; background: transparent; color: #a08c7d; }
.chrome-new .cal-grid button.is-off:hover { color: var(--text-soft); }
.chrome-new .cal-why { background: var(--accent-deep); color: var(--on-accent); box-shadow: 0 12px 24px -12px rgba(var(--shade-deep), 0.7); }
.chrome-new .cal-why::after { border-top-color: var(--accent-deep); }
.chrome-new .cal-grid button[aria-pressed='true'], .chrome-new .cal-grid button[aria-pressed='true']:hover:not(:disabled), .chrome-new .cal-grid button.is-held[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-shelf); }
.chrome-new .cal-grid button.is-held { background: var(--soft-2); box-shadow: 0 0 0 3px var(--mark); }
.chrome-new .cal-grid button:focus-visible, .chrome-new .cal-nav:focus-visible { outline-color: var(--mark); }

/* ------------------------------ the cart and the checkout ------------------------------ */
.chrome-new .price-box { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(1.25rem, 2.5vw, 1.6rem); }
.chrome-new .pb-total strong, .chrome-new .pb-due strong, .chrome-new .gc-result-balance { color: var(--heading); }
.chrome-new .cart-line img, .chrome-new .cart-noimg { border: 0; border-radius: 14px; }
.chrome-new .cart-lines.compact img, .chrome-new .cart-lines.compact .cart-noimg { border-radius: 10px; }
.chrome-new .cart-ph { background: var(--soft-2); }
.chrome-new .cart-ph-off { font-family: var(--font-display); color: var(--accent-ink); background: var(--soft); }
.chrome-new .free-track { height: 10px; border: 0; background: var(--soft-2); }
.chrome-new .free-track span { background: var(--accent); }
.chrome-new .co-step { border-radius: var(--r-md); }
.chrome-new .co-step legend { color: var(--heading); font-size: 1.25rem; }
.chrome-new .co-news { background: var(--soft); border: 0; border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.chrome-new .co-info, .chrome-new .upload-note { background: var(--soft); border-radius: 14px; }
.chrome-new .co-offer { border-radius: var(--r-md); }
.chrome-new .co-offer.is-held { background: var(--soft); border-color: var(--mark); box-shadow: none; }
.chrome-new .co-gift-list li { background: var(--soft); border-color: var(--line); color: var(--text); }
.chrome-new .co-gift-list small { color: var(--muted); }
.chrome-new .co-wait-spin { border-color: var(--line); border-top-color: var(--mark); }
.chrome-new .ask-dialog { border: 0; border-radius: var(--r-lg); color: var(--text-soft); }
.chrome-new .ask-dialog::backdrop { background: rgba(58, 40, 25, 0.75); }
.chrome-new .ask-close { border: 0; background: var(--soft-2); color: var(--text); }

/* ------------------------------ an order, a payment, a gift card, the policies ------------------------------ */
.chrome-new .order-status { border: 0; border-radius: var(--r-md); box-shadow: var(--shadow); padding: 1.15rem 1.4rem; }
.chrome-new .order-status-title { color: var(--heading); }
.chrome-new .order-note { background: var(--soft); border: 0; border-radius: var(--r-md); }
.chrome-new .order-statement { background: var(--soft-2); border: 0; }
.chrome-new .gc-page h1 { margin-bottom: 0.3em; }
.chrome-new .policy-list li, .chrome-new .policy-more li { border: 0; border-radius: var(--r-sm); background: var(--soft); }

/* "As soon as possible" at the checkout */
.chrome-new .asap-btn { border-color: var(--field-line); color: var(--text); }
.chrome-new .asap-btn:hover { background: var(--soft-2); }
.chrome-new .asap-btn[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-shelf); }
.chrome-new .asap-btn[aria-pressed='true'] span { color: var(--on-accent); }
.chrome-new .asap-btn:focus-visible { outline-color: var(--mark); }

/* ------------------------------ address suggestions (address-find.js) ------------------------------ */
.addr-field { position: relative; }
.addr-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 2px var(--field-line, #a08a76), 0 20px 40px -18px rgba(91, 65, 43, 0.55); }
.addr-list[hidden] { display: none; }
.addr-opt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 44px; padding: 11px 12px; border-radius: 11px; line-height: 1.3; cursor: pointer; }
.addr-opt strong { font-weight: 800; color: var(--text, #5b412b); }
.addr-opt span { font-size: 0.92rem; color: var(--text-soft, #664a34); }
.addr-opt.is-active { background: var(--soft, #f7eae2); }
@media (hover: hover) and (pointer: fine) { .addr-opt:hover { background: var(--soft, #f7eae2); } }
/* The address service's name, set the way its terms ask: plain, grey, on its own line. */
.addr-by { margin: 4px 10px 2px; text-align: right; font: 400 12px/1.4 Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: normal; white-space: nowrap; color: #5e5e5e; }
.addr-status { margin: 6px 2px 0; font-size: 0.92rem; font-weight: 700; line-height: 1.4; color: var(--text-soft, #664a34); }
.addr-status[hidden] { display: none; }
/* On a phone each suggestion is two short lines, so they all sit the same way. */
@media (max-width: 560px) {
  .addr-opt { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1px; padding: 9px 12px; }
}
/* Our own hints about an address that might have a slip in it. */
.addr-notes { margin: 0 0 12px; }
.addr-notes[hidden] { display: none; }
.addr-notes p { margin: 0; }
.addr-notes p + p { margin-top: 6px; }

/* ------------------------------ a quote (quote-page.mjs) ------------------------------ */
.quote-next { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 0.6rem; }
/* What's paid on accepting, and what's left, set apart from the total above them. */
.quote-deposit { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 2px dashed var(--line, #d5c3b2); }
/* A quote that goes to many addresses: how its list of recipients stands, with the way to the list. */
.quote-list { margin-top: 1.5rem; }
.quote-list h2 { font-size: 1.6rem; margin: 0 0 0.4rem; }
.quote-list > p { margin: 0 0 1rem; }
.quote-list > p:last-child { margin-bottom: 0; }
.quote-list.is-todo { box-shadow: inset 0 0 0 3px var(--mark, #876345); }
.quote-list-fix { color: #8a2c1c; }
.quote-answer { margin-top: 1.5rem; }
.quote-answer h2 { font-size: 1.6rem; margin: 0 0 0.4rem; }
.quote-answer > p { margin: 0 0 1rem; }
.quote-answer .btn-block { margin-top: 0; }
.quote-answer .form-status:empty { display: none; }
.quote-no { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 2px dashed var(--line, #d5c3b2); }
.quote-no summary { cursor: pointer; font-weight: 800; color: var(--text, #5b412b); width: fit-content; }
.quote-no[open] summary { margin-bottom: 0.7rem; }
.quote-no .field { margin: 0.9rem 0 0; }
.quote-no .btn { margin-top: 0.9rem; }
