/* Lesson time picker (js/lesson-picker.js) — shared by book-lesson.html and the portal's Private
   lessons card, so it lives here rather than in either page. Only the widget's own look: each page
   keeps its page-specific CSS where it already is (inline in book-lesson.html, portal/portal.css).
   Colours and radii come from the site tokens in style.css. */
.lp { font-family: var(--sans); color: var(--charcoal); }
.lp-status { color: var(--muted); padding: .6rem 0; }
.lp-h { font-weight: 600; font-size: .92rem; margin: .9rem 0 .4rem; }
.lp-soon .lp-h { margin-top: 0; }

/* Soonest open */
.lp-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.lp-chip { min-height: 44px; padding: .5rem .95rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--charcoal); font: inherit; font-weight: 600; font-size: .92rem; line-height: 1.2; cursor: pointer; }
.lp-chip[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }

/* Date strip */
.lp-strip-bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 1.1rem 0 .45rem; }
.lp-pg { min-height: 44px; padding: 0 .9rem; border-radius: 999px; border: 2px solid var(--line); background: var(--cream); color: var(--charcoal); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; flex: 0 0 auto; }
.lp-pg:disabled { opacity: .45; cursor: default; }
.lp-range { color: var(--muted); font-size: .9rem; font-weight: 500; text-align: center; min-width: 0; }
.lp-strip { display: flex; gap: .4rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.lp-day { flex: 1 0 60px; min-width: 60px; min-height: 64px; padding: .45rem .25rem; border-radius: var(--radius-sm); border: 2px solid var(--line); background: #fff; color: var(--charcoal); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; line-height: 1.1; scroll-snap-align: center; }
.lp-day__wd { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lp-day__n { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.lp-day__st { font-size: .7rem; font-weight: 600; color: var(--green-dark); white-space: nowrap; }
.lp-day[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.lp-day[aria-pressed="true"] .lp-day__wd, .lp-day[aria-pressed="true"] .lp-day__st { color: #e4ecdf; }
.lp-day:disabled { cursor: default; background: var(--cream-2); border-color: var(--line-soft); color: var(--muted); }
.lp-day:disabled .lp-day__n { opacity: .55; }
.lp-day:disabled .lp-day__st { color: var(--muted); font-weight: 500; }
.lp-day--closed:disabled { border-style: dashed; }

/* Times for the chosen day */
.lp-group { margin-top: .8rem; }
.lp-group .lp-h { margin: 0 0 .35rem; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lp-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.lp-pill { min-height: 44px; min-width: 74px; padding: .45rem .75rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--charcoal); font: inherit; font-weight: 600; font-size: .98rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.lp-pill[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }

/* The line that says it back */
.lp-summary { margin: 1rem 0 0; padding: .8rem 1rem; background: var(--cream-2); border-radius: var(--radius-sm); font-weight: 600; }

.lp-chip:focus-visible, .lp-pg:focus-visible, .lp-day:focus-visible, .lp-pill:focus-visible { outline: none; box-shadow: var(--ring); }

@media (max-width: 480px) {
  .lp-day { flex: 0 0 58px; min-width: 58px; }
  .lp-pg { padding: 0 .7rem; }
  .lp-pill { flex: 1 1 74px; }
}
