/* Loved Ones & Co: the store's look (Oct 18). Crown & Paw's product page structure (promo bar, gallery,
   trust icons, photo -> size -> big rounded add-to-cart, bundle tiers, accordions, how it works, why us,
   FAQ), in our own colors. Phone first: most visitors are in the Facebook app at ~390 px. */
:root {
  --ink: #2b2420;
  --muted: #6b5f57;
  --line: #eadfd4;
  --bg: #fbf7f2;
  --card: #ffffff;
  --accent: #b4532a;
  --accent-dark: #93421f;
  --soft: #f6ebe1;
  --ok: #2f7a4f;
  --radius: 14px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
/* "hidden" always wins over a display set below (the painting cover and the cart count showed while hidden). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.45; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; }

.promo { background: var(--accent); color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 8px 12px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.logo span { color: var(--accent); }
.cart-btn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.count { background: var(--accent); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 13px; padding: 0 6px; }

.product { max-width: 1100px; margin: 0 auto; padding: 12px 16px 8px; display: grid; gap: 18px; }
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr 1fr; gap: 40px; padding-top: 28px; } .gallery { position: sticky; top: 80px; align-self: start; } }

.stage { position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--line); }
.stage canvas, .stage .flat { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.badge { position: absolute; left: 12px; top: 12px; background: rgba(43, 36, 32, 0.78); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge.yours { background: var(--ok); }
.painting { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: rgba(251, 247, 242, 0.86); text-align: center; padding: 20px; }
.painting p { margin: 0; font-weight: 600; font-size: 17px; max-width: 260px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--card); }
.thumb.on { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.trust { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.trust li { display: grid; justify-items: center; gap: 4px; }
.trust .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--soft); color: var(--accent); display: grid; place-items: center; font-size: 18px; }
.buy h1 { font-size: 30px; }
.line { margin: 6px 0 10px; color: var(--muted); font-size: 18px; }
.price { margin: 0; font-size: 26px; font-weight: 700; }
.price .from { font-size: 15px; font-weight: 500; color: var(--muted); }
.bnpl { margin: 4px 0 16px; font-size: 14px; color: var(--muted); }

.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.step-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 10px; }
.step h2 { font-size: 19px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font-size: 15px; }
.upload { display: grid; justify-items: center; gap: 4px; border: 2px dashed #d9c6b5; border-radius: 12px; padding: 22px 12px; text-align: center; background: var(--soft); cursor: pointer; }
.upload-main { font-weight: 700; font-size: 18px; color: var(--accent-dark); }
.upload-sub { font-size: 14px; color: var(--muted); }
.upload.done { border-style: solid; border-color: var(--ok); background: #eef6f1; }
.upload.done .upload-main { color: var(--ok); }
.note { margin: 10px 0 0; font-size: 15px; }
.note.bad { color: #a12d14; font-weight: 600; }
.guide { margin: 10px 0 0; font-size: 15px; color: var(--muted); }

.styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.style { border: 2px solid var(--line); border-radius: 12px; background: var(--card); padding: 10px; text-align: left; display: grid; gap: 2px; }
.style strong { font-size: 16px; }
.style span { font-size: 13px; color: var(--muted); }
.style.on { border-color: var(--accent); background: var(--soft); }
.style:disabled { opacity: 0.55; }

.sizes { display: grid; gap: 8px; }
.size { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 2px solid var(--line); border-radius: 12px; background: var(--card); padding: 12px 14px; text-align: left; position: relative; }
.size.on { border-color: var(--accent); background: var(--soft); }
.size-name { font-weight: 600; }
.size-price { font-weight: 700; }
.size-tag { position: absolute; top: -10px; right: 12px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

.arrive { text-align: center; font-size: 15px; color: var(--muted); margin: 6px 0 10px; }
.add { width: 100%; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: 19px; font-weight: 700; padding: 16px 20px; box-shadow: 0 4px 0 var(--accent-dark); }
.add:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-dark); }
.add[aria-disabled="true"] { background: #c9b7a8; box-shadow: none; }
.add-note { text-align: center; font-size: 14px; color: var(--muted); margin: 8px 0 14px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; background: var(--card); }
.tiers div { display: grid; justify-items: center; padding: 10px 4px; font-size: 14px; }
.tiers div + div { border-left: 1px solid var(--line); }
.tiers span { color: var(--accent); font-weight: 700; }

.acc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.acc summary, .faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; position: relative; }
.acc summary::after, .faq-item summary::after { content: '+'; position: absolute; right: 16px; color: var(--accent); font-size: 22px; line-height: 1; }
.acc[open] summary::after, .faq-item[open] summary::after { content: '–'; }
.acc ul, .acc p { margin: 0; padding: 0 16px 14px 34px; color: var(--muted); font-size: 15px; }
.acc p { padding-left: 16px; }

.how, .why, .faq { max-width: 760px; margin: 0 auto; padding: 28px 16px 8px; }
.how h2, .why h2, .faq h2 { font-size: 26px; text-align: center; margin-bottom: 16px; }
.how ol { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.how li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 14px 58px; position: relative; display: grid; gap: 2px; }
.how li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.how li span { color: var(--muted); font-size: 15px; }
.why table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.why th, .why td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15px; }
.why td:first-child, .why th:first-child { text-align: left; }
.why td:nth-child(2) { color: var(--ok); font-weight: 700; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.faq-item p { margin: 0; padding: 0 16px 14px; color: var(--muted); font-size: 15px; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 28px 16px 40px; }
.foot a { color: var(--muted); }

.drawer { position: fixed; inset: 0; background: rgba(43, 36, 32, 0.45); z-index: 50; display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.drawer-box { background: var(--bg); width: min(420px, 100%); height: 100%; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.x { background: none; border: 0; font-size: 30px; line-height: 1; padding: 4px 8px; }
.cart-items { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-item .name { font-weight: 600; font-size: 15px; }
.cart-item .sub { font-size: 13px; color: var(--muted); }
.cart-item button { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; }
.cart-sum { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 4px; font-size: 15px; }
.cart-sum .row { display: flex; justify-content: space-between; }
.cart-sum .total { font-weight: 700; font-size: 18px; }
.cart-sum .save { color: var(--ok); }
.empty { color: var(--muted); text-align: center; padding: 20px 0; }

/* Codex review fixes (Oct 18) */
.material { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.cta { display: block; text-align: center; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 18px; padding: 14px 18px; margin: 0 0 16px; cursor: pointer; }
.upload { position: relative; }
.photo-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.privacy { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.promise-line { text-align: center; font-size: 14px; margin: -6px 0 14px; color: var(--muted); }
.retry { margin-top: 8px; border: 2px solid var(--accent); background: var(--card); color: var(--accent); border-radius: 999px; padding: 8px 18px; font-weight: 700; }
.cart-sum .when { color: var(--muted); font-size: 14px; justify-content: center; }

/* ---- The store frame (Oct 19): the header with its menu, the menu panel, the home page, the 404 page.
   Shared by src/frame.js and src/home-page.js; the behaviour is public/frame.js. ---- */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.top .cart-btn { justify-self: end; }
.menu-btn { justify-self: start; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 12px; font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.burger { width: 18px; height: 2px; background: var(--ink); position: relative; display: block; }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.logo { white-space: nowrap; }
@media (max-width: 420px) { .logo { font-size: 20px; } .menu-btn, .cart-btn { padding: 8px 11px; font-size: 14px; } }
a.cta { text-decoration: none; }

.menu { position: fixed; inset: 0; background: rgba(43, 36, 32, 0.45); z-index: 60; display: flex; justify-content: flex-start; }
.menu-box { background: var(--bg); width: min(340px, 88%); height: 100%; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.menu-box h3 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 2px; }
.menu-box ul { list-style: none; margin: 0; padding: 0; }
.menu-box li a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.menu-box li a span { color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; }
.menu-more { margin-top: 16px !important; }
.menu-more li a { font-weight: 500; font-size: 15px; color: var(--muted); border-bottom: 0; padding: 8px 4px; }

.home { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.hero { display: grid; grid-template-areas: "words" "pic" "go"; gap: 14px; padding: 18px 0 8px; }
.hero-words { grid-area: words; display: grid; gap: 10px; }
.hero h1 { font-size: 32px; }
.hero-words p { margin: 0; color: var(--muted); font-size: 17px; }
.hero-pic { grid-area: pic; position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.hero-pic img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.hero-go { grid-area: go; display: grid; gap: 8px; }
.hero-go .cta { margin: 0; }
.hero-note { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.1fr; grid-template-areas: "words pic" "go pic"; column-gap: 44px; row-gap: 18px; padding: 36px 0 16px; }
  .hero-words { align-self: end; }
  .hero-go { align-self: start; justify-items: start; }
  .hero-go .cta { min-width: 320px; }
  .hero-note { text-align: left; }
  .hero h1 { font-size: 46px; }
  .hero-words p { font-size: 19px; }
}
.home-trust { max-width: 560px; margin: 12px auto 4px; }

.shelf { padding: 22px 0 6px; }
.shelf h2 { font-size: 26px; text-align: center; margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { display: grid; gap: 4px; align-content: start; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 8px 12px; text-align: center; }
.tile .pic { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; background: #fff; }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; }
.tile .badge { font-size: 11px; padding: 3px 8px; left: 8px; top: 8px; }
.tile strong { font-size: 17px; margin-top: 6px; }
.tile .from { color: var(--muted); font-size: 14px; }
/* Where the gift lives (PAGE.moment, Oct 19): under the product name, over the price. */
.tile .moment { color: var(--ink); font-size: 14px; line-height: 1.3; text-wrap: balance; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } }

.nf { max-width: 560px; margin: 0 auto; padding: 48px 16px 40px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.nf h1 { font-size: 30px; }
.nf p { margin: 0; color: var(--muted); }
.nf .cta { width: 100%; max-width: 320px; margin: 6px 0 0; }
.nf-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; font-weight: 600; }

/* The Christmas products (Oct 19): the real last day to order, under the delivery dates */
.xmas { text-align: center; font-size: 15px; font-weight: 600; color: var(--accent-dark); margin: -4px 0 10px; }

/* ---- colours and compact sizes (Oct 19: hoodie, socks, mug) ---- */
/* The promise line sat under the Add to cart button's bottom edge (its -6px top margin; seen on the hoodie walk, Oct 19). */
.promise-line { margin-top: 10px; }
.colours { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.colour { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); padding: 5px 14px 5px 6px; font-size: 15px; font-weight: 600; }
.colour.on { border-color: var(--accent); background: var(--soft); }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.15); display: inline-block; }
.sizes.compact { grid-template-columns: repeat(3, 1fr); }
.sizes.compact .size { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px 6px; gap: 2px; }

/* ---- Conversion pieces (cro, Oct 19): the first picture, the painting steps, "Email me my preview", payment marks,
   "See it on…", the sticky bar, the cart's nudges. Behaviour: public/store.js, public/cro.js, public/see-on.js. ---- */
.stage .hero-shot { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
/* The page's two columns never grow to fit a sideways-scrolling row (the "See it on…" tiles made the page 922 px wide). */
.product > * { min-width: 0; }
.gallery { scroll-margin-top: 66px; }

/* The painting wait: the steps it really goes through, each with its own mark (the big spinner made way for them). */
.painting .spinner { display: none; }
.psteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; font-size: 17px; }
.psteps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.psteps li::before { content: ''; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #d9c6b5; background: #fff; box-sizing: border-box; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.psteps li span { font-weight: 500; font-size: 14px; color: var(--muted); }
.psteps li.now { color: var(--ink); }
.psteps li.now::before { border-color: var(--accent); border-right-color: transparent; animation: spin 0.9s linear infinite; }
.psteps li.done { color: var(--ok); }
.psteps li.done::before { content: '✓'; background: var(--ok); border-color: var(--ok); color: #fff; }
.painting #paintingLine { font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.fit-note { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0; max-width: calc(100% - 24px); width: max-content;
  background: rgba(43, 36, 32, 0.8); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px 6px 30px; border-radius: 999px; }
.fit-note::before { content: ''; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.9s linear infinite; }

/* "Email me my preview": optional, under the finished preview. 16 px text so a phone does not zoom into the field. */
.mail-me { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 8px; }
.mm-title { font-size: 16px; }
.mm-row { display: flex; gap: 8px; }
.mm-row input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 14px; border: 1.5px solid #d9c6b5; border-radius: 999px; background: var(--bg); color: var(--ink); }
.mm-row input:focus { outline: none; border-color: var(--accent); }
.mm-row button { border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; padding: 10px 20px; }
.mm-row button:disabled { opacity: 0.6; }
.mm-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.35; color: var(--muted); cursor: pointer; }
.mm-consent input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.mm-note { margin: 0; font-size: 13px; color: var(--muted); }
.mm-note.bad { color: #a12d14; font-weight: 600; }
.mm-done { margin: 12px 0 0; padding: 10px 14px; background: #eef6f1; border: 1px solid #cfe5d8; color: var(--ok); border-radius: var(--radius); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }

/* Trust at the button: the payment marks Stripe's page takes, and who takes the payment. */
.pay-trust { display: grid; justify-items: center; gap: 6px; margin: 4px 0 4px; }
.add-note[hidden] + .pay-trust { margin-top: 14px; }
.pay-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pay-logos img { height: 24px; width: 36px; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.pay-secure { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }

/* "See it on…": a row that scrolls sideways, edge to edge on a phone, the next tile peeking in. */
.see-on { margin: 4px 0 16px; }
.so-head h2 { font-size: 22px; }
.so-sub { margin: 4px 0 10px; font-size: 14px; color: var(--muted); }
.so-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scroll-padding-left: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.so-row::-webkit-scrollbar { display: none; }
.so-tile { flex: 0 0 140px; scroll-snap-align: start; display: grid; gap: 2px; align-content: start; text-decoration: none; color: var(--ink); }
.so-pic { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); }
.so-pic img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s; }
.so-pic img:not([src]) { visibility: hidden; }   /* an example not loaded yet (cro.js loads them near the screen): no alt text */
.so-pic .badge { font-size: 11px; padding: 3px 8px; left: 6px; top: 6px; }
.so-line { font-size: 14px; line-height: 1.25; margin-top: 5px; }
.so-name { font-size: 13px; color: var(--muted); }
.so-tile.pending .so-pic img { opacity: 0.55; }
.so-tile.pending .so-pic::after { content: ''; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.7); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@media (min-width: 900px) { .buy .so-row { margin: 0; padding: 2px 0 8px; } }

/* The sticky bar on a phone: the price and the one next step, under the cart drawer (z 50) and the menu (z 60). */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(43, 36, 32, 0.08); }
.sb-price { display: grid; line-height: 1.15; }
.sb-price strong { font-size: 19px; }
.sb-price span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sb-go { flex: 1; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; padding: 13px 12px; }
.sticky-buy.buy .sb-go { background: var(--accent); }
body.has-sticky { padding-bottom: 76px; }
@media (min-width: 900px) { .sticky-buy { display: none !important; } body.has-sticky { padding-bottom: 0; } }

/* The cart's nudges: the next real bundle tier, and the same painting on other products. */
.cart-nudge { margin: 0; text-align: center; font-weight: 700; font-size: 15px; color: var(--ok); background: #eef6f1; border-radius: 10px; padding: 8px 10px; }
.cart-seeon { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; }
.cart-seeon h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 8px; }
.cart-seeon .so-row { margin: 0 -16px; padding: 2px 16px 8px; }
.cart-seeon .so-tile { flex-basis: 140px; }

/* ---- Round 2 (cro, Oct 19): an independent critique against Crown & Paw. ---- */
/* Readability for 35 to 70 year olds: the supporting text that matters at 15-16 px and darker, small links 44 px tall. */
:root { --muted: #564b44; }
.bnpl { font-size: 16px; }
.arrive { font-size: 16px; color: var(--ink); }
.material, .add-note, .upload-sub, .privacy, .pay-secure, .so-sub, .mm-consent, .mm-note { font-size: 15px; }
.trust { font-size: 15px; }
.acc ul, .acc p, .faq-item p, .how li span { font-size: 16px; }
.link { font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
.tile .from { font-size: 15px; }
.foot { font-size: 15px; }
.foot a { display: inline-block; padding: 10px 2px; }
.cart-item .name { font-size: 16px; }
.cart-item .sub { font-size: 15px; }
.cart-item button, .cart-item .edit { font-size: 15px; color: var(--muted); text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px 0 0; background: none; border: 0; }
.cart-sum .when, .drawer .add-note { font-size: 15px; }
.cart-nudge { font-size: 16px; }
.fit-note { font-size: 15px; }
h2[id] { scroll-margin-top: 84px; }

/* The Add button before a preview: "Upload your photo · free preview"; while painting or finishing, waiting and greyed. */
.add:disabled, .sb-go:disabled { background: #c9b7a8; box-shadow: none; color: #fff; cursor: default; transform: none; }
.add[data-mode="upload"] { background: var(--ink); box-shadow: 0 4px 0 #000; }

/* Under the upload box: where the privacy policy says what happens to their photo. */
.photo-use { margin: 2px 0 0; }
.photo-use a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; }

/* The guarantee at the button, in the sales policy's terms. */
.guarantee { margin: 10px 0 14px; padding: 12px 14px; background: var(--soft); border-radius: 12px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.guarantee a { white-space: nowrap; }
.acc p + p { margin-top: -6px; }

/* "See it on…": the product and its price first, bold; the moment under it; words wrap whole. */
.so-tile .so-name { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 6px; line-height: 1.25; }
.so-tile .so-line { font-size: 14px; color: var(--muted); line-height: 1.3; }
.so-tile .so-name, .so-tile .so-line { overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* The cart: a trust line under Checkout. */
.cart-trust { margin: 0; text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 6px; }
.cta + .material { margin-top: -6px; text-align: center; }

/* The discount offers (Oct 19, src/offers.js): a sale's crossed-out regular price, its line, the note under the tiers. */
.price .was { font-size: 18px; font-weight: 500; color: var(--muted); margin-right: 4px; }
.size-price s, .cart-item strong s { color: var(--muted); font-weight: 500; margin-right: 3px; }
.sale-line { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--accent-dark, var(--accent)); }
/* ---- Round 3 (cro, Oct 19): true urgency and the offer lines. ---- */
/* The promo bar: the three real offers, still; each phrase kept whole, wrapping between them (two lines at 390 px). */
.promo { line-height: 1.35; padding: 7px 12px; }
.promo > span:not(.promo-sep) { display: inline-block; white-space: nowrap; }
@media (max-width: 520px) { .promo { font-size: 14px; } .promo .promo-sep:nth-of-type(4) { display: block; height: 0; overflow: hidden; } }
/* The delivery cutoff, under the dates: only while it is true (store.js deliveryCutoff). */
.cutoff { text-align: center; font-size: 16px; font-weight: 700; color: var(--ok); margin: -4px 0 10px; }
/* A sale's real end, by the price (store.js saleCountdown; nothing shows without a sale). */
.sale-ends { margin: 2px 0 0; font-size: 16px; font-weight: 700; color: var(--accent-dark); }
/* What every order comes with, under the Add button. */
.offers { list-style: none; margin: 12px 0 10px; padding: 0; display: grid; gap: 6px; font-size: 16px; color: var(--ink); }
.offers li { position: relative; padding-left: 26px; line-height: 1.35; }
.offers li::before { content: '✓'; position: absolute; left: 4px; top: 0; color: var(--ok); font-weight: 900; }
/* The email box: the field and the button each a full row, so the longer button reads at 390 px. */
.mm-input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #d9c6b5; border-radius: 999px; background: var(--bg); color: var(--ink); }
.mm-input:focus { outline: none; border-color: var(--accent); }
.mm-send { width: 100%; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 17px; padding: 13px 16px; }
.mm-send:disabled { opacity: 0.6; }
.mm-done strong { display: block; color: var(--ok); margin-bottom: 4px; }
.mm-done span { color: var(--ink); font-weight: 500; }
