/* Shop setup form (/setup). Builds on home.css tokens. */
.setup-page { background: var(--paper); }
.setup-page .header-inner { min-height: 72px; }
.setup-page .logo-mark { font-size: 1.15rem; }
.setup-help { color: var(--muted); font-size: .875rem; font-weight: 600; text-decoration: none; }
.setup-help:hover { color: var(--ink); text-decoration: underline; }
.setup-main { max-width: 820px; padding-block: 3rem 4rem; }
.setup-intro h1 { margin-top: 1rem; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -.05em; }
.setup-intro > p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); max-width: 36rem; }
.setup-intro .eyebrow { color: var(--green); }
.setup-form { margin-top: 2rem; display: grid; gap: 1.25rem; }
.setup-card { margin: 0; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.75rem 1.75rem 1.25rem; }
.setup-card legend { float: left; width: 100%; padding: 0; margin-bottom: 1.25rem; font-size: 1.25rem; font-weight: 750; letter-spacing: -.03em; display: flex; align-items: center; gap: .6rem; }
.setup-card legend + * { clear: both; }
.step-no { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .5rem; background: var(--ink); color: var(--yellow); font-size: .9rem; }
.tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: #f5ece1; color: #6b4a22; border-radius: 99px; padding: .15rem .6rem; }
.field { margin-bottom: 1.1rem; min-width: 0; }
.field > label, .field .label { display: block; font-size: .875rem; font-weight: 650; margin-bottom: .4rem; }
.unit-label { font-weight: 500; color: var(--muted); }
.hint { margin-top: .35rem; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.setup-card > .hint { margin: -.6rem 0 1rem; }
.setup-form input:not([type="checkbox"]):not([type="radio"]), .setup-form select {
  display: block; width: 100%; min-width: 0; min-height: 48px; padding: .65rem .8rem; border: 1px solid #b7c5bd; border-radius: .5rem; background: #fff; color: var(--ink); font-size: 1rem; }
.setup-form input:focus, .setup-form select:focus { border-color: #32756b; }
.field-narrow input { max-width: 9rem; }
.grid-2, .grid-3 { display: grid; gap: 0 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: 1fr 1fr 1.6fr; }
.choice-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice-stack { display: grid; gap: .6rem; }
.choice, .day { position: relative; cursor: pointer; }
.choice input, .day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice > span, .day > span { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: .6rem 1.1rem; border: 1px solid #b7c5bd; border-radius: .6rem; font-weight: 650; background: #fff; }
.choice-wide > span { padding: .8rem 1rem; }
.choice small { display: block; font-weight: 450; color: var(--muted); font-size: .8125rem; }
.choice input:checked + span, .day input:checked + span { background: #fff6d6; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + span, .day input:focus-visible + span { outline: 3px solid #32756b; outline-offset: 2px; }
.day-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.day > span { align-items: center; padding: .6rem .2rem; font-size: .875rem; }
.service-rows { display: grid; gap: .75rem; }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 2.6rem; gap: .75rem; align-items: start; padding: .9rem; border: 1px solid var(--line); border-radius: .75rem; background: #fbfbf7; }
.service-row .field { margin-bottom: 0; }
.service-row > .field-msg { grid-column: 1 / -1; margin-top: -.2rem; }
.dur { display: flex; align-items: center; gap: .4rem; }
.setup-form .dur input[type="number"] { width: 4.5rem; flex: 0 0 auto; }
.setup-form .dur select { width: 5rem; flex: 0 0 auto; }
.dur span { font-size: .875rem; color: var(--muted); }
.row-remove { margin-top: 1.7rem; width: 2.6rem; height: 48px; border: 1px solid var(--line); border-radius: .5rem; background: #fff; color: var(--muted); font-size: 1.4rem; line-height: 1; }
.row-remove:hover { color: #a22b22; border-color: #e2b3ab; }
.add-row { margin-top: .75rem; background: #fff; border-color: var(--ink); color: var(--ink); }
.prefix { position: relative; }
.prefix > span { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.setup-form .prefix input[type="number"] { padding-left: 1.7rem; }
.field > label.switch, .field > label.check, .switch, .check { display: flex; margin-bottom: 0; align-items: flex-start; gap: .75rem; font-weight: 600; font-size: .95rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { flex: 0 0 auto; width: 2.9rem; height: 1.65rem; border-radius: 99px; background: #c9cfc7; position: relative; transition: background-color 150ms; }
.switch-ui::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; transition: transform 150ms; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + .switch-ui { background: var(--green); }
.switch input:checked + .switch-ui::after { transform: translateX(1.25rem); }
.switch input:focus-visible + .switch-ui { outline: 3px solid #32756b; outline-offset: 2px; }
.check input { flex: 0 0 auto; width: 1.3rem; height: 1.3rem; margin-top: .15rem; accent-color: var(--green); }
.check span { font-weight: 500; font-size: .9rem; line-height: 1.55; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Messages */
.field-msg { margin-top: .4rem; font-size: .8125rem; font-weight: 600; line-height: 1.45; padding-left: 1.4rem; position: relative; }
.field-msg::before { position: absolute; left: 0; top: 0; }
.field-msg.is-error { color: #a22b22; }
.field-msg.is-error::before { content: "!"; display: inline-grid; place-items: center; width: 1rem; height: 1rem; margin-top: .1rem; border-radius: 50%; background: #a22b22; color: #fff; font-size: .7rem; }
.field-msg.is-warning { color: #7a5200; }
.field-msg.is-warning::before { content: "?"; display: inline-grid; place-items: center; width: 1rem; height: 1rem; margin-top: .1rem; border-radius: 50%; background: #e7a400; color: #fff; font-size: .7rem; }
.has-error > input, .has-error > select, .has-error > .prefix input, .has-error .dur input, .has-error > .day-row .day > span, .has-error > .choice-row .choice > span { border-color: #c0392b !important; box-shadow: 0 0 0 1px #c0392b; }
.has-warning > input, .has-warning > select, .has-warning > .prefix input, .has-warning .dur input { border-color: #e7a400; }
.setup-summary, .setup-confirm { border-radius: 1rem; padding: 1.25rem 1.5rem; margin-top: 2rem; }
.setup-summary { background: #fdecea; border: 1px solid #f1b8b0; color: #5c1a14; }
.setup-confirm { background: #fff6d6; border: 1px solid #ecd18a; margin-top: 0; }
.setup-summary h2, .setup-confirm h2 { font-size: 1.15rem; letter-spacing: -.02em; }
.setup-summary ul, .setup-confirm ul, .issue-list { margin: .6rem 0 0; padding-left: 1.2rem; font-size: .9rem; }
.setup-summary li + li, .setup-confirm li + li, .issue-list li + li { margin-top: .3rem; }
.setup-summary a { color: inherit; font-weight: 600; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.button-ghost { background: #fff; border-color: var(--ink); color: var(--ink); }
.submit-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.submit-row .hint { margin: 0; }
.thanks-card { margin-top: 2rem; padding: 2rem; }
.thanks-card h1, .thanks-card h2 { margin-block: .8rem .6rem; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -.04em; line-height: 1.15; }
.thanks-card .eyebrow { color: var(--green); }
.thanks-card p { color: var(--muted); }
.setup-result .setup-card { margin-top: 1rem; }
.setup-result .setup-card h1 { font-size: 1.8rem; margin-bottom: .8rem; letter-spacing: -.03em; }
.setup-result .setup-card p { margin-top: .8rem; }
.issue-error { color: #a22b22; }
.issue-warning { color: #7a5200; }
.setup-footer { padding-block: 1.5rem; }
.setup-footer nav { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; }

@media (max-width: 700px) {
  .container.setup-main { width: min(100% - 2rem, 820px); padding-block: 2rem 3rem; }
  .setup-page .header .container { width: min(100% - 2rem, 1180px); }
  .setup-page .logo { font-size: 1.5rem; }
  .setup-help { font-size: .8rem; text-align: right; }
  .setup-card { padding: 1.25rem 1.1rem .75rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .day > span { font-size: .8rem; padding-inline: 0; }
  .service-row { grid-template-columns: minmax(0, 1fr) 2.6rem; padding: .75rem; }
  .service-row .svc-dur { grid-column: 1; grid-row: 2; }
  .service-row .row-remove { grid-column: 2; grid-row: 1; }
  .service-row > .field-msg { grid-column: 1 / -1; grid-row: auto; }
  .submit-row .button { width: 100%; justify-content: center; }
}
.setup-footer .container { max-width: 820px; }
@media (max-width: 700px) { .setup-footer .container { width: min(100% - 2rem, 820px); } }
