/* Rosie Dough — shared structure (each variant theme layers on top) */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head p { opacity: 0.8; }

/* announcement bar */
.announce { text-align: center; padding: 9px 16px; font-size: 0.88rem; }
#special-notice { text-align: center; padding: 10px 16px; font-size: 0.9rem; background: #fff3cd; color: #7a5c10;
  border-bottom: 1px solid rgba(0,0,0,0.06); }

/* holiday hours + pickup instructions (owner-editable) */
#hours-list .holiday-head { display: block; margin-top: 12px; padding: 4px 0; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.65; border-bottom: none; }
#hours-list .holiday strong { font-weight: 600; font-size: 0.9rem; }
#pickup-instructions { font-size: 0.88rem; line-height: 1.55; margin: 14px 0 0; padding-top: 12px;
  border-top: 1px dashed rgba(0,0,0,0.15); }

/* nav */
.nav { display: flex; align-items: center; gap: 24px; padding: 10px 24px; position: sticky; top: 0; z-index: 50; }
.nav .logo-slot { flex: 0 0 auto; }
.nav .logo-slot .logo-svg { height: 54px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 0.95rem; }
.nav-links a { text-decoration: none; }
.cart-button { position: relative; display: inline-flex; align-items: center; gap: 8px; border: none; }
.cart-count { position: absolute; top: -7px; right: -9px; min-width: 19px; height: 19px; border-radius: 10px;
  font-size: 0.7rem; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* cookie grids */
.cookie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 26px; }
.cookie-card { display: flex; flex-direction: column; overflow: hidden; }
.card-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.cookie-card:hover .card-img-wrap img { transform: scale(1.05) rotate(2deg); }
.cookie-card.sold-out .card-img-wrap img { filter: grayscale(0.7) opacity(0.75); }
.badge { position: absolute; top: 12px; left: 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-top h3 { margin: 0; }
.card-body p { margin: 0; font-size: 0.92rem; line-height: 1.55; flex: 1; }
.price { font-weight: 700; white-space: nowrap; }
.btn { border: none; padding: 12px 22px; border-radius: 999px; font-weight: 700; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:not(:disabled):hover { transform: translateY(-2px); }
.btn:disabled { cursor: not-allowed; opacity: 0.6; }
.vote-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.vote-count { font-size: 0.78rem; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,0.35); }
.empty-note { text-align: center; opacity: 0.7; grid-column: 1 / -1; }

/* how-it-works strip */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.step { text-align: center; padding: 26px 18px; }
.step .step-num { font-size: 1.9rem; display: block; margin-bottom: 8px; }
.step h3 { margin: 4px 0 8px; }
.step p { margin: 0; font-size: 0.92rem; opacity: 0.85; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.03em; }
.field input, .field select, .field textarea { padding: 11px 14px; border-radius: 10px; border: 1.5px solid rgba(0,0,0,0.14); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.checkbox-row input { width: auto; }
.form-card { max-width: 720px; margin: 0 auto; padding: 32px; }
.form-success { display: none; text-align: center; padding: 30px; }
.form-success.show { display: block; }

/* info section */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; align-items: start; }
.info-card { padding: 26px; }
.info-card h3 { margin-top: 0; }
#hours-list { list-style: none; margin: 0; padding: 0; }
#hours-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(0,0,0,0.15); }
#policies-list { margin: 0; padding-left: 20px; }
#policies-list li { margin-bottom: 9px; font-size: 0.92rem; line-height: 1.5; }
.pay-chip { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  margin: 4px 6px 0 0; text-decoration: none; }

/* footer */
footer { padding: 40px 0 90px; text-align: center; font-size: 0.85rem; }
#cottage-disclaimer { max-width: 640px; margin: 14px auto 0; font-size: 0.75rem; opacity: 0.65; line-height: 1.5; }

/* cart drawer */
#drawer-backdrop { position: fixed; inset: 0; background: rgba(30,10,20,0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 90; }
#drawer-backdrop.show { opacity: 1; pointer-events: auto; }
#cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); background: #fff; z-index: 100;
  transform: translateX(105%); transition: transform 0.3s ease; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,0.18); }
#cart-drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.drawer-head h3 { margin: 0; }
.drawer-close { background: none; border: none; font-size: 1.3rem; }
#cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(0,0,0,0.1); }
.cart-line img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.cart-line-info { flex: 1; display: flex; flex-direction: column; font-size: 0.9rem; }
.qty-controls { display: flex; align-items: center; gap: 9px; }
.qty-controls button { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.2); background: #fff; line-height: 1; }
.line-remove { background: none; border: none; opacity: 0.5; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid rgba(0,0,0,0.08); }
.drawer-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; }
.drawer-foot .btn { width: 100%; }
.drawer-note { font-size: 0.78rem; opacity: 0.7; text-align: center; margin: 10px 0 0; }

/* modals */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 110;
  background: rgba(30,10,20,0.5); padding: 20px; }
.modal.open { display: flex; }
.modal-card { background: #fff; border-radius: 22px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 30px; position: relative; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.25rem; opacity: 0.6; }
.field-hint { font-size: 0.8rem; opacity: 0.75; margin: 6px 0 0; }
/* inspiration photos on inquiry forms */
.photo-field input[type=file] { width: 100%; padding: 9px 10px; font-size: 0.88rem; }
.photo-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-previews:empty { display: none; }
.photo-previews img, .photo-previews .photo-tile { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(0,0,0,0.12); }
.photo-previews .photo-tile { display: grid; place-items: center; font-size: 1.6rem; background: rgba(0,0,0,0.04); }
/* holiday pre-order pop-up */
.holiday-pop .modal-card { max-width: 440px; }
.holiday-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.holiday-choices .btn { width: 100%; }
.holiday-pop-dismiss { background: none; border: none; text-decoration: underline; opacity: 0.65; font-size: 0.88rem; }
.holiday-pop-dates { font-size: 0.82rem; opacity: 0.75; margin: 0 0 14px; line-height: 1.5; }
/* holiday pop-up steps: pick a holiday → shop or custom → custom inquiry form → thanks */
.holiday-pop [hidden] { display: none !important; }
.holiday-pop-icon { font-size: 2.4rem; line-height: 1; }
#holiday-pop-title:focus { outline: none; }
.holiday-pop.step-form .modal-card { max-width: 560px; }
.hp-step > .holiday-pop-dismiss { display: block; margin: 14px auto 0; }
.hp-paths { display: grid; gap: 10px; margin-bottom: 14px; }
.hp-path { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; width: 100%; padding: 14px 16px;
  text-align: left; font: inherit; color: inherit; background: #fff; border: 1.5px solid rgba(0,0,0,0.14); border-radius: 14px; cursor: pointer; }
.hp-path:hover, .hp-path:focus-visible { border-color: currentColor; }
.hp-path-icon { grid-row: span 2; font-size: 1.6rem; }
.hp-path strong { font-size: 1rem; }
.hp-path span:last-child { font-size: 0.85rem; opacity: 0.75; }
.hp-note { font-size: 0.88rem; line-height: 1.55; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,0.04); }
.hp-submit { text-align: center; }

/* payment step */
.pay-callout { background: #fff6e5; border: 1px solid #f0dcae; color: #6b4e10; border-radius: 12px;
  padding: 12px 16px; font-size: 0.92rem; line-height: 1.5; margin: 12px 0 16px; }
.pay-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-link { flex: 1; min-width: 180px; text-align: center; text-decoration: none; color: #fff; }
.pay-paypal { background: #003087; }
.pay-paypal:hover { background: #00256b; }
.pay-venmo { background: #008cff; }
.pay-venmo:hover { background: #0074d4; }
.pay-cashapp { background: #00892a; }
.pay-cashapp:hover { background: #006f21; }
/* Stripe Checkout — the primary, first-listed way to pay (review Oct 12) */
.pay-stripe { display: block; width: 100%; background: #635bff; color: #fff; border: none; font-size: 1.02rem; padding: 14px 20px; }
.pay-stripe:hover { background: #4f46e5; }
.pay-stripe:disabled { opacity: 0.6; cursor: wait; }
.pay-stripe-sub { font-size: 0.82rem; text-align: center; opacity: 0.75; margin: 8px 0 16px; }
.pay-or { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; opacity: 0.6; margin: 4px 0 12px; }
.pay-or::before, .pay-or::after { content: ''; flex: 1; border-top: 1px solid rgba(0,0,0,0.15); }
/* "Need to pay later?" — Chloe asked for it bolder and a touch bigger */
.pay-later-note { font-size: 0.9rem; font-weight: 700; line-height: 1.5; text-align: center; margin: 16px 0 0; opacity: 0.9; }

/* uploaded logo scales by the same height rules as the built-in SVG logos */
.logo-img { width: auto; object-fit: contain; }

/* cart tax breakdown */
.cart-subline { display: flex; justify-content: space-between; font-size: 0.87rem; opacity: 0.75; margin-bottom: 5px; }
.pay-confirm-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pay-confirm-row .btn { flex: 1; min-width: 160px; }
.pay-done { text-align: center; padding: 10px 0; }
#paypal-buttons:not(:empty) { margin-bottom: 14px; }

/* order lookup */
.lookup-status { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.lookup-step { padding: 5px 13px; border-radius: 999px; background: #ececec; color: #555; font-size: 0.78rem; font-weight: 700; opacity: 0.55; }
.lookup-step.done { background: #dff0e6; color: #2c7a52; opacity: 0.85; }
.lookup-step.active { background: #2c2330; color: #fff; opacity: 1; }
.lookup-pay { font-size: 0.92rem; border-radius: 10px; padding: 10px 14px; }
.lookup-pay.ok { background: #e3f5ec; color: #256e4b; }
.lookup-pay.pending { background: #fdf1dd; color: #8a6215; }
.lookup-pay.due { background: #fbe3e6; color: #99364a; }
.lookup-order { border-top: 1px dashed rgba(0,0,0,0.15); margin-top: 16px; }

/* visual edit mode */
body.rd-editing { padding-top: 54px; }
body.rd-editing .editable-region { outline: 2px dashed rgba(224, 87, 128, 0.65); outline-offset: 3px; cursor: text;
  transition: background 0.15s; border-radius: 2px; }
body.rd-editing .editable-region:hover { background: rgba(224, 87, 128, 0.07); }
body.rd-editing .editable-region:empty { min-height: 1.4em; min-width: 8em; }
body.rd-editing span.editable-region:empty { display: inline-block; vertical-align: bottom; }
/* text the owner cleared and saved (issue #16) — still shown in the visual editor so it can be filled in again */
body:not(.rd-editing) .cfg-empty { display: none !important; }
#rd-editbar .eb-fmt:disabled { opacity: 0.35; cursor: not-allowed; }
body.rd-editing .editable-region:focus { outline: 2px solid rgba(224, 87, 128, 0.95); background: rgba(255,255,255,0.6); }
#rd-editbar { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 400;
  background: #241d28; color: #fff; border-radius: 999px; padding: 8px 10px 8px 18px; display: flex; gap: 8px;
  align-items: center; font-size: 0.85rem; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: 0 10px 34px rgba(0,0,0,0.4); max-width: calc(100vw - 16px); }
#rd-editbar .eb-label { opacity: 0.75; white-space: nowrap; }
#rd-editbar button { border: none; border-radius: 999px; padding: 8px 14px; font-weight: 700; color: #fff; font-size: 0.82rem; }
#rd-editbar .eb-fmt { width: 36px; background: rgba(255,255,255,0.14); padding: 8px 0; }
#rd-editbar .eb-fmt:hover { background: rgba(255,255,255,0.28); }
#rd-editbar .eb-save { background: #3f9d6e; }
#rd-editbar .eb-save:hover { background: #338a5d; }
#rd-editbar .eb-exit { background: rgba(255,255,255,0.14); }
@media (max-width: 720px) { #rd-editbar .eb-label { display: none; } }

/* toast */
#rd-toast { position: fixed; bottom: 76px; left: 50%; transform: translate(-50%, 20px); background: #2c2330; color: #fff;
  padding: 12px 22px; border-radius: 999px; font-size: 0.9rem; opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 200; }
#rd-toast.show { opacity: 1; transform: translate(-50%, 0); }
#rd-toast.error { background: #b3364d; }

@media (max-width: 720px) {
  .nav-links a:not(.cart-button) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
}

/* discounts (Settings → Discounts, review Oct 12) */
.cart-subline.cart-discount { opacity: 1; color: #2f7a52; font-weight: 600; }
.checkout-summary { border-top: 1px dashed rgba(0, 0, 0, 0.15); padding-top: 10px; }
.checkout-summary .checkout-total { opacity: 1; font-weight: 700; font-size: 1rem; margin-top: 4px; }
.pay-discount, .lookup-discount { color: #2f7a52; font-weight: 600; font-size: 0.92rem; margin: 4px 0 10px; }
/* "order a dozen of a retired flavor and we'll bring it back" */
.comeback-dozen { text-align: center; max-width: 640px; margin: -6px auto 22px; font-size: 0.95rem; }
.comeback-dozen a { font-weight: 600; }
.comeback-link { display: block; text-align: center; font-size: 0.85rem; margin-top: 8px; opacity: 0.8; }
.comeback-link:hover { opacity: 1; }
