/*
  Eve Kuaför — site stylesheet, part 1: tokens, base, layout and components.
  Part 2 (site.home.css) holds the home page.

  The look: an olive-black ground, large light serif set in lowercase, full-bleed photographs in rounded
  frames, and small tracked labels for everything functional. Inner pages sit on cream paper.
*/

:root {
  --zy-ground: #161605;
  --zy-olive: #373710;
  --zy-paper: #F4F2EA;
  --zy-sky: #AAD1EE;
  --zy-cream: #F5F4ED;
  --zy-rule: rgba(245, 244, 237, .16);

  --ink: #1B1B08;
  --muted: #5C5B45;
  --line: #D5D1BE;
  --mist: #E9E6D9;
  --danger: #8C1D18;
  --danger-soft: #FDECEA;
  --ok-soft: #DDF1E6;

  --zy-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --zy-sans: "Figtree", "Segoe UI", system-ui, sans-serif;

  --zy-r-frame: 18px;
  --zy-r-picture: 14px;
  --r-control: 10px;
  --zy-edge: 8px;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--zy-paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--zy-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.home { background: var(--zy-ground); }

h1, h2, h3 { margin: 0 0 .5em; font-family: var(--zy-serif); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: 28px; font-weight: 400; }
h3 { font-size: 21px; font-weight: 400; }
p { margin: 0 0 1em; }
a { color: var(--zy-olive); }
a:hover { color: var(--ink); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--zy-sky); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; padding: 10px 14px; background: var(--zy-cream); color: var(--ink); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.zy-label {
  margin: 0;
  font: 500 11.500px/1.2 var(--zy-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */

.btn, .button-1, .button-2, .zy-pill {
  display: inline-block;
  padding: 14px 26px;
  border: 1px solid var(--zy-ground);
  border-radius: 999px;
  background: var(--zy-ground);
  color: var(--zy-cream);
  font: 500 11.500px/1.2 var(--zy-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover, .button-1:hover { background: var(--zy-olive); border-color: var(--zy-olive); color: var(--zy-cream); }
.btn--ghost, .button-2 { background: transparent; border-color: var(--zy-olive); color: var(--zy-olive); }
.btn--ghost:hover, .button-2:hover { background: var(--zy-ground); border-color: var(--zy-ground); color: var(--zy-cream); }
.btn--danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--small { padding: 9px 16px; font-size: 10.500px; }
.btn[disabled], .button-1[disabled] { opacity: .5; cursor: not-allowed; }

.zy-pill { padding: 15px 28px; background: transparent; border-color: currentColor; color: var(--zy-cream); }
.zy-pill:hover { background: var(--zy-cream); border-color: var(--zy-cream); color: var(--zy-ground); }
.zy-pill--solid { background: var(--zy-sky); border-color: var(--zy-sky); color: var(--zy-ground); }
.zy-pill--ink { color: var(--zy-olive); }
.zy-pill--ink:hover { background: var(--zy-ground); border-color: var(--zy-ground); color: var(--zy-cream); }

/* ---------- forms ---------- */

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]), select, textarea) {
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: #fff;
  color: var(--ink);
  font: 400 15px/1.4 var(--zy-sans);
}
textarea { min-height: 110px; resize: vertical; }
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus { border-color: var(--zy-olive); }
label { font-weight: 600; font-size: 15px; }

.form { max-width: 560px; }
.form--wide { max-width: 860px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field--check { display: flex; align-items: center; gap: 10px; }
.field--check label { font-weight: 400; }
.field small, .hint { color: var(--muted); font-size: 14px; }
/* fields in a row line up at the top: a hint under one of them must not stretch its neighbour */
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 18px; align-items: start; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.field-validation-error, .form-error { color: var(--danger); font-size: 14px; }
.validation-summary-valid { display: none; }
.validation-summary-errors { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r-control); background: var(--danger-soft); color: var(--danger); }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.panel { padding: 28px 26px; border-radius: var(--zy-r-frame); background: var(--mist); }

/* ---------- notices ---------- */

/* only the top margin is set: the side margins stay auto from .wrap, so the message sits in the same centred column as the page */
.notices { display: grid; gap: 8px; margin-top: 18px; }
.notice { padding: 14px 18px; border-radius: var(--r-control); background: var(--mist); }
.notice--success { background: var(--ok-soft); }
.notice--warning { background: #FBF0D5; }
.notice--error { background: var(--danger-soft); color: var(--danger); }

/* ---------- tables ---------- */

.table, .booking-table { width: 100%; border-collapse: collapse; }
.table th, .table td, .booking-table th, .booking-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th, .booking-table th { background: var(--mist); font: 500 11px/1.3 var(--zy-sans); letter-spacing: .12em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }

/* ---------- header ---------- */

.site-header { position: relative; z-index: 20; background: var(--zy-ground); color: var(--zy-cream); }
.topbar { border-bottom: 1px solid var(--zy-rule); color: rgba(245, 244, 237, .7); font-size: 12.500px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__note { margin: 0; }
.topbar__tools { display: flex; align-items: center; gap: 18px; }
.topbar__selectors { display: flex; gap: 8px; }
.topbar select { width: auto; min-height: 28px; height: 28px; padding: 2px 8px; border-color: var(--zy-rule); border-radius: 6px; background: transparent; color: var(--zy-cream); font-size: 12px; }
.topbar select option { color: var(--ink); }
.topbar a, .topbar button.linklike { color: var(--zy-cream); font: 500 11px/1.3 var(--zy-sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.topbar a:hover, .topbar button.linklike:hover { color: var(--zy-sky); }
.topbar a.topbar__provider { color: var(--zy-sky); }
.topbar a.topbar__provider:hover { color: var(--zy-cream); }
.topbar__links { display: flex; gap: 18px; align-items: center; }
button.linklike { padding: 0; border: 0; background: none; cursor: pointer; }
.inline-form { display: inline; }

.mainbar { display: flex; align-items: center; gap: 18px; padding-top: 20px; padding-bottom: 20px; }
.logo { font: 300 32px/1 var(--zy-serif); letter-spacing: -0.04em; text-transform: lowercase; color: var(--zy-sky); text-decoration: none; white-space: nowrap; }
.logo:hover { color: var(--zy-cream); }
.nav { display: flex; flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 4px 15px; }
.nav a { padding: 6px 0; border-bottom: 1px solid transparent; color: var(--zy-cream); font: 500 11px/1.3 var(--zy-sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.nav a:hover { color: var(--zy-sky); border-bottom-color: var(--zy-sky); }
.search { position: relative; display: flex; flex: 0 1 170px; }
.search input { min-height: 42px; padding: 0 64px 0 16px; border-color: transparent; border-radius: 999px; background: rgba(245, 244, 237, .08); color: var(--zy-cream); font-size: 14px; }
.search input::placeholder { color: rgba(245, 244, 237, .55); }
.search input:focus { background: rgba(245, 244, 237, .14); border-color: var(--zy-sky); }
.search button { position: absolute; right: 4px; top: 4px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--zy-sky); color: var(--zy-ground); font: 500 10.500px/1 var(--zy-sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.search button:hover { background: var(--zy-cream); }

/* on the home page the header floats over the photograph */
body.home .site-header { --zy-edge: 0px; position: absolute; left: var(--zy-edge); right: var(--zy-edge); top: var(--zy-edge); background: linear-gradient(rgba(22, 22, 5, .55), rgba(22, 22, 5, 0)); border-radius: var(--zy-r-frame) var(--zy-r-frame) 0 0; }
.site { position: relative; }
/* home: the photographs and coloured panels run edge to edge, but the content inside them (words, frame, texts, menu) stops
   at 1440px and sits centred: the side gutter is 4vw (6vw for the narrow text sections) and grows once the screen is wider than that */
body.home { --zy-gutter: max(4vw, calc((100vw - 1440px) / 2)); --zy-gutter-wide: max(6vw, calc((100vw - 1440px) / 2)); }

@media (max-width: 1000px) {
  .topbar__note { display: none; }
  .topbar__inner { justify-content: flex-end; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
  .topbar__tools { flex: 1; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; }
  .mainbar { flex-wrap: wrap; gap: 12px 16px; }
  .nav { order: 5; flex: 1 0 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .search { order: 4; flex: 1 0 100%; }
}

/* ---------- pages ---------- */

.site-main { min-height: 50vh; }
.page { padding: 34px 0 80px; }
.page-title { margin: 0 0 24px; }
.page-title h1, h1.page-title { margin: 0; font: 300 clamp(40px, 6vw, 84px)/.98 var(--zy-serif); letter-spacing: -0.035em; text-transform: lowercase; }
.page-lead { max-width: 44em; margin: 0 0 30px; font-size: 18px; color: var(--muted); }
.prose { max-width: 44em; font-size: 17px; line-height: 1.65; }
.prose h2 { margin-top: 1.4em; }
.section { margin-bottom: 30px; }
.section-title { margin: 44px 0 18px; font: 400 26px/1.15 var(--zy-serif); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- service cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: var(--zy-r-picture); color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s; }
.card:hover { border-color: var(--zy-olive); background: var(--mist); color: var(--ink); }
.card__picture { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 16px; border-radius: 10px; object-fit: cover; }
.card__title { margin: 0 0 8px; font: 400 24px/1.15 var(--zy-serif); letter-spacing: -0.02em; }
.card__text { flex: 1; margin: 0 0 18px; color: var(--muted); font-size: 15.500px; line-height: 1.5; }
.card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font: 300 24px/1 var(--zy-serif); color: var(--zy-olive); }
.empty { padding: 30px 0; color: var(--muted); }

/* ---------- service page ---------- */

.service { max-width: 780px; }
.service__lead { margin: 0 0 20px; font-size: 19px; line-height: 1.5; color: var(--muted); }
.service__meta { margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.service__price { margin: 0 0 22px; font: 300 40px/1 var(--zy-serif); letter-spacing: -0.03em; color: var(--zy-olive); }
.service__picture { width: 100%; max-width: 520px; margin: 0 0 28px; border-radius: var(--zy-r-picture); }
.service__body { margin-top: 30px; }

/* the two ways to book, set apart as the page's one decision */
.booking-product-actions, .booking-vendor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 0; padding: 26px 26px 24px; border-radius: var(--zy-r-frame); background: var(--mist); }
.booking-button { padding: 17px 30px; }
.booking-hint { flex: 1 0 100%; margin: 6px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- account ---------- */

.account { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.account-nav { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.account-nav a { display: block; padding: 10px 14px; border-radius: var(--r-control); color: var(--ink); text-decoration: none; }
.account-nav a:hover { background: var(--mist); }
.account-nav a.is-active { background: var(--zy-ground); color: var(--zy-cream); }
/* minmax(0, 1fr): a wide table inside must scroll, not stretch the column past the screen */
@media (max-width: 800px) { .account { grid-template-columns: minmax(0, 1fr); gap: 20px; } .account-nav { display: flex; flex-wrap: wrap; } }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- booking pages ---------- */

.booking-page h2 { margin: 30px 0 12px; font: 400 24px/1.2 var(--zy-serif); }
.booking-form .row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.booking-form .field { display: flex; flex-direction: column; flex: 1; min-width: 180px; margin: 0; }
.booking-modes label { margin-right: 18px; font-weight: 400; }
.booking-error { margin-bottom: 15px; padding: 14px 16px; border-radius: var(--r-control); background: var(--danger-soft); color: var(--danger); }
.booking-info { margin-bottom: 15px; padding: 14px 16px; border-radius: var(--r-control); background: var(--mist); }
.booking-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.booking-slots button { padding: 10px 16px; border: 1px solid var(--zy-olive); border-radius: 999px; background: transparent; color: var(--zy-olive); font: 600 15px/1 var(--zy-sans); cursor: pointer; }
.booking-slots button:hover { background: var(--zy-ground); border-color: var(--zy-ground); color: var(--zy-cream); }
.booking-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 15px; }
.booking-filter > * { width: auto; }
.provider-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.provider-card, .panel-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--zy-r-picture); background: #fff; }
.panel-card { margin-bottom: 12px; }
.provider-card h3 { margin: 0 0 6px; }
.provider-card .meta { color: var(--muted); font-size: 14.500px; }
.provider-card .price { margin-top: 10px; }
.provider-choice { margin-top: 15px; }
.badge-verified { padding: 3px 9px; border-radius: 999px; background: var(--zy-olive); color: #fff; font-size: 12px; }
.request-status { margin: 10px 0; font: 400 28px/1.2 var(--zy-serif); color: var(--zy-olive); }
.request-pin { font: 300 34px/1 var(--zy-serif); letter-spacing: 6px; }
.offer-list li { margin: 4px 0; }
.countdown { font-weight: 700; color: #A9540A; }
.panel-card .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.panel-card .actions input { width: auto; }
.online-toggle { margin-bottom: 15px; padding: 18px 20px; border-radius: var(--zy-r-frame); }
.online-toggle.on { background: var(--ok-soft); }
.online-toggle.off { background: var(--mist); }

/* ---------- footer ---------- */

.site-footer { padding-bottom: 96px; overflow: hidden; background: var(--zy-ground); color: var(--zy-cream); }
body.home .site-footer { border-top: 1px solid var(--zy-rule); }
.footer-lead { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-top: clamp(70px, 9vw, 120px); }
.footer-lead p { margin: 0; font: 300 clamp(44px, 7vw, 104px)/.92 var(--zy-serif); letter-spacing: -0.04em; text-transform: lowercase; color: var(--zy-sky); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 34px; padding-top: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--zy-rule); }
.footer-cols h2 { margin: 0 0 14px; font: 500 11px/1.2 var(--zy-sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 244, 237, .55); }
.footer-cols ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-cols a { color: var(--zy-cream); font: 300 20px/1.3 var(--zy-serif); letter-spacing: -0.01em; text-decoration: none; }
.footer-cols a:hover { color: var(--zy-sky); }
.footer-bottom { padding-top: 22px; font: 500 10.500px/1.5 var(--zy-sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(245, 244, 237, .5); }
.footer-mark { margin: 30px 0 -0.14em; font: 300 clamp(90px, 21vw, 330px)/.8 var(--zy-serif); letter-spacing: -0.06em; text-transform: lowercase; text-align: center; white-space: nowrap; color: var(--zy-olive); user-select: none; }

/* ---------- booking pages that are not wrapped by their own container ---------- */

.site-main > .page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 34px 20px 80px; }
.booking-page .page-title h1 { font-size: clamp(32px, 4.600vw, 58px); line-height: 1.02; }
.booking-page .section { margin-bottom: 34px; }
.booking-page .page-body > p, .booking-page .page-body .section > p { max-width: 46em; }
.booking-page .booking-form { max-width: 760px; }
.booking-page .booking-form .row, .booking-page .booking-filter { align-items: flex-end; }
.booking-page .booking-filter .field { min-width: 160px; }
.booking-page .booking-table { margin: 10px 0 22px; }
.booking-page ul { padding-left: 1.2em; }
/* ---------- map ---------- */

.geo-map { width: 100%; height: 340px; margin: 10px 0 18px; border-radius: var(--zy-r-picture); border: 1px solid var(--line); z-index: 0; }
.geo-search .field--buttons { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: flex-end; flex: 0 0 auto; min-width: 0; }
.hint { color: var(--muted); font-size: 14px; }
.provider-card.is-chosen { border-color: var(--zy-olive); box-shadow: 0 0 0 2px var(--zy-sky); }
.leaflet-container { font-family: var(--zy-sans); }
.leaflet-popup-content .btn { margin-top: 6px; }
/* ---------- phones ---------- */

/* a table wider than the screen scrolls on its own instead of widening the page */
@media (max-width: 760px) {
  .booking-table, table.table-bordered { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* fingers need about 40px to hit a link or a select reliably */
@media (max-width: 760px) {
  .topbar select { min-height: 40px; height: 40px; font-size: 14px; }
  .topbar a, .topbar button.linklike { display: inline-flex; align-items: center; min-height: 40px; }
  .topbar__links { gap: 14px; }
  .nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0; }
  .footer-cols ul { gap: 0; }
  .footer-cols a { display: inline-flex; align-items: center; min-height: 40px; }
  .account-nav a { padding: 12px 14px; }
  .skip:not(:focus) { min-height: 0; }
}

/* the home page never scrolls sideways, even where a picture scales past its frame */
.zy-home { overflow-x: clip; }
@media (max-width: 760px) {
  .btn--small { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .booking-table a, .table-bordered a { display: inline-block; padding: 10px 6px; }
  .search button { height: 36px; }
}

/* ---------- admin shortcut bar (signed-in administrators and business owners) ---------- */

.adminbar { background: var(--zy-sky); color: var(--zy-ground); font: 500 13px/1.3 var(--zy-sans); }
.adminbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.adminbar__link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--zy-ground); font-weight: 700; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.adminbar__link:hover { text-decoration: underline; }
@media (max-width: 560px) { .adminbar { font-size: 12px; } .adminbar__who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media print { .adminbar { display: none; } }

/* home: the header floats over the picture, flush with the screen edge (its own --zy-edge is 0), so its content
   lines up with the hero text (picture frame 8px + 4vw; 8px + 22px on phones) instead of the centred 1180px column */
body.home .site-header .wrap { max-width: none; padding-inline: calc(var(--zy-gutter) + 8px); }
@media (max-width: 900px) { body.home .site-header .wrap { padding-inline: 30px; } }

/* ---- Product page ---- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
.product__gallery { min-width: 0; }
.product__main { width: 100%; height: auto; border-radius: var(--zy-r-frame, 18px); display: block; background: rgba(0, 0, 0, .04); }
.product__thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.product__thumb { padding: 0; border: 1px solid rgba(0, 0, 0, .15); border-radius: 10px; background: none; cursor: pointer; overflow: hidden; min-width: 44px; min-height: 44px; }
.product__thumb img { display: block; width: 64px; height: 64px; object-fit: cover; }
.product__info { min-width: 0; }
.product__old { opacity: .6; margin-left: .5rem; font-size: .8em; }
.product__swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.product__swatch { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 1px solid rgba(0, 0, 0, .25); border-radius: 999px; cursor: pointer; min-height: 40px; }
.product__swatch:has(input:checked) { border-color: currentColor; box-shadow: 0 0 0 1px currentColor; }
.product__swatch input { position: absolute; opacity: 0; pointer-events: none; }
.product__swatch:has(input:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px; }
.product__dot { width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .3); }
.product__qty input { max-width: 7rem; }
.product__stock { font-weight: 600; margin: .25rem 0; }
.product__message { color: #a33; min-height: 1.4em; margin: .25rem 0; }
.product.is-unavailable .product__stock { color: #a33; }
.product__h { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.product__tiers { margin: 0; padding-left: 1.2rem; }
.product__specs { border-collapse: collapse; width: 100%; }
.product__specs th, .product__specs td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid rgba(0, 0, 0, .1); vertical-align: top; }
.product__specs th { width: 40%; font-weight: 600; }
.product__body { grid-column: 1 / -1; }
.section-title { margin: 2rem 0 1rem; }
@media (max-width: 760px) { .product { grid-template-columns: minmax(0, 1fr); } }

/* ---- Basket, checkout, orders ---- */
.cart-problem { color: #a33; }
.cart-totals { margin: 1rem 0; max-width: 24rem; margin-left: auto; }
.cart-totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.cart-totals dt, .cart-totals dd { margin: 0; }
.cart-totals__sum { border-top: 1px solid rgba(0, 0, 0, .2); font-weight: 700; font-size: 1.15em; }
.checkout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem 3rem; align-items: start; }
.checkout__summary ul { list-style: none; margin: 0; padding: 0; }
.checkout__summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.product__add { margin: 1rem 0; }
.product__add .btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 760px) { .checkout { grid-template-columns: minmax(0, 1fr); } .cart-totals { max-width: none; } }

/* ---- Application papers ---- */
.docs-title { margin: 2rem 0 .4rem; font: 300 clamp(26px, 3vw, 36px)/1.1 var(--zy-serif); letter-spacing: -0.02em; }
.docs-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 14px; }
.docs-item { padding: 16px 18px; border: 1px solid var(--zy-rule, #ddd); border-radius: var(--r-control); background: #fff; }
.docs-item__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.docs-item__why { margin: .4rem 0; color: var(--danger); }
.docs-item--1 { border-color: var(--ok, #2f7d4f); }
.docs-item--2 { border-color: var(--danger); }
.docs-item__form { margin-top: .8rem; max-width: 560px; }

/* Provider application: role cards */
.role-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 16px 0; }
.role-card { border: 1px solid var(--line, #e5e0d8); border-radius: 14px; padding: 18px; display: grid; gap: 10px; align-content: start; background: #fff; }
.role-card h3 { margin: 0; }
.role-card p { margin: 0; color: var(--muted, #6b6b6b); }
/* provider sign-up: the role cards are the radio buttons; the salon-only boxes hide while "freelancer" is chosen */
.signup__roles { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.signup__roles legend { font-weight: 600; margin-bottom: 4px; }
.role-card--choice { cursor: pointer; font-weight: 400; }
.role-card--choice:has(input:checked) { border-color: var(--zy-olive); box-shadow: 0 0 0 2px var(--zy-sky); }
.role-card--choice:has(input:focus-visible) { outline: 2px solid var(--zy-olive); outline-offset: 2px; }
.role-card__head { display: flex; gap: 10px; align-items: center; font-size: 18px; }
.role-card__head input { width: 18px; height: 18px; margin: 0; flex: none; }
.role-card__docs { font-weight: 600; font-size: 14px; }
.role-card--choice ul { margin: 0; padding-left: 20px; color: var(--muted, #6b6b6b); font-size: 14px; }
.signup__section { margin: 28px 0 4px; font: 300 24px/1.2 var(--zy-serif); }
.signup:has(#Kind_serbest:checked) .signup__salon-only { display: none; }
/* a consent that runs over several lines keeps its box beside the first line */
.signup .field--check { align-items: flex-start; }
.signup .field--check input { margin-top: 5px; flex: none; }
/* the page's full width, like the checkout: the form on the left, how the application goes on the right */
.signup__layout { display: grid; grid-template-columns: minmax(0, 1fr) min(30%, 340px); gap: 2rem 3rem; align-items: start; }
.signup__form { grid-column: 1; grid-row: 1; max-width: none; }
.signup__aside { grid-column: 2; grid-row: 1; position: sticky; top: 24px; display: grid; gap: 14px; }
.signup__aside h2 { margin: 0; font: 300 24px/1.2 var(--zy-serif); }
.signup__aside .hint { margin: 0; }
.signup__steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.signup__steps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; }
.signup__steps li::before { content: counter(step); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--zy-olive); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.signup__steps li.is-current::before { background: var(--zy-olive); color: var(--zy-cream); }
.signup__steps strong { font-weight: 600; }
.signup__steps span { color: var(--muted); font-size: 14px; }
/* on narrow screens the steps come first, above the form */
@media (max-width: 900px) {
  .signup__layout { grid-template-columns: minmax(0, 1fr); }
  .signup__aside { grid-column: 1; grid-row: auto; position: static; }
  .signup__form { grid-row: auto; }
}
