/* Date and time picker panels (pickers.js), shared by the website and the booking app.
   Colours come from the page: the website's tokens, or the app's where the names differ.
   A panel is as wide as its field, but never narrower than 260px (the app's fields are narrow). */
.pkr-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; width: max(100%, 260px); padding: 14px; border-radius: 14px; background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px rgba(46, 33, 28, .45); transform-origin: top left; animation: pkr-in 160ms var(--ease-out, var(--ease)); }
.pkr-pop[hidden] { display: none; }
.pkr-pop.pkr-times { left: auto; right: 0; transform-origin: top right; } /* the time field sits on the right: grow leftwards */
@keyframes pkr-fade { from { opacity: 0; } }
@keyframes pkr-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } }

/* calendar */
.pkr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pkr-head b { font-weight: 600; letter-spacing: -.01em; }
.pkr-nav { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; transition: background-color 150ms; }
.pkr-nav:disabled { color: var(--line); cursor: default; }
.pkr-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pkr-grid th { padding: 4px 0 6px; font: 500 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pkr-grid td { padding: 1px; text-align: center; }
.pkr-day { position: relative; width: 100%; max-width: 40px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink);
  font: 500 .9rem/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 150ms, color 150ms; }
.pkr-day[aria-disabled="true"] { color: var(--line); cursor: default; }
.pkr-day.pkr-busy::after { content: ""; position: absolute; left: 50%; bottom: 12%; width: 4px; height: 4px; margin-left: -2px; border-radius: 999px; background: var(--accent); }
.pkr-day[aria-selected="true"] { background: var(--ink); color: var(--paper, var(--surface)); }
.pkr-day[aria-selected="true"].pkr-busy::after { background: var(--paper, var(--surface)); }
.pkr-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pkr-key { display: flex; align-items: center; gap: 8px; margin: 8px 2px 0; color: var(--ink-2); font-size: .76rem; line-height: 1.3; }
.pkr-key i { flex: none; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

/* times: five to a row, the group heading says am or pm */
.pkr-group { margin: 12px 2px 6px; font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pkr-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pkr-chip { min-height: 34px; padding: 0 2px; border: 0; border-radius: 9px; background: var(--paper, var(--surface)); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
  font: 500 .84rem/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: background-color 150ms, color 150ms, box-shadow 150ms; }
.pkr-chip.pkr-wide { grid-column: 1 / -1; }
.pkr-chip[aria-selected="true"] { background: var(--ink); color: var(--paper, var(--surface)); box-shadow: none; }
.pkr-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
  .pkr-day:not([aria-disabled="true"]):not([aria-selected="true"]):hover, .pkr-nav:not(:disabled):hover { background: var(--paper, var(--surface)); }
  .pkr-chip:not([aria-selected="true"]):hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
}
@media (max-width: 640px) { .pkr-pop, .pkr-pop.pkr-times { left: 0; right: 0; width: auto; } } /* phones: the full width of the form */
@media (prefers-reduced-motion: reduce) { .pkr-pop { animation: pkr-fade 120ms ease-out; } }
