/* Booking widget. Override these variables in the site's own CSS to match the brand. */
.bk {
  --bk-accent: #596f62;
  --bk-accent-text: #fff;
  --bk-border: #dcdcdc;
  --bk-surface: #fff;
  --bk-muted: #6b6b6b;
  --bk-error: #a33a3a;
  --bk-radius: 8px;
}
.bk-services { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: stretch; }
.bk-card { background: var(--bk-surface); border: 1px solid var(--bk-border); border-radius: var(--bk-radius); overflow: hidden; display: flex; flex-direction: column; }
.bk-card:has(.bk-panel:not([hidden])) { grid-column: 1 / -1; }
.bk-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.bk-card-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.bk-card-body .bk-btn { margin-top: auto; }
.bk-card h3 { margin: 0 0 .25rem; }
.bk-meta { margin: 0 0 .6rem; color: var(--bk-muted); }
.bk-panel { border-top: 1px solid var(--bk-border); padding: 1.1rem 1.2rem 1.3rem; }
.bk-btn { background: var(--bk-accent); color: var(--bk-accent-text); border: 0; border-radius: var(--bk-radius); padding: .65rem 1.2rem; font: inherit; cursor: pointer; }
.bk-btn:disabled { opacity: .6; cursor: default; }
.bk-step { font-weight: 600; margin: 0 0 .6rem; }
.bk-days { max-height: 320px; overflow-y: auto; margin-bottom: 1.2rem; }
.bk-day { margin-bottom: .8rem; }
.bk-day-label { font-size: .9rem; color: var(--bk-muted); margin-bottom: .35rem; }
.bk-times { display: flex; flex-wrap: wrap; gap: .4rem; }
.bk-time { border: 1px solid var(--bk-accent); background: transparent; color: var(--bk-accent); border-radius: var(--bk-radius); padding: .4rem .7rem; font: inherit; font-size: .9rem; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.bk-time small { font-size: .7rem; opacity: .8; }
.bk-time.is-selected { background: var(--bk-accent); color: var(--bk-accent-text); }
.bk-form label { display: block; margin-bottom: .7rem; font-size: .9rem; }
.bk-form input, .bk-form select { display: block; width: 100%; box-sizing: border-box; margin-top: .25rem; padding: .55rem .6rem; border: 1px solid var(--bk-border); border-radius: 6px; font: inherit; }
.bk-hp { position: absolute; left: -9999px; }
.bk-policy { font-size: .85rem; color: var(--bk-muted); }
.bk-muted { color: var(--bk-muted); }
.bk-error { color: var(--bk-error); }
.bk-error:empty { display: none; }
.bk-done h4 { margin: 0 0 .4rem; font-size: 1.2rem; }
.bk-qr { max-width: 180px; display: block; margin: .5rem 0; }

/* Laptop and wider: the times stay on the left and the details form sits on
   the right, so the member does not scroll past the times to book. */
@media (min-width: 900px) {
  .bk-panel {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(320px, 380px);
    grid-template-rows: auto 1fr;
    column-gap: 2rem;
    justify-content: center;
    align-items: start;
  }
  .bk-panel > .bk-step { grid-column: 1; grid-row: 1; }
  .bk-panel > .bk-days { grid-column: 1; grid-row: 2; margin-bottom: 0; max-height: 420px; }
  .bk-panel > .bk-form { grid-column: 2; grid-row: 1 / span 2; border-left: 1px solid var(--bk-border); padding-left: 2rem; }
}


/* The desktop grid must not make a closed panel visible: [hidden] loses to a
   display rule, so this line keeps the closed card clean at every width. */
.bk-panel[hidden] { display: none !important; }

/* The request confirmation is one block, not the two-column times layout. */
.bk-panel.is-done { display: block !important; }
.bk-panel.is-done .bk-done { max-width: 640px; }
