/* WillingNest booking widget. Tokens match willingnestclinic.com. */

@font-face { font-family: 'Literata'; font-weight: 300; font-display: swap; src: url(/fonts/literata-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Literata'; font-weight: 300; font-display: swap; src: url(/fonts/literata-latin-ext-300-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-weight: 400; font-display: swap; src: url(/fonts/literata-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Literata'; font-weight: 400; font-display: swap; src: url(/fonts/literata-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Public Sans'; font-weight: 400; font-display: swap; src: url(/fonts/public-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Public Sans'; font-weight: 400; font-display: swap; src: url(/fonts/public-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: swap; src: url(/fonts/public-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: swap; src: url(/fonts/public-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --navy: #190D39;
  --lime: #D6EEA6;
  --lime-soft: #EEF7DA;
  --rose: #F2CDDC;
  --paper: #FAFBF8;
  --body: #67656E;
  --line: #E6E4EA;
  --white: #FFFFFF;
  --danger: #A12C4B;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--body);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--navy); margin: 0; line-height: 1.2; }
button { font: inherit; color: inherit; }
a { color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.wn-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.wn-app { display: grid; grid-template-columns: 300px 1fr; min-height: 100%; }
.wn-aside {
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 18px;
}
.wn-main { padding: 28px 32px 36px; min-width: 0; }
.wn-brand { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--body); margin: 0; }
.wn-back {
  align-self: flex-start;
  background: none; border: 1px solid var(--line); border-radius: 30px;
  padding: 6px 14px 6px 10px; cursor: pointer; color: var(--navy); font-size: 14px;
}
.wn-back:hover { border-color: var(--navy); }
.wn-back[hidden] { display: none; }

.wn-summary { display: flex; flex-direction: column; gap: 12px; }
.wn-summary__who { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; }
.wn-summary h2 { font-size: 24px; }
.wn-summary__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.wn-summary__facts li { display: flex; gap: 8px; align-items: baseline; }
.wn-summary__facts .wn-ico { width: 16px; flex: none; color: var(--navy); }
.wn-summary__when { color: var(--navy); font-weight: 600; }

.wn-avatars { display: flex; }
.wn-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--lime); color: var(--navy);
  display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  overflow: hidden; border: 2px solid var(--white);
}
.wn-avatars .wn-avatar + .wn-avatar { margin-left: -10px; background: var(--rose); }
.wn-avatar { position: relative; }
.wn-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wn-avatar--lg { width: 52px; height: 52px; font-size: 15px; }

/* ---------- steps ---------- */
.wn-step h1 { font-size: 28px; margin-bottom: 6px; }
.wn-step__lede { margin: 0 0 22px; }
.wn-options { display: grid; gap: 12px; }
.wn-option {
  display: flex; gap: 14px; align-items: center; text-align: left; width: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.wn-option:hover { border-color: var(--navy); box-shadow: 0 6px 18px rgba(25,13,57,.07); transform: translateY(-1px); }
.wn-option__body { flex: 1; min-width: 0; }
.wn-option__title { display: block; font-family: var(--serif); font-size: 19px; color: var(--navy); }
.wn-option__meta { display: block; font-size: 13px; margin-top: 2px; }
.wn-option__desc { display: block; font-size: 14px; margin-top: 6px; }
.wn-option__arrow { color: var(--navy); font-size: 18px; }
.wn-option--featured { border-color: var(--navy); background: var(--lime-soft); }
.wn-tag {
  display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--navy); color: var(--white); border-radius: 30px; padding: 2px 9px; margin-left: 6px; vertical-align: 3px;
}

/* ---------- calendar ---------- */
.wn-picker { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; }
.wn-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wn-cal__month { font-family: var(--serif); font-size: 18px; color: var(--navy); text-transform: capitalize; }
.wn-cal__nav { display: flex; gap: 6px; }
.wn-iconbtn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  cursor: pointer; color: var(--navy); font-size: 16px; display: grid; place-items: center;
}
.wn-iconbtn:hover:not(:disabled) { border-color: var(--navy); }
.wn-iconbtn:disabled { opacity: .35; cursor: default; }
.wn-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wn-cal__dow { text-align: center; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 0 6px; }
.wn-day {
  aspect-ratio: 1; max-height: 48px; width: 100%;
  border-radius: 50%; border: 0; background: none; color: #B4B2BA; font-size: 14px; cursor: default;
  display: grid; place-items: center;
}
.wn-day--open { background: var(--lime-soft); color: var(--navy); font-weight: 600; cursor: pointer; }
.wn-day--open:hover { background: var(--lime); }
.wn-day--selected, .wn-day--selected:hover { background: var(--navy); color: var(--white); }
.wn-day--today { box-shadow: inset 0 0 0 1px var(--line); }
.wn-tz { margin-top: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.wn-tz select { max-width: 100%; }

.wn-times__day { font-weight: 600; color: var(--navy); margin: 6px 0 12px; text-transform: capitalize; min-height: 1.5em; }
.wn-times__list { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.wn-time {
  border: 1px solid var(--navy); background: var(--white); color: var(--navy);
  border-radius: 30px; padding: 10px 0; cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums;
}
.wn-time:hover { background: var(--lime); }
.wn-time__who { display: block; font-weight: 400; font-size: 11px; color: var(--body); }
.wn-note { font-size: 14px; }
.wn-loading { opacity: .5; pointer-events: none; }

/* ---------- form ---------- */
.wn-form { display: grid; gap: 16px; max-width: 460px; }
.wn-field { display: grid; gap: 6px; }
.wn-field label, .wn-fieldset legend { color: var(--navy); font-weight: 600; font-size: 14px; }
.wn-field small { font-weight: 400; color: var(--body); }
input[type=text], input[type=email], input[type=tel], select {
  font: inherit; color: var(--navy); background: var(--white);
  border: 1px solid #CFCCD6; border-radius: 10px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.wn-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.wn-radio, .wn-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.wn-radio input, .wn-check input { margin-top: 3px; accent-color: var(--navy); width: 16px; height: 16px; }
.wn-hint { font-size: 13px; background: var(--white); border-left: 3px solid var(--rose); padding: 10px 12px; border-radius: 0 8px 8px 0; margin: 0; }
.wn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wn-error { color: var(--danger); font-size: 14px; margin: 0; }
.wn-error:empty { display: none; }

.wn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: var(--white); border: 0; border-radius: 30px;
  padding: 13px 26px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 15px;
  transition: transform .15s, box-shadow .15s;
}
.wn-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(25,13,57,.18); }
.wn-btn:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.wn-btn--ghost { background: none; color: var(--navy); border: 1px solid var(--navy); }

/* ---------- done ---------- */
.wn-done { max-width: 480px; }
.wn-done__mark {
  width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: var(--navy);
  display: grid; place-items: center; font-size: 28px; margin-bottom: 18px;
}
.wn-done__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.wn-done__card p { margin: 0 0 6px; }
.wn-done__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .wn-app { grid-template-columns: 1fr; }
  .wn-aside { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; gap: 12px; }
  .wn-summary h2 { font-size: 20px; }
  .wn-main { padding: 20px 16px 28px; }
  .wn-step h1 { font-size: 23px; }
  .wn-picker { grid-template-columns: 1fr; gap: 18px; }
  .wn-times__list { flex-direction: row; flex-wrap: wrap; max-height: none; }
  .wn-time { flex: 1 0 calc(33% - 8px); }
  .wn-summary__desc { display: none; }
}

/* ---------- server pages (cancel, admin) ---------- */
.wn-page { display: grid; place-items: start center; padding: 48px 16px; min-height: 100%; }
.wn-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; width: 100%; max-width: 560px; }
.wn-card h1 { font-size: 26px; margin: 10px 0 16px; }
.wn-card h2 { font-size: 20px; margin-bottom: 6px; }
.wn-when { background: var(--paper); border-radius: 10px; padding: 14px 16px; color: var(--navy); }
.wn-admin-row { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.wn-small { font-size: 13px; }
.wn-small code { word-break: break-all; font-size: 12px; background: var(--paper); padding: 2px 4px; border-radius: 4px; }

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

/* language switch, bottom of the side panel */
.wn-lang { margin-top: auto; display: flex; gap: 6px; }
.wn-lang .wn-back { padding: 4px 12px; font-size: 12px; letter-spacing: .06em; }
.wn-lang .wn-back[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
@media (max-width: 760px) {
  .wn-aside { position: relative; }
  .wn-lang { position: absolute; top: 12px; right: 16px; margin: 0; }
}

/* headings take focus on each step for screen readers; no visible ring needed */
.wn-step h1:focus { outline: none; }
@media (max-width: 760px) {
  .wn-app { grid-template-rows: auto 1fr; }
}

/* admin payments table */
.wn-card:has(.wn-table) { max-width: 760px; }
.wn-table-wrap { overflow-x: auto; }
.wn-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wn-table th { text-align: left; font-weight: 600; color: var(--navy); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.wn-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.wn-table tr.is-unpaid td:nth-child(4) { color: #B4541A; font-weight: 600; }
.wn-table tr.is-paid td:nth-child(4) { color: #2E7D32; font-weight: 600; }
.wn-table small { color: var(--body); }
.wn-inline { margin: 0; }
.wn-btn--sm { padding: 7px 14px; font-size: 13px; }

/* bank transfer details on the confirmation screen */
.wn-pay { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.wn-pay h2 { font-size: 20px; margin-bottom: 8px; }
.wn-pay p { margin: 0 0 12px; }
.wn-pay__table { border-collapse: collapse; width: 100%; margin-bottom: 10px; }
.wn-pay__table th { text-align: left; font-weight: 400; color: var(--body); padding: 6px 12px 6px 0; white-space: nowrap; vertical-align: top; font-size: 14px; }
.wn-pay__table td { padding: 6px 0; color: var(--navy); font-weight: 600; word-break: break-all; }
.wn-pay__value { margin-right: 8px; }
.wn-copy { border: 1px solid var(--line); background: var(--paper); border-radius: 30px; padding: 2px 10px; font-size: 12px; cursor: pointer; color: var(--navy); font-weight: 400; }
.wn-copy:hover { border-color: var(--navy); }
.wn-small { font-size: 13px; }

/* rate step: a gentle, local hint under one option */
.wn-option__hint { display: block; margin-top: 8px; font-size: 13px; color: var(--navy); background: var(--lime-soft); border-radius: 8px; padding: 6px 10px; }

/* admin: rate switches */
.wn-rates td:not(:first-child), .wn-rates th:not(:first-child) { text-align: center; width: 110px; }
.wn-rates input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--navy); }
.wn-table th.wn-rates__type { font-family: var(--serif); font-weight: 300; font-size: 17px; padding-top: 16px; }

/* a rate switched off in /admin: visible, not choosable */
.wn-option--off, .wn-option--off:hover { cursor: not-allowed; opacity: .6; transform: none; box-shadow: none; border-color: var(--line); background: var(--paper); }
.wn-option--off .wn-option__hint { background: #F2E8EC; }

/* admin: booking settings per psychologist */
.wn-card:has(.wn-settings) { max-width: 900px; }
.wn-settings h2 { font-size: 19px; margin: 22px 0 6px; }
.wn-settings input[type=time], .wn-settings input[type=date] { font: inherit; padding: 6px 8px; border: 1px solid #CFCCD6; border-radius: 8px; color: var(--navy); }
.wn-settings input[type=number] { font: inherit; width: 70px; padding: 6px 8px; border: 1px solid #CFCCD6; border-radius: 8px; color: var(--navy); }
.wn-off { margin: 6px 0; }
.wn-type-rules th { font-size: 12px; vertical-align: bottom; }
.wn-type-rules small { font-weight: 400; color: var(--body); }
.wn-saved { background: var(--lime-soft); border-left: 3px solid var(--lime); padding: 10px 14px; border-radius: 0 8px 8px 0; color: var(--navy); }

/* server pages: wide tables scroll inside the card instead of widening the page */
.wn-page { grid-template-columns: minmax(0, 1fr); }
.wn-card { min-width: 0; justify-self: center; }
@media (max-width: 600px) { .wn-page { padding: 24px 12px; } .wn-card { padding: 22px 16px; } }

/* "no time that suits you?" → waitlist */
.wn-wait { margin-top: 22px; font-size: 14px; }
.wn-linkbtn { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; font-weight: 600; }

/* admin: quick links and client booking form */
.wn-admin-nav { font-size: 13px; line-height: 1.9; margin: 4px 0 8px; }
.wn-admin-book label { display: block; margin: 0 0 12px; font-weight: 600; color: var(--navy); font-size: 14px; }
.wn-admin-book label.wn-check { font-weight: 400; }
.wn-settings select, .wn-admin-book input[type=text], .wn-admin-book input[type=email], .wn-admin-book input[type=tel],
.wn-settings input[type=text], .wn-settings input[type=email] { font: inherit; font-weight: 400; padding: 7px 9px; border: 1px solid #CFCCD6; border-radius: 8px; color: var(--navy); max-width: 100%; }
.wn-admin-book input[type=text], .wn-admin-book input[type=email], .wn-admin-book input[type=tel], .wn-admin-book select { width: 100%; }
.wn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.wn-row > label { flex: 1 1 200px; }
.wn-actions { white-space: nowrap; }
.wn-actions .wn-inline { display: inline-block; margin-right: 4px; }

/* cancel page: the late-cancellation notice */
.wn-late { background: #FBEFF3; border-left: 3px solid var(--rose); padding: 12px 14px; border-radius: 0 8px 8px 0; color: var(--navy); }

/* a psychologist's own page for returning clients */
.wn-own { margin-bottom: 12px; }
.wn-own .wn-avatar--lg { width: 64px; height: 64px; font-size: 18px; }

/* The clinic's logo at the top of the admin, cancel, payment and contract pages. */
.wn-brand .wn-logo { display: block; height: 44px; width: auto; }
.wn-brand:has(.wn-logo) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* One admin section on its own page (opened from the phone app). */
.wn-section .wn-card { max-width: 760px; }
.wn-backbar { margin: 0 0 14px; }
.wn-backbar a { color: var(--navy); font-weight: 600; text-decoration: none; }

/* On a phone, the week and per-type tables become one card per day / per session type. */
@media (max-width: 640px) {
  .wn-week tr:first-child, .wn-type-rules tr:first-child { display: none; }
  .wn-week, .wn-week tbody, .wn-week tr, .wn-week td,
  .wn-type-rules, .wn-type-rules tbody, .wn-type-rules tr, .wn-type-rules td { display: block; width: 100%; }
  .wn-week tr, .wn-type-rules tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
  .wn-week td, .wn-type-rules td { border: 0; padding: 4px 0; }
  .wn-week td[data-label]::before, .wn-type-rules td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--body); margin-bottom: 2px; }
  .wn-type-rules td[data-label] { display: grid; grid-template-columns: 1fr 96px; align-items: center; gap: 10px; }
  .wn-type-rules td[data-label]::before { margin: 0; }
  .wn-settings input[type=time] { min-height: 42px; font-size: 16px; }
  .wn-settings input[type=number], .wn-settings input[type=date] { min-height: 42px; font-size: 16px; }
  .wn-settings .wn-off { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
}

.wn-who { font-size: 14px; color: var(--body); }
.wn-backup { margin-top: 18px; }
.wn-backup summary { cursor: pointer; color: var(--body); font-size: 14px; }
