/* Published Booking element: the free times of a Calendar booking page, the guest form and the answer. Colours come
   from the site palette (--lp-c-*), so the light and the dark theme of a site recolour it. On a phone three days a
   screen and nothing wider than the screen (Hako 2026-11-20). */
.lp-booking { --lbk-accent: var(--lp-c-accent, #4f46e5); --lbk-card: var(--lp-c-card, #fff); --lbk-text: var(--lp-c-text, #0e1626);
  --lbk-muted: var(--lp-c-muted, #66738c); --lbk-line: color-mix(in srgb, var(--lbk-text) 12%, transparent); width: 100%; }
.lp-booking .lbk-data { display: none; }
.lp-booking button, .lp-booking input, .lp-booking textarea { font: inherit; }
.lp-booking .lbk-stage { max-width: 960px; margin: 0 auto; padding: 22px; border-radius: 20px; background: var(--lbk-card); color: var(--lbk-text);
  box-shadow: 0 14px 40px rgba(14, 22, 38, .12); }
.lp-booking .lbk-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.lp-booking .lbk-bar strong { font-size: 20px; flex: 1 1 auto; }
.lp-booking .lbk-nav { display: inline-flex; align-items: center; gap: 6px; }
.lp-booking .lbk-nav button { min-width: 36px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--lbk-line);
  background: transparent; color: var(--lbk-text); cursor: pointer; }
.lp-booking .lbk-nav button:disabled { opacity: .35; cursor: default; }
.lp-booking .lbk-grid { display: grid; grid-template-columns: repeat(var(--lbk-cols, 5), minmax(0, 1fr)); gap: 10px; }
.lp-booking .lbk-day { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lp-booking .lbk-dh { display: flex; flex-direction: column; align-items: center; padding-bottom: 6px; border-bottom: 1px solid var(--lbk-line); }
.lp-booking .lbk-dh span { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--lbk-muted); }
.lp-booking .lbk-dh b { font-size: 20px; }
.lp-booking [hidden] { display: none !important; }
.lp-booking .lbk-slot { display: block; width: 100%; box-sizing: border-box; padding: 9px 4px; border-radius: 10px; border: 1px solid var(--lbk-line);
  background: transparent; color: var(--lbk-text); font-weight: 600; text-align: center; cursor: pointer; }
.lp-booking .lbk-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lp-booking .lbk-slot:focus-within { outline: 2px solid var(--lbk-accent); outline-offset: 2px; }
.lp-booking .lbk-pick { display: grid; gap: 8px; margin-bottom: 16px; }
.lp-booking .lbk-cap { font-size: 13px; font-weight: 600; color: var(--lbk-muted); }
.lp-booking .lbk-svc, .lp-booking .lbk-staff, .lp-booking .lbk-cars { display: flex; min-width: 0; }
/* The service, car and teacher choices as dropdowns with pictures, side by side on a wide screen (Hako 2026-11-22
   H-1122-152916: no rows of buttons, a normal drop down). */
.lp-booking .lbk-dd { position: relative; flex: 1 1 100%; min-width: 0; }
.lp-booking .lbk-dd-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 12px 6px 6px; border-radius: 12px; border: 1px solid var(--lbk-line); background: transparent; color: var(--lbk-text); font-weight: 400; text-align: start; cursor: pointer; }
.lp-booking .lbk-dd-btn:hover, .lp-booking .lbk-dd-btn[aria-expanded="true"] { border-color: var(--lbk-accent); }
.lp-booking .lbk-dd-btn:focus-visible, .lp-booking .lbk-dd-opt:focus-visible { outline: 2px solid var(--lbk-accent); outline-offset: 2px; }
.lp-booking .lbk-dd-txt { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-booking .lbk-dd-caret { flex: 0 0 auto; width: 8px; height: 8px; margin: 0 4px; border-right: 2px solid var(--lbk-muted); border-bottom: 2px solid var(--lbk-muted); transform: translateY(-2px) rotate(45deg); }
.lp-booking .lbk-dd-btn[aria-expanded="true"] .lbk-dd-caret { transform: translateY(2px) rotate(-135deg); }
.lp-booking .lbk-dd-face { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--lbk-text) 7%, transparent); color: var(--lbk-muted); font-size: 13px; font-weight: 700; overflow: hidden; }
.lp-booking .lbk-dd-face.lbk-dd-pic { width: 54px; border-radius: 8px; background: transparent; }
.lp-booking .lbk-dd-face img { width: 100%; height: 100%; object-fit: contain; }
.lp-booking .lbk-dd-list { position: absolute; z-index: 20; inset-inline-start: 0; min-width: 100%; width: max-content; max-width: min(440px, 92vw); top: calc(100% + 6px); max-height: 320px; overflow: auto; margin: 0; padding: 6px; list-style: none; border-radius: 12px; border: 1px solid var(--lbk-line); background: var(--lbk-card); box-shadow: 0 14px 40px rgba(14, 22, 38, .18); scrollbar-width: none; }
.lp-booking .lbk-dd-list::-webkit-scrollbar { display: none; }
.lp-booking .lbk-dd-opt { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 10px; font-weight: 400; cursor: pointer; }
.lp-booking .lbk-dd-opt:hover { background: color-mix(in srgb, var(--lbk-accent) 10%, transparent); }
.lp-booking .lbk-dd-opt.lbk-on { color: var(--lbk-accent); background: color-mix(in srgb, var(--lbk-accent) 16%, transparent); }
.lp-booking .lbk-pick > div:last-of-type .lbk-dd-list { inset-inline-start: auto; inset-inline-end: 0; }
.lp-booking .lbk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.lp-booking .lbk-slot:hover { border-color: var(--lbk-accent); }
.lp-booking .lbk-slot.lbk-on { background: color-mix(in srgb, var(--lbk-accent) 16%, transparent); border-color: var(--lbk-accent); color: var(--lbk-accent); }
.lp-booking .lbk-form { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--lbk-line); }
.lp-booking .lbk-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--lbk-muted); }
.lp-booking .lbk-form input, .lp-booking .lbk-form textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--lbk-line); background: transparent; color: var(--lbk-text); font-size: 16px; }
.lp-booking .lbk-form input:focus, .lp-booking .lbk-form textarea:focus { outline: none; border-color: var(--lbk-accent); }
.lp-booking .lbk-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 4px; }
.lp-booking .lbk-go, .lp-booking .lbk-cancel { padding: 12px 20px; border-radius: 12px; border: 0; font-weight: 700; cursor: pointer; }
.lp-booking .lbk-go { background: var(--lbk-accent); color: #fff; }
.lp-booking .lbk-go:disabled { opacity: .5; cursor: default; }
.lp-booking .lbk-cancel { background: transparent; color: #e11d48; border: 1px solid currentColor; }
.lp-booking .lbk-msg { margin: 12px 0 0; color: var(--lbk-muted); }
.lp-booking .lbk-ok { color: #16a34a; font-weight: 600; }
.lp-booking .lbk-err { color: #e11d48; font-weight: 600; }
/* A wider screen: the times on the left, the guest form on the right (Hako 2026-11-20 H-1120-154330). */
@media (min-width: 901px) {
  .lp-booking .lbk-stage { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 28px; align-items: start; }
  .lp-booking .lbk-bar, .lp-booking .lbk-msg, .lp-booking .lbk-actions { grid-column: 1 / -1; }
  .lp-booking .lbk-pick { grid-column: 1 / -1; grid-row: 2; grid-auto-flow: column; grid-template-rows: auto auto; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); grid-auto-columns: minmax(0, 1fr); column-gap: 12px; row-gap: 6px; }
  .lp-booking .lbk-grid { grid-column: 1; grid-row: 3; }
  .lp-booking .lbk-form { grid-column: 2; grid-row: 3; margin-top: 0; padding: 0 0 0 28px; border-top: 0; border-left: 1px solid var(--lbk-line); }
}
@media (max-width: 600px) {
  .lp-booking .lbk-stage { padding: 14px; border-radius: 16px; }
  .lp-booking .lbk-grid { gap: 6px; }
  .lp-booking .lbk-slot { padding: 9px 0; font-size: 14px; }
}
