/* Sweet Nothings by M — shared styles */
:root {
  --navy: #1F2A44;
  --navy-2: #2C3756;
  --coral: #C65A4B;
  --coral-dark: #8E3A2E;
  --blush: #F7E3DD;
  --ground: #F5EEE9;
  --oat: #EDE3DA;
  --line: #EFE6E0;
  --field: #D6C7BE;
  --muted: #5E6577;
  --white: #FFFFFF;
  --error: #B23A2B;
  --ok: #1E5A35;
  --radius: 16px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--navy); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--coral); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Spam trap field: hidden from people (and screen readers); bots tend to fill it in. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

/* ---------- Prototype banner ---------- */
.proto-banner { background: var(--navy); color: #E4E7EE; font-size: 13px; text-align: center; padding: 8px 16px; }
.proto-banner a { color: var(--white); }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid #EADFD8; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 72px; height: 72px; object-fit: contain; }
.brand span { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.brand em { color: var(--coral); }
.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a { padding: 12px 12px; text-decoration: none; border-bottom: 2px solid transparent; }
.main-nav a[aria-current="page"] { font-weight: 600; border-bottom-color: var(--coral); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blush); }
.bag-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; margin-left: 6px; border: 0; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 600; cursor: pointer; text-decoration: none; }
.bag-btn:hover { color: var(--white); background: var(--navy-2); }
.bag-count { min-width: 22px; height: 22px; border-radius: 999px; background: var(--coral); color: var(--white); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

/* ---------- Hero / sections ---------- */
.hero { padding-top: 48px; padding-bottom: 24px; }
.eyebrow { margin: 0 0 8px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); font-weight: 600; }
.hero h1 { font-size: clamp(38px, 6vw, 56px); }
.hero p.lead { margin: 14px 0 0; font-size: 17px; color: var(--muted); max-width: 640px; }
.special { background: var(--blush); border-radius: var(--radius); padding: 16px 22px; display: flex; gap: 14px; align-items: center; }
.section { padding-top: 28px; padding-bottom: 72px; }
.section h2 { font-size: 34px; margin-bottom: 18px; }

/* ---------- Menu cards ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.card { background: var(--white); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31, 42, 68, .10); }
.card-media { height: 210px; display: flex; align-items: center; justify-content: center; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .tag { position: absolute; top: 14px; left: 14px; background: var(--white); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 28px; }
.card-body p { margin: 0; }
.card-body .desc { color: var(--muted); font-size: 15px; flex: 1; }
.card-body .desc p + p { margin-top: 8px; }
.card-body .price { margin-top: 6px; font-weight: 600; }
.card-body .price span { font-weight: 400; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--coral); color: var(--white); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: #B04E40; color: var(--white); }
.btn.block { width: 100%; }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--navy-2); }
.btn.ghost { background: var(--white); color: var(--navy); border: 1px solid var(--navy); }
.btn.ghost:hover { background: var(--ground); color: var(--navy); }
.btn.dashed { background: var(--white); color: var(--coral-dark); border: 1px dashed var(--coral); font-weight: 600; min-height: 44px; }
.btn.dashed:hover { background: #FBF3F0; color: var(--coral-dark); }
.btn[aria-disabled="true"] { background: #E9DCD5; color: var(--muted); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.link-btn { background: transparent; border: 0; padding: 6px 0; color: var(--coral-dark); font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.pill { min-height: 44px; min-width: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--field); background: var(--white); color: var(--navy); font-weight: 600; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choice { text-align: left; padding: 14px 16px; border-radius: 14px; border: 2px solid #E3D6CE; background: var(--white); color: var(--navy); cursor: pointer; min-height: 44px; }
.choice strong { display: block; }
.choice span { font-size: 13px; opacity: .85; }
.choice[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.step { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--field); background: var(--white); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; }
.step:hover { border-color: var(--navy); }
.step:disabled { opacity: .4; cursor: default; }
.x-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ground); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.input { width: 100%; padding: 12px 14px; border: 1px solid var(--field); border-radius: 10px; font: inherit; font-size: 16px; background: var(--white); color: var(--navy); min-height: 46px; }
textarea.input { resize: vertical; }
/* Date boxes: phones (iPhone Safari especially) give them a built-in minimum width wider than the screen. */
.field { min-width: 0; }
.input[type="date"] { display: block; min-width: 0; max-width: 100%; }
.input[type="date"]::-webkit-date-and-time-value { text-align: left; }
@supports (-webkit-touch-callout: none) {   /* iPhone / iPad only */
  .input[type="date"] { -webkit-appearance: none; appearance: none; }
}
.date-wrap { position: relative; max-width: 100%; }
.date-ph { display: none; }
/* iPhone / iPad (html.ios is set in config.js): Safari shows an empty date box with no "mm/dd/yyyy" hint, so add one. */
.ios .date-ph { display: block; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 16px; }
.ios .date-wrap.has-value .date-ph { display: none; }
.input:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--coral); }
.input[aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.err { font-size: 14px; color: var(--error); margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-2 .full { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; }
.upload { display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--field); border-radius: 12px; padding: 16px; cursor: pointer; background: #FBF7F4; }
.upload:hover { border-color: var(--coral); }
.upload:focus-within { outline: 2px solid var(--coral); outline-offset: 2px; }
.upload img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }

/* ---------- Slide-over panel ---------- */
.scrim { position: fixed; inset: 0; background: rgba(31, 42, 68, .45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.scrim.open { opacity: 1; pointer-events: auto; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 500px; background: var(--white); z-index: 50; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(31, 42, 68, .18); transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); visibility: hidden; }
.panel.open { transform: translateX(0); visibility: visible; }
.panel-head { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 30px; }
.panel-head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.panel-body { flex: 1; overflow-y: auto; padding: 20px 24px 28px; }
.panel-foot { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--white); }
.sec { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 22px; }
.sec.first { border-top: 0; padding-top: 0; margin-top: 0; }
/* Admin: small preview next to a photo link box. */
.photo-thumb { width: 46px; height: 46px; border-radius: 8px; background: var(--oat); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; color: var(--muted); font-size: 12px; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* A customer's photo in the admin (order review, messages). */
.cust-photo { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cust-photo img { display: block; width: 180px; height: 140px; object-fit: cover; border-radius: 10px; background: var(--oat); border: 1px solid var(--line); }
/* Checkout and "request sent" fill the screen, with the content in a centered column. */
.panel.full { max-width: none; box-shadow: none; }
.checkout-col { max-width: 680px; margin: 0 auto; width: 100%; }
.panel.full .panel-head { display: block; }
.checkout-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-head-row .link-btn { padding: 0 0 2px; }
.checkout-grand { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.sec h3 { font-size: 24px; margin-bottom: 14px; }
.flavor-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.flavor-row .badge { font-size: 12px; color: var(--coral); font-weight: 700; letter-spacing: .04em; }
.qty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.qty output { min-width: 32px; text-align: center; font-size: 18px; font-weight: 600; }
.bag-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-item .top { display: flex; justify-content: space-between; gap: 12px; }
.bag-item .detail { font-size: 14px; color: var(--muted); margin-top: 4px; }
.bag-item .note { font-size: 13px; color: var(--muted); margin-top: 4px; font-style: italic; }
.totals { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals .muted { color: var(--muted); }
.grand { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.grand strong:last-child { font-family: var(--serif); font-size: 34px; font-weight: 600; }
.missing { background: #FBEDEA; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; color: var(--coral-dark); }
.done { text-align: center; padding: 28px 8px; }
.done .check { width: 64px; height: 64px; border-radius: 50%; background: var(--blush); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.done h3 { font-size: 34px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--navy); color: var(--white); padding: 12px 14px 12px 20px; border-radius: 999px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 24px rgba(31, 42, 68, .25); z-index: 30; transition: opacity .25s ease, transform .25s ease; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: transparent; border: 0; color: var(--blush); font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 32px; white-space: nowrap; }

/* ---------- Content pages ---------- */
.content-card { background: var(--white); border-radius: 18px; padding: 32px; }
.content-card p { margin: 0 0 14px; }
.placeholder { background: var(--oat); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; padding: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.gallery-grid .placeholder { aspect-ratio: 1 / 1; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid #EADFD8; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Admin ---------- */
.admin-header { background: var(--navy); color: var(--white); }
.admin-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.admin-header .brand span { color: var(--white); }
.admin-header img { width: 48px; height: 48px; border-radius: 50%; background: var(--white); }
.admin-header a.btn { min-height: 42px; }
.admin-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 28px; padding-bottom: 96px; }
.admin-nav { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { padding: 12px 16px; border-radius: 10px; text-decoration: none; }
.admin-nav a:hover { background: var(--white); }
/* Admin tabs: the current one is highlighted; group labels; badges like "2 to review". */
.admin-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--navy); }
.admin-nav a[aria-current="page"] { background: var(--white); font-weight: 700; box-shadow: inset 3px 0 0 var(--coral); }
.admin-nav-group { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 16px 4px; }
.admin-nav-group:first-child { padding-top: 0; }
.nav-count { background: var(--coral); color: var(--white); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 900px) {   /* below this the menu would sit above the content as a long list */
  .admin-nav { flex: 1 1 100%; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .admin-nav-group { display: none; }
  .admin-nav a { white-space: nowrap; flex: none; padding: 10px 14px; }
  .admin-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--coral); }
}
/* Admin orders table: Review button first, details stacked so it fits a laptop without scrolling sideways. */
.orders-table td { vertical-align: top; padding-top: 14px; padding-bottom: 14px; }
.orders-table .order-cell { display: flex; gap: 12px; align-items: flex-start; }
.orders-table .order-cell .btn { flex: none; min-width: 78px; }
.orders-table .wrap-any { overflow-wrap: anywhere; min-width: 150px; }
/* Admin dashboard: week planner. */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.dash-head h2 { margin: 0; }
.dash-alert { background: #FDF0D5; color: #5C3A00; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.dash-tile { background: var(--ground); border-radius: 14px; padding: 14px 16px; }
.dash-tile .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dash-tile .v { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.dash-pend { display: block; font-size: 13px; color: #7A4B00; margin-top: 2px; }
.dash-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.dash-day { background: #FBF7F4; border-radius: 12px; padding: 10px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dash-day.today { box-shadow: inset 0 0 0 2px var(--coral); }
.dash-day-h { font-size: 13px; font-weight: 700; color: var(--navy); }
.dash-order { text-align: left; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px; padding: 8px; font: inherit; font-size: 13px; color: var(--navy); cursor: pointer; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.dash-order span { color: var(--muted); font-size: 12px; }
.dash-order.pending { border-style: dashed; border-left-style: solid; background: #FFFBF4; }
.dash-order:hover { border-color: var(--coral); }
.dash-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.dash-h4 { font-family: var(--sans); font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
.dash-line { font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.dash-table td { padding: 6px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.dash-table td:last-child { text-align: right; font-weight: 700; padding-left: 12px; white-space: nowrap; }
.dash-table tr.dash-total td { border-bottom: 0; border-top: 2px solid var(--line); font-weight: 700; color: var(--navy); }
.dash-grand { margin-top: 14px; }
.dash-grand tr.dash-total td { background: var(--ground); padding: 10px 12px; border-top: 0; font-size: 16px; }
.dash-grand tr.dash-total td:first-child { border-radius: 10px 0 0 10px; }
.dash-grand tr.dash-total td:last-child { border-radius: 0 10px 10px 0; }
.dash-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.dash-checks li { display: flex; gap: 10px; align-items: flex-start; }
.dash-checks li > span:first-child { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.dash-checks li.ok > span:first-child { background: #DDEFE3; color: #1E5A35; }
.dash-checks li.warn > span:first-child { background: #FBEDEA; color: #B23A2B; }
@media (max-width: 1100px) { .dash-cal { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
@media print {
  .admin-nav, .admin-header, .proto-banner, .save-bar, .dash-nav, .toast, #settings-title { display: none !important; }
  .admin-main > .panel-card:not(#dashboard) { display: none !important; }
  .dash-cal { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
/* The admin uses more of a wide screen than the public site (tables and forms need the room). */
.admin-header .wrap, .wrap.admin-layout { max-width: 1440px; }
.admin-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.admin-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.admin-title h1 { font-size: 44px; }
.admin-title p { margin: 6px 0 0; color: var(--muted); }
.panel-card { background: var(--white); border-radius: var(--radius); padding: 26px; scroll-margin-top: 90px; }
.panel-card h2 { font-size: 28px; margin-bottom: 4px; }
.panel-card .sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.input-wrap { display: flex; align-items: center; border: 1px solid var(--field); border-radius: 10px; background: var(--white); min-height: 46px; padding: 0 12px; gap: 6px; }
.input-wrap:focus-within { outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--coral); }
.input-wrap input { border: 0; outline: 0; font: inherit; font-size: 16px; width: 100%; min-width: 0; padding: 11px 0; background: transparent; color: var(--navy); }
.input-wrap span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid #EADFD8; white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid #F1E9E4; vertical-align: middle; }
td.nowrap { white-space: nowrap; }
td .input, td .input-wrap { min-height: 40px; }
td .input { padding: 8px 10px; }
.status { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--field); font: inherit; font-size: 13px; font-weight: 600; background: var(--white); color: var(--navy); min-height: 36px; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px; border: 0; background: transparent; cursor: pointer; font-size: 14px; }
.switch .track { width: 40px; height: 24px; border-radius: 999px; background: #CFC3BB; position: relative; flex: none; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: left .2s; }
.switch[aria-checked="true"] .track { background: var(--navy); }
.switch[aria-checked="true"] .track::after { left: 19px; }
.icon-del { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-del:hover { background: var(--ground); color: var(--error); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--ground); padding: 4px 6px 4px 14px; border-radius: 999px; font-size: 14px; }
.chip button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.save-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--navy); color: var(--white); z-index: 20; transform: translateY(100%); transition: transform .25s ease; }
.save-bar.show { transform: translateY(0); }
.save-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.empty-row td { color: var(--muted); text-align: center; padding: 24px; }

/* ---------- Email preview ---------- */
.email-wrap { max-width: 640px; margin: 32px auto; padding: 0 16px; }
.email-meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.email { background: var(--white); border-radius: 16px; overflow: hidden; }
.email-top { text-align: center; padding: 28px 28px 8px; }
.email-top img { width: 110px; height: 110px; object-fit: contain; margin: 0 auto; }
.email-top h1 { margin-top: 10px; font-size: 36px; }
.email-body { padding: 20px 28px; display: flex; flex-direction: column; gap: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; font-size: 14px; }
.facts .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.facts .v { font-weight: 600; margin-top: 2px; }
.email-foot { background: var(--navy); color: var(--white); text-align: center; padding: 18px; font-size: 14px; }
.email-foot a { color: var(--white); }

@media (max-width: 640px) {
  .brand img { width: 56px; height: 56px; }
  .brand span { font-size: 19px; }
  .main-nav a { padding: 10px 8px; font-size: 15px; }
  .grid-2, .facts { grid-template-columns: minmax(0, 1fr); }
  .content-card { padding: 22px; }
  .panel-body, .panel-head, .panel-foot { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Pricing note ---------- */
.note-box { background: var(--blush); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }

/* ---------- Admin: order review ---------- */
.status-badge { display: inline-block; padding: 5px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; white-space: nowrap; }
.count-pill { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 4px 10px; border-radius: 999px; background: var(--coral); color: var(--white); font-family: var(--sans); font-size: 13px; font-weight: 700; }
tr.row-pending td { background: #FFFBF4; }
.review-panel { max-width: 620px; }
.rv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; background: var(--ground); border-radius: 12px; padding: 14px 16px; }
.rv-facts .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.rv-facts .v { font-weight: 600; margin-top: 2px; }
.rv-h { font-size: 24px; margin: 22px 0 10px; }
.rv-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rv-quote { font-size: 14px; background: #FBF7F4; border-radius: 10px; padding: 10px 12px; margin-top: 6px; font-style: italic; color: var(--navy); }
.rv-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.inv-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 120px 84px 40px; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
.inv-desc { grid-column: 1 / -1; }
.inv-row .input, .inv-row .input-wrap { min-height: 42px; }
.inv-row .input { padding: 9px 12px; }
.inv-amt { font-weight: 600; text-align: right; padding-bottom: 10px; font-variant-numeric: tabular-nums; }
@media (min-width: 560px) {
  .inv-row { grid-template-columns: minmax(0, 1fr) 72px 116px 80px 40px; }
  .inv-desc { grid-column: auto; }
}
@media (max-width: 559px) {
  .inv-row { grid-template-columns: 80px 120px minmax(0, 1fr) 40px; }
  .rv-facts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Request email: not-final notice ---------- */
.not-final { border: 2px solid var(--coral); background: #FFF6F3; border-radius: 12px; padding: 16px 18px; font-size: 15px; }
.not-final-tag { display: inline-block; background: var(--coral); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.next-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; font-size: 15px; }
.next-steps li::before { content: counter(step); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--ground); border: 1px solid var(--field); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.next-steps li.done-step::before { content: "\2713"; background: var(--navy); border-color: var(--navy); color: var(--white); }
.next-steps li span { color: var(--muted); font-size: 14px; }

/* ---------- Landing page ---------- */
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
.landing-hero { padding-top: 56px; padding-bottom: 32px; }
.landing-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; }
.landing-hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; }
.landing-hero .lead { margin: 16px 0 0; font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-photo { position: relative; aspect-ratio: 5 / 4; border-radius: 28px; background: var(--blush); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-photo .tag { position: absolute; top: 16px; left: 16px; background: var(--white); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.hero-photo .hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-logo { width: 58%; max-width: 300px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; box-shadow: 0 18px 40px rgba(31, 42, 68, .14); }
.band { background: var(--white); padding-top: 52px; padding-bottom: 52px; }
.how-steps { list-style: none; margin: 0; padding: 0; counter-reset: how; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.how-steps li { counter-increment: how; display: flex; flex-direction: column; gap: 6px; }
.how-steps li::before { content: counter(how); width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: var(--coral-dark); font-family: var(--serif); font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.how-steps strong { font-size: 17px; }
.how-steps span { color: var(--muted); font-size: 15px; }
.cta-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.cta-split .content-card p { margin-bottom: 18px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq { background: var(--white); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 17px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--coral); border-bottom: 2px solid var(--coral); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 14px; }
.faq-a { padding: 0 22px 20px; color: var(--muted); white-space: pre-line; line-height: 1.6; }
.faq-cta { max-width: 860px; margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.side-card { background: var(--white); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.side-card h2 { font-size: 26px; }
.side-card a.row-link { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; min-height: 44px; }

/* ---------- Admin: FAQ + messages ---------- */
.faq-edit { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.faq-edit-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.faq-edit-top .num { font-weight: 700; color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.mini-btn { width: 36px; height: 36px; border: 1px solid var(--field); border-radius: 8px; background: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); }
.mini-btn:disabled { opacity: .35; cursor: default; }
.msg { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.msg.unread { border-color: var(--coral); background: #FFFBF9; }
.msg-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.msg-body { white-space: pre-line; font-size: 15px; }

/* ---------- Quantity dropdowns ---------- */
.qty-select { width: auto; min-width: 150px; min-height: 44px; padding: 8px 12px; font-size: 16px; font-weight: 600; text-align: center; cursor: pointer; font-variant-numeric: tabular-nums; }
.qty-select-sm { min-width: 0; width: 76px; padding: 8px 6px; }

/* ---------- Flavor limit ---------- */
.flavor-name { font-weight: 600; }
.flavor-row.locked .flavor-name, .flavor-row.locked .badge { color: var(--muted); opacity: .55; }
.flavor-row.locked .qty { opacity: .45; }
.lock-note { font-size: 12px; color: var(--muted); }
.qty-select:disabled { cursor: not-allowed; background: var(--ground); }

/* ---------- Preview mode banner ---------- */
.preview-banner { position: sticky; top: 0; z-index: 35; background: #FDF0D5; color: #5C3A00; border-bottom: 1px solid #E8CF9C; font-size: 14px; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; text-align: center; }
.preview-banner button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #5C3A00; background: transparent; color: #5C3A00; font-weight: 700; cursor: pointer; }
.qm-panel { max-width: 460px; }

/* Maintenance mode: the "back soon" page replaces the site for visitors (layout.js). */
html.sn-maint-wait body > * { visibility: hidden; }
html.sn-maint body > *:not(#maint) { display: none !important; }
.maint { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: var(--ground); }
.maint-card { width: 100%; max-width: 560px; background: var(--white); border-radius: var(--radius); padding: 40px 28px; text-align: center; box-shadow: 0 10px 40px rgba(31, 42, 68, .08); }
.maint-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; display: block; }
.maint-card h1 { margin: 0; font-size: clamp(32px, 7vw, 44px); }
.maint-card .lead { margin: 14px auto 0; font-size: 17px; color: var(--muted); max-width: 440px; }
.maint-card .btn { margin-top: 24px; gap: 8px; }
.maint-card .btn svg { width: 18px; height: 18px; }
.maint-pw { margin-top: 28px; font-size: 14px; color: var(--muted); }
.maint-pw summary { cursor: pointer; display: inline-block; }
.maint-pw form { margin-top: 12px; }
.maint-pw .input { max-width: 220px; }
.maint-pw .err { margin-top: 8px; }
/* Admin: the maintenance mode box (Website pages tab), highlighted while the site is closed. */
.maint-admin { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 4px 0 8px; background: var(--ground); }
.maint-admin.on { border-color: var(--coral); background: var(--blush); }
/* Admin "are you sure?" box (admin.js ask()). */
.ask-wrap { position: fixed; inset: 0; z-index: 200; background: rgba(31, 42, 68, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ask-box { width: 100%; max-width: 460px; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: 0 20px 60px rgba(31, 42, 68, .25); }
.ask-box h2 { margin: 0 0 10px; font-size: 26px; }
.ask-box p { margin: 0 0 10px; }
.ask-box ul { margin: 0 0 12px; padding-left: 20px; }
.ask-box li { margin: 0 0 6px; }
.ask-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn.danger { background: var(--error); border-color: var(--error); color: var(--white); }
/* Photo picker (order and contact pages): previews with a remove button, up to 5. */
.photo-picks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.photo-pick { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--oat); border: 1px solid var(--line); }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick.loading { animation: photo-pulse 1s ease-in-out infinite alternate; }
@keyframes photo-pulse { from { opacity: .5; } to { opacity: 1; } }
.photo-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(31, 42, 68, .75); color: var(--white); font-size: 16px; line-height: 24px; padding: 0; cursor: pointer; }
.photo-x:hover, .photo-x:focus-visible { background: var(--navy); }
.cust-photo-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cust-photo-row img { width: 120px; height: 100px; }
.cust-photo-row a:only-child img { width: 180px; height: 140px; }
/* Admin Messages: replies sent from the admin, and the reply box. */
.msg-reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--coral); background: var(--ground); border-radius: 0 10px 10px 0; font-size: 14px; white-space: pre-wrap; }
.msg-reply .hint { display: block; margin-bottom: 4px; white-space: normal; }
.msg-write { margin-top: 10px; }
/* "This page has been updated" banner for a tab left open across a publish (layout.js). */
.update-banner { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; border-top: 1px solid #E8CF9C; border-bottom: 0; }
/* Privacy and Terms pages. */
.legal { max-width: 820px; font-size: 16px; line-height: 1.65; }
.legal h2 { font-size: 26px; margin: 28px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin: 0 0 6px; }
.legal a { color: var(--coral-dark); }
