/* Surf Trip Supply look, matching collab.surftrip.supply: sky blue, cream, sun yellow, strong black type. */
@font-face {
  font-family: "PacificoPro";
  src: url("https://cdn.shopify.com/s/files/1/0315/6226/8812/files/PacificoPro-Regular.woff?v=1776134020") format("woff");
  font-weight: 400;
  font-display: swap;
}
:root {
  --sky: #a9d3ed; --cream: #faf1e8; --sun: #fed228; --sun-soft: #fdeb92; --orange: #e39724;
  --ink: #111111; --ink-2: #3b3b3b; --muted: #5d6670; --line: rgba(17,17,17,.12);
  --ok: #17704a; --warn: #9a4b00; --danger: #a3261b;
  --bg: var(--cream); --panel: #ffffff;
  --accent: var(--ink); --accent-ink: var(--cream); --accent-soft: var(--sun-soft);
  --warn-soft: #fbe3c8; --block: #cfe6f6; --block-line: #2f7fb6; --booking: #111111; --booking-soft: var(--sun-soft);
  --radius: 14px; --gutter: 20px;
  --sans: "Funnel Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --script: "PacificoPro", "Funnel Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 17px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
body.public {
  background-color: var(--sky);
  /* The shop photo, washed almost all the way to sky blue so the type stays crisp. */
  background-image: linear-gradient(rgba(169,211,237,.9), rgba(169,211,237,.9)), url("/store.jpg?v=1");
  background-position: center top; background-size: cover; background-repeat: no-repeat;
  min-height: 100vh;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.pub-head { display: flex; justify-content: center; padding: calc(env(safe-area-inset-top) + 24px) var(--gutter) 0; }
.pub-head img { height: 56px; width: auto; display: block; }
.wrap { max-width: 560px; margin: 0 auto; padding: 24px var(--gutter) 56px; }
.wrap.wide { max-width: 1200px; }
.script { font-family: var(--script); font-weight: 400; font-size: clamp(32px, 9.5vw, 54px); line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
html, body { overflow-x: hidden; }
.lede { margin: 12px 0 24px; text-align: center; font-size: 18px; color: var(--ink-2); }
.card { display: grid; gap: 14px; padding: 24px 20px; border-radius: 20px; background: var(--cream); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
h2 { font-size: 20px; font-weight: 800; margin: 24px 0 8px; }
.steps { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 26px 0 10px; }
.steps .opt { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* Buttons */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border: 2px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
button:active { transform: translateY(1px); }
button.primary, .btn-sun { background: var(--sun); border-color: var(--sun); }
button.big { min-height: 58px; font-size: 17px; }
button.wide { display: flex; width: 100%; }
button.danger { color: var(--danger); border-color: var(--danger); }
button.ghost { border-color: var(--line); font-weight: 600; letter-spacing: .02em; text-transform: none; }
button:disabled { opacity: .5; cursor: default; transform: none; }
button.chip { min-height: 44px; padding: 0 14px; border-width: 1.5px; border-color: rgba(17,17,17,.28); background: #fff; font-size: 15px; letter-spacing: .02em; text-transform: none; font-weight: 600; }
button.chip.on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Forms */
label { display: block; font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 14px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid rgba(17,17,17,.28); border-radius: 12px; background: #fff; font-size: 17px;
}
textarea { min-height: 96px; resize: vertical; }
select.inline, input.inline { width: auto; display: inline-block; min-height: 44px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.error { color: var(--danger); font-weight: 600; font-size: 14px; margin: 10px 0 0; }
.notice { background: var(--warn-soft); color: var(--warn); padding: 10px 12px; border-radius: 12px; margin: 10px 0; }
.ok { background: var(--sun-soft); padding: 12px 16px; border-radius: 12px; margin: 10px 0; font-weight: 600; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.hidden { display: none !important; }
.thanks { text-align: center; padding: 30px 26px 28px; gap: 0; }
.thanks .script { font-size: clamp(30px, 8vw, 40px); margin: 0 0 14px; }
.done-day { margin: 0; font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.done-time { margin: 4px 0 0; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.done-note { margin: 18px auto 0; max-width: 30ch; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Booking page */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.days button { text-align: left; justify-content: flex-start; line-height: 1.2; min-height: 56px; padding: 8px 14px; }
.days button span { display: grid; }
.days button small { font-size: 13px; color: var(--muted); font-weight: 500; }
.days button.on small { color: inherit; opacity: .8; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }

/* Owner calendar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
  padding: calc(env(safe-area-inset-top) + 8px) var(--gutter) 8px; margin: 0 calc(-1 * var(--gutter)) 12px; background: var(--sky); }
.topbar .brand img { display: block; height: 36px; width: auto; }
.topbar h1 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); }
.topbar button { min-height: 38px; padding: 0 12px; font-size: 12px; border-width: 1.5px; background: transparent; }
.topbar button.ghost { border-color: rgba(17,17,17,.3); }
.topbar label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.topbar select { min-height: 38px; padding: 0 10px; font-size: 16px; border-radius: 10px; }
/* iOS zooms the page when a field under 16px gets focus, and double-tap zooms anywhere; neither belongs in the owner app. */
body.app { touch-action: manipulation; }
body.app input, body.app select, body.app textarea { font-size: 16px; }
.wrap.wide { padding-top: 0; }
@media (max-width: 560px) { .topbar .brand img { height: 33px; } }
.cal-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cal { display: grid; grid-template-columns: 56px repeat(7, minmax(110px, 1fr)); min-width: 840px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.cal.day { grid-template-columns: 56px 1fr; min-width: 0; }
.cal .corner, .cal .dayhead { position: sticky; top: 0; background: #fff; z-index: 3; border-bottom: 1px solid var(--line); padding: 8px 6px; }
.cal .dayhead { text-align: center; }
.cal .dayhead .dname { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.cal .dayhead.today .dname { color: var(--orange); }
.cal .dayhead.past { opacity: .55; }
.cal .dayhead input { margin-top: 6px; min-height: 32px; padding: 4px 6px; font-size: 16px; text-align: center; border-radius: 8px; }
.cal.day .dayhead { display: flex; gap: 12px; align-items: center; justify-content: center; }
.cal.day .dayhead input { margin-top: 0; max-width: 180px; }
.cal .timecol { position: relative; border-right: 1px solid var(--line); }
.cal .timecol div { font-size: 11px; color: var(--muted); text-align: right; padding-right: 6px; transform: translateY(-50%); position: absolute; right: 0; }
.cal .timecol div:first-child { transform: translateY(2px); }
.cal .timecol div:last-child { transform: translateY(-100%); }
.cal .daycol { position: relative; border-right: 1px solid var(--line); touch-action: pan-y; }
.cal.painting .daycol { touch-action: none; }
.cal .daycol.past { background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(17,17,17,.05) 8px 10px); }
.cell { position: absolute; left: 0; right: 0; border-top: 1px solid transparent; }
.cell.hour { border-top-color: var(--line); }
.cell.half { border-top-color: rgba(17,17,17,.06); }
.cell.on { background: var(--block); }
.cell.on.first { border-top: 2px solid var(--block-line); }
.bk { position: absolute; left: 4px; right: 4px; background: var(--booking-soft); border-left: 3px solid var(--booking); border-radius: 8px; padding: 2px 6px; font-size: 11px; line-height: 1.15; overflow: hidden; cursor: pointer; z-index: 2; white-space: nowrap; text-overflow: ellipsis; }
.bk.short { padding-top: 0; padding-bottom: 0; display: flex; align-items: center; gap: 4px; }
.bk.short b { display: inline; }
.bk.cancelled { opacity: .45; text-decoration: line-through; }
.bk.outside { border-left-color: var(--orange); background: var(--warn-soft); }
.bk.dbl1 { border-left-color: var(--orange); background: #fbe3c8; }
.bk.dbl2 { border-left-color: var(--block-line); background: var(--block); }
.legend .l-dbl::before { background: #fbe3c8; border-left: 3px solid var(--orange); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.rowlink { display: grid; gap: 2px; }
.row-name { font-weight: 800; font-size: 18px; text-transform: uppercase; }
.row-meta { color: var(--ink-2); font-size: 15px; }
.row-status { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.rec-status { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--sun-soft); font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; vertical-align: middle; }
.visit-row.cancelled .row-name { color: var(--muted); }
.empty-line { padding: 24px 0; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.bk b { display: block; font-weight: 800; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 8px 0 10px; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.legend .l-block::before { background: var(--block); border: 1px solid var(--block-line); }
.legend .l-bk::before { background: var(--booking-soft); border-left: 3px solid var(--booking); }
.legend .l-out::before { background: var(--warn-soft); border-left: 3px solid var(--orange); }
.touch-hint { display: none; }
@media (hover: none) and (pointer: coarse) { .mouse-hint { display: none; } .touch-hint { display: inline; } }
.daystrip { display: none; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
.daystrip button { display: flex; flex-direction: column; justify-content: center; padding: 6px 0; min-height: 54px; line-height: 1.15; border-radius: 12px; font-size: 12px; border-width: 1.5px; border-color: var(--line); background: #fff; letter-spacing: .04em; }
.daystrip button small { display: block; color: var(--muted); font-size: 14px; font-weight: 800; letter-spacing: 0; }
.daystrip button.has { box-shadow: inset 0 -3px 0 var(--block-line); }
.daystrip button.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.daystrip button.on small { color: inherit; opacity: .8; }
.daystrip button.today:not(.on) { color: var(--orange); }
.daystrip button.today:not(.on) small { color: var(--orange); }
.daystrip button.past { opacity: .5; }
@media (max-width: 699px) {
  .daystrip { display: grid; }
  .topbar h1, .topbar label[for="defdur"] { display: none; }
  .visits .when { min-width: 0; }
  .visits li { flex-wrap: wrap; }
}

.popover-bg { position: fixed; inset: 0; background: rgba(17,17,17,.4); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.popover { background: var(--cream); border-radius: 20px; padding: 22px 20px; width: 100%; max-width: 380px; }
.popover h3 { font-size: 22px; font-weight: 800; text-transform: uppercase; margin: 0 0 4px; }
.visits ul { list-style: none; margin: 0; padding: 0; }
.visits li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 6px 10px; align-items: center; }
.visits li:last-child { border-bottom: 0; }
.visits .when { min-width: 150px; font-weight: 800; }

/* Landing + booking flow */
.landing .script { font-size: clamp(26px, 7.2vw, 44px); white-space: nowrap; }
.sub-script { display: block; font-size: .55em; line-height: 1.1; margin-top: 2px; letter-spacing: .04em; }
.welcome { margin: 18px 0 0; text-align: center; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.welcome p { margin: 0; }
.welcome .sig { margin-top: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--ink); }
.landing .btn { margin-top: 26px; }
.btn.big { min-height: 58px; font-size: 17px; }
.btn.wide { display: flex; width: 100%; }
.req { color: var(--orange); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pub-foot { margin-top: 48px; text-align: center; font-size: 13px; }
.pub-foot .addr { margin: 0 0 10px; color: var(--ink); font-size: 15px; font-weight: 600; }
.landing .hint { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.pub-foot a { color: var(--ink-2); opacity: .7; text-decoration: none; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
#turnstile:empty { display: none; }
#turnstile { min-height: 0; }
