/* account — the visitor's account and its screens (login, register, forgot, reset, profile): one file for all. */

/* ---------- The cancel buttons of a booking in the history: the rules the layout's main.css held, now this folder's. ---------- */
.booking-cancel__buttons { display: flex; flex-wrap: wrap; gap: .6rem; }

.booking-cancel__yes { background: var(--danger); border-color: var(--danger); color: #fff; }

.booking-cancel__yes:hover { background: var(--danger); filter: brightness(.92); color: #fff; }

.booking-cancel__buttons { justify-content: center; }

.auth-form input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 1px var(--mark, var(--primary)); box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 1px var(--mark, var(--primary)); }

.auth-form { display: grid; gap: .2rem; }

.auth-form .field-error { color: var(--danger); font-size: .8rem; font-weight: 500; margin-bottom: .4rem; }

.auth-form [aria-invalid='true'] { border-color: var(--danger) !important; }

.auth-submit { width: 100%; justify-content: center; text-align: center; }

.auth-quiet { margin: .6rem 0 0; text-align: center; font-size: .82rem; color: var(--muted); }

.auth-notice { margin-bottom: 1rem; }

.auth-link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--mark, var(--primary)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* The account: the profile card on the left, the list on the right. */
.account-head .lead { margin-bottom: 0; }

/* «‹ My account» above the heading, in the head's own top space: the title stays where every page has it. */
.account-head .product-back { display: block; width: fit-content; margin: -2.4rem 0 1rem; line-height: 1.4rem; }

.profile-card__out { margin: 0; }

.profile-card__out .auth-link-btn { color: var(--muted); font-size: .88rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }

.account-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.6rem, 3vw, 2.6rem); align-items: start; }

.profile-card { display: grid; gap: 1.25rem; padding: 1.6rem; flex-direction: column; }

.profile-card:hover { transform: none; box-shadow: none; border-color: var(--line); }

.profile-card__who { display: flex; align-items: center; gap: 1rem; min-width: 0; }

/* stronger than the avatar's own initial look, whichever stylesheet comes last */
.avatar.avatar--profile { width: 3.25rem; height: 3.25rem; font-size: 1.2rem; border: 0; background: var(--range); color: var(--ink); flex: none; } /* the ink, faint, on the card: --tint vanished on a dark one */

.profile-card__names { display: grid; min-width: 0; }

.profile-card__names strong, .profile-card__names small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.profile-card__names strong { color: var(--ink); }

.profile-card__names small { color: var(--muted); font-size: .85rem; }

.profile-card__phone { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

.profile-card__phone strong { color: var(--ink); font-weight: 600; }

.profile-card__phone a { color: var(--mark, var(--primary)); font-weight: 600; }

.profile-card__why { margin: -.6rem 0 .2rem; font-size: .82rem; line-height: 1.5; color: var(--muted); }

.profile-card__email { align-items: center; }

.profile-card__ok { color: var(--success) !important; }

.profile-card__confirm { margin: 0; }

.profile-card__confirm .auth-link-btn { color: var(--mark, var(--primary)); font-weight: 600; }

.profile-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .2rem; }

.account-main { min-width: 0; }

.account-main .notice { margin-bottom: 1.2rem; }

.account-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }

.account-group__title { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }

.account-group { margin-top: 1.6rem; }

.account-group summary { display: inline-flex; align-items: center; gap: .75rem; cursor: pointer; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; list-style: none; }

.account-group summary::-webkit-details-marker { display: none; }

/* A drawn chevron instead of the browser's triangle: right while folded, down when open. */

.account-group summary::before {
  content: ''; width: .45rem; height: .45rem; margin-left: .15rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s ease;
}

.account-group[open] summary::before { transform: translateY(-.15rem) rotate(45deg); }

.account-group summary:hover { color: var(--ink); }

.account-group summary:focus-visible { outline: 2px solid var(--mark, var(--primary)); outline-offset: 3px; border-radius: 4px; }

.account-group summary .chip-count { margin-left: .3rem; }

.acc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.acc-row { position: relative; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; align-items: center; gap: .4rem 1rem; padding: .9rem .4rem; border-bottom: 1px solid var(--line); }

.acc-row:hover { background: var(--hover-wash); }

.acc-row:has(.acc-row__link:focus-visible) { outline: 2px solid var(--mark, var(--primary)); outline-offset: -2px; }

.acc-row__tile { display: grid; place-items: center; width: 3.25rem; height: 3.4rem; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--bg); overflow: hidden; color: var(--muted); }

.acc-row__tile--date { align-content: center; gap: .1rem; line-height: 1; }

.acc-row__tile--date strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); }

.acc-row__tile--date small { font-size: .72rem; text-transform: lowercase; color: var(--muted); }

.acc-row__tile--photo img { width: 100%; height: 100%; object-fit: cover; }

.acc-row__tile--photo svg { width: 1.4rem; height: 1.4rem; }

.acc-row.is-past .acc-row__tile { background: none; }

.acc-row__main { min-width: 0; }

.acc-row__title { margin: 0; font-size: 1rem; line-height: 1.35; font-weight: 600; }

.acc-row__link { color: var(--ink); }

.acc-row__link::after { content: ''; position: absolute; inset: 0; }

.acc-row__link:focus-visible { outline: none; }

.acc-row.is-past .acc-row__link { color: var(--body-text); }

.acc-row.is-cancelled .acc-row__title { text-decoration: line-through; color: var(--muted); }

.acc-row__meta { margin: .2rem 0 0; font-size: .86rem; color: var(--muted); }

.acc-row__num { font-variant-numeric: tabular-nums; }

.acc-row__now { color: var(--ink); font-weight: 600; }

.acc-row__side { position: relative; z-index: 1; display: grid; justify-items: end; gap: .35rem; text-align: right; }

.acc-row__sum { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.acc-row__cancel { font-size: .82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.acc-row__cancel:hover { color: var(--danger); }

.acc-row__confirm { grid-column: 1 / -1; position: relative; z-index: 1; padding: .8rem 1rem; border-radius: var(--radius-small); background: var(--danger-soft); }

.acc-row__confirm p { margin: 0 0 .7rem; color: var(--ink); font-weight: 600; font-size: .9rem; }

.acc-row__confirm form { margin: 0; }

.inline-empty.is-slim { padding: .8rem 1rem; justify-content: space-between; }

.inline-empty.is-slim p { margin: 0; }

@media (max-width: 900px) {
  /* On a phone the card is a line over the list: the name and the way to edit. */
  .profile-card__foot .btn { padding: .45rem .9rem; }
}

@media (max-width: 559px) {
  .acc-row { grid-template-columns: 3.25rem minmax(0, 1fr); }

  .acc-row__side { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; align-items: center; gap: .8rem; }
}

@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .profile-card { padding: .9rem 1rem; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .profile-card__phone, .profile-card__why { display: none; }
  .profile-card__foot { gap: .8rem; }
  .profile-card__foot .btn { padding: .45rem .9rem; }
}

@media (max-width: 559px) {
  .profile-card__out { display: none; }
}

/* ---------- login.twig ---------- */
.auth-check { display: flex !important; align-items: center; gap: .6rem; margin: .4rem 0 1rem !important; font-weight: 400 !important; cursor: pointer; }

.auth-check input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--ink); }

/* ---------- The sign-in screens: login, register, forgot, reset ---------- */

.auth-inner { max-width: 460px; margin: 0 auto; }

.auth-switch { margin-top: 1.6rem; text-align: center; font-size: .92rem; color: var(--muted); }

.auth-switch a { color: var(--mark, var(--primary)); font-weight: 600; }

.auth-form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}

.auth-form input[type='email'],
.auth-form input[type='password'],
.auth-form input[type='text'] {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .97rem;
  margin-bottom: .35rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--mark, var(--primary));
  box-shadow: 0 0 0 1px var(--mark, var(--primary));
}

/* `.auth-form label` (a field's label: a block) outweighed this and the box
   sat on the text's baseline, a space away from it. */

.auth-form .btn { width: 100%; }

/* ---------- forgot.twig ---------- */
.auth-phone { text-align: center; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin: 0 0 1rem; user-select: all; }

.auth-phone a { color: var(--ink); text-decoration: none; }

.auth-sent { text-align: center; }

.auth-sent__mark { display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--success-soft); color: var(--success, var(--ink)); }

.auth-sent__mark svg { width: 1.6rem; height: 1.6rem; }

.auth-sent .auth-head { margin-bottom: .8rem; }

.auth-sent__text { margin: 0 0 1rem; color: var(--body-text); }

.auth-again { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- profile.twig ---------- */
/* The profile: sections of settings — what it is on the left, the fields on the right. */

/* On the heading's axis (the container's left edge), not centred under it. */

.profile-inner > * { max-width: 880px; }

.settings__about h2 { font-size: 1.15rem; margin: 0 0 .35rem; }

.settings__about p { margin: 0; font-size: .88rem; color: var(--muted); }

.settings__fields { display: grid; gap: .2rem; }

.settings__fields > label, .settings__fields .pw-field__label label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }

.settings__fields input:not([type='checkbox']) {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-small);
  background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: .97rem; margin-bottom: .35rem;
}

.settings__fields input:focus { outline: none; border-color: var(--mark, var(--primary)); box-shadow: 0 0 0 1px var(--mark, var(--primary)); }

.settings__fields [aria-invalid='true'] { border-color: var(--danger) !important; }

.settings__fields .field-error { color: var(--danger); font-size: .8rem; font-weight: 500; }

.field-static { display: grid; gap: .2rem; padding: .85rem 1rem; border-radius: var(--radius-small); background: var(--tint); margin-top: .4rem; }

.field-static__label { font-size: .8rem; color: var(--muted); }

.field-static strong { color: var(--ink); font-weight: 600; }

.field-static small { font-size: .82rem; color: var(--muted); }

.field-static a { color: var(--mark, var(--primary)); }

.pw-change summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-radius: var(--radius-small); background: var(--tint); cursor: pointer; list-style: none; }

.pw-change summary::-webkit-details-marker { display: none; }

.pw-change[open] summary { display: none; }

.pw-change__dots { letter-spacing: .15em; color: var(--muted); }

.pw-change__open { color: var(--mark, var(--primary)); font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }

.pw-change__fields { display: grid; gap: .2rem; }

.pw-change__fields .auth-link-btn { justify-self: start; margin-top: .4rem; font-size: .88rem; color: var(--muted); }

.profile-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

.profile-actions .auth-link-btn { color: var(--muted); }

/* account_profile — the page's own styles, on this page only. */

.product-back { display: inline-block; margin-bottom: 1.4rem; color: var(--muted); font-size: .92rem; }

.product-back:hover { color: var(--mark, var(--primary)); }

.product-crumbs .product-back { margin-bottom: 0; }

@media (max-width: 900px) {
  .settings { grid-template-columns: 1fr; }
}

/* ---------- _heading.twig — the head of a sign-in page: the site's name, the title and a line under it (was the auth_head component's; after the page's own, as it was linked). ---------- */

.auth-head { text-align: center; margin-bottom: 1.6rem; }

.auth-head h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); margin: .4rem 0 .5rem; }

.auth-head .lead { margin: 0 auto; max-width: 30ch; font-size: 1rem; }

/* ==== the password field (_password_field.twig) ====
   An eye that shows what was typed, «Caps Lock is on» and the rule under it. */

.pw-field { margin-bottom: .35rem; }
.pw-field .field-error:not(:empty) { margin-top: .35rem; }

.pw-field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }

.pw-field__forgot { font-size: .85rem; color: var(--mark, var(--primary)); }

.pw-field__box { position: relative; }

.pw-field__box input { padding-right: 3rem !important; margin-bottom: 0 !important; }

.pw-field__eye {
  position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0;
  border: 0; border-radius: var(--radius-small); background: none; color: var(--muted); cursor: pointer;
}

.pw-field__eye:hover { color: var(--ink); }

.pw-field__eye:focus-visible { outline: 2px solid var(--mark, var(--primary)); }

.pw-field__eye svg { width: 1.2rem; height: 1.2rem; }

.pw-field__eye .pw-eye-shut, .pw-field__eye[aria-pressed='true'] .pw-eye-open { display: none; }

.pw-field__eye[aria-pressed='true'] .pw-eye-shut { display: block; }

.pw-field__caps { margin: .35rem 0 0; font-size: .78rem; font-weight: 600; color: var(--warning, var(--ink)); }

.pw-field__hint { margin: .35rem 0 0; font-size: .8rem; color: var(--muted); }

/* ==== a state as a pill: waiting, done well, on its way, nothing to do (the history) ==== */
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: var(--pill); font-size: .78rem; font-weight: 600; white-space: nowrap; background: var(--tint); color: var(--muted); }
.pill::before { content: ''; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.pill--wait { background: var(--warning-soft); color: var(--ink); }
.pill--wait::before { background: var(--warning, var(--accent)); }
.pill--ok { background: var(--success-soft); color: var(--ink); }
.pill--ok::before { background: var(--success, var(--ink)); }
.pill--go { color: var(--ink); }
.pill--go::before { background: var(--ink); }
