/*
 * Boring Bookings: the storefront parts (booking form, cart hold, booking card), from the
 * BKBookingForm and BKCart boards. Neutral on purpose: they inherit the theme's font and buttons;
 * the selected day and time take --bwb-accent (set it to the theme's button colour).
 */
.bwb-form, .bwb-hold, .bwb-card {
	--bwb-accent: #1f1d1a;
	--bwb-accent-text: #fff;
	--bwb-line: #e3e0d8;
	--bwb-field: #cfc8bb;
	--bwb-soft: #f6f4ef;
	--bwb-muted: #5e584f;
	--bwb-link: currentColor;
	--bwb-free: #3d6b35;
	--bwb-few: #b26a00;
	box-sizing: border-box;
}
.bwb-form *, .bwb-hold *, .bwb-card * { box-sizing: border-box; }

.bwb-form { display: flex; flex-direction: column; gap: 20px; padding: 22px 24px; border: 1px solid var(--bwb-line); border-radius: 10px; background: #fff; margin: 0 0 1.5em; }
.bwb-row { display: flex; flex-wrap: wrap; gap: 16px; }
.bwb-fld { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; min-width: 0; margin: 0; padding: 0; border: 0; }
.bwb-form > .bwb-fld { flex: none; }
.bwb-cal, .bwb-times { gap: 10px; }
.bwb-lab { font-weight: 600; font-size: 15px; padding: 0; }
.bwb-lab-plain { font-weight: 400; }
.bwb-hint { font-size: 14px; color: var(--bwb-muted); margin: 0; }
.bwb-muted { color: var(--bwb-muted); font-size: 14px; }
.bwb-sel { width: 100%; min-height: 44px; }
.bwb-calhd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bwb-calnav { display: flex; align-items: center; gap: 8px; }
.bwb-month { font-weight: 600; font-size: 16px; margin: 0; min-width: 9em; text-align: center; }
.bwb-nav { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--bwb-field); border-radius: 6px; background: #fff; color: inherit; cursor: pointer; }
.bwb-nav:disabled, .bwb-nav[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.bwb-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bwb-grid[aria-busy="true"] { opacity: .5; }
.bwb-dow { font-size: 12px; font-weight: 600; color: var(--bwb-muted); text-align: center; padding: 2px 0; }
.bwb-blank { min-height: 52px; }
.bwb-day { min-height: 52px; border: 1px solid var(--bwb-line); border-radius: 6px; background: #fff; color: inherit; font: inherit; font-weight: 500; font-size: 15px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 2px; line-height: 1.2; }
.bwb-day:hover { border-color: var(--bwb-accent); }
.bwb-day:focus-visible, .bwb-slot:focus-visible, .bwb-nav:focus-visible, .bwb-step button:focus-visible, .bwb-linkbtn:focus-visible { outline: 2px solid var(--bwb-accent); outline-offset: 2px; }
.bwb-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--bwb-free); display: inline-block; }
.bwb-day-few .bwb-dot, .bwb-dot-few { background: var(--bwb-few); }
.bwb-day-full { background: var(--bwb-soft); color: #6b655c; }
.bwb-day-full .bwb-num { text-decoration: line-through; }
.bwb-day-full[aria-disabled="true"] { cursor: not-allowed; }
/* A hire day with fewer left than asked for: "1 left", greyed, not pickable. */
.bwb-day-short, .bwb-day-short:hover { background: var(--bwb-soft); border-color: var(--bwb-line); color: #6b655c; cursor: not-allowed; }
.bwb-sub { font-size: 11px; line-height: 1; font-weight: 600; }
.bwb-day-closed { background: transparent; border-color: transparent; color: #6b655c; cursor: not-allowed; }
.bwb-day-closed:hover { border-color: transparent; }
.bwb-day-in { background: #ece7dd; border-color: #ece7dd; }
.bwb-day-on, .bwb-day-on:hover { background: var(--bwb-accent); border-color: var(--bwb-accent); color: var(--bwb-accent-text); }
.bwb-day-on .bwb-dot { background: var(--bwb-accent-text); }
.bwb-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--bwb-muted); margin: 0; padding: 0; list-style: none; }
.bwb-legend li { display: flex; align-items: center; gap: 6px; margin: 0; }
.bwb-key { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--bwb-line); background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.bwb-key-full { background: var(--bwb-soft); }
.bwb-key-closed { border-color: transparent; background: transparent; font-size: 11px; color: #6b655c; }
.bwb-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bwb-slots[hidden] { display: none; }
@media (max-width: 480px) { .bwb-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bwb-form { padding: 16px; } }
.bwb-slot { min-height: 48px; border: 1px solid var(--bwb-field); border-radius: 6px; background: #fff; color: inherit; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; padding: 4px; }
.bwb-slot:hover { border-color: var(--bwb-accent); }
.bwb-slot-on, .bwb-slot-on:hover { background: var(--bwb-accent); border-color: var(--bwb-accent); color: var(--bwb-accent-text); }
.bwb-slot-full, .bwb-slot-full:hover { background: var(--bwb-soft); border-color: var(--bwb-line); color: #6b655c; font-weight: 500; cursor: not-allowed; }
.bwb-slot-full .bwb-t { text-decoration: line-through; }
.bwb-slot small { font-size: 11px; font-weight: 600; }
.bwb-tz { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: center; font-size: 14px; color: var(--bwb-muted); margin: 0; }
.bwb-linkbtn { background: none; border: 0; padding: 0 2px; min-height: 44px; color: var(--bwb-link); text-decoration: underline; font: inherit; cursor: pointer; }
.bwb-linkbtn[hidden] { display: none; }
.bwb-sum { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--bwb-soft); font-size: 15px; }
.bwb-price { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid #efece5; padding-top: 16px; }
.bwb-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.bwb-line span:last-child { white-space: nowrap; }
.bwb-total { font-weight: 700; font-size: 17px; padding-top: 6px; border-top: 1px solid #efece5; }
.bwb-pay { display: flex; flex-direction: column; gap: 8px; }
.bwb-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; min-height: 44px; border: 1px solid var(--bwb-field); border-radius: 8px; cursor: pointer; margin: 0; }
.bwb-opt input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--bwb-accent); }
.bwb-opt-on { border-color: var(--bwb-accent); box-shadow: inset 0 0 0 1px var(--bwb-accent); }
.bwb-opt > span { display: flex; flex-direction: column; }
.bwb-alert { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 8px; border-left: 4px solid #7e1d17; background: #fdecea; }
.bwb-alert h3 { font-family: inherit; font-size: 16px; font-weight: 700; margin: 0; }
.bwb-alert p, .bwb-info p { margin: 0; }
.bwb-info { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 8px; border-left: 4px solid #2346a8; background: #eaf0fd; }
.bwb-alts { display: flex; flex-wrap: wrap; gap: 8px; }
.bwb-step { display: inline-flex; align-items: center; border: 1px solid var(--bwb-field); border-radius: 6px; background: #fff; }
.bwb-step button { width: 44px; height: 44px; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 18px; color: inherit; cursor: pointer; padding: 0; }
.bwb-step button:disabled, .bwb-step button[aria-disabled="true"] { color: #a39b8e; cursor: not-allowed; }
/* The form's live region ("14 times available on Tuesday 8 December"): read, not shown. */
.bwb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.bwb-step output { min-width: 36px; text-align: center; font-weight: 600; }
.bwb-ppl { display: flex; flex-direction: column; gap: 10px; }
.bwb-pplrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.bwb-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bwb-actions[hidden], .bwb-price[hidden], .bwb-pay[hidden], .bwb-sum[hidden], .bwb-times[hidden], .bwb-hint[hidden] { display: none; }
.bwb-form .bwb-actions .button { margin: 0; float: none; }

/* Sessions you schedule: a date list with places left (BKBookingForm, workshop). */
.bwb-sess { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid #efece5; }
.bwb-sess li { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #efece5; margin: 0; }
.bwb-sess li > div { display: flex; flex-direction: column; }
.bwb-sess li > div + div { flex-direction: row; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.bwb-sess time { font-weight: 600; }
.bwb-sess-on { background: var(--bwb-soft); margin: 0 -12px !important; padding: 12px !important; }
.bwb-sess-out time { color: #6b655c; }
.bwb-left { font-size: 14px; color: var(--bwb-free); font-weight: 600; }
.bwb-short { font-size: 14px; color: #7a4b07; font-weight: 600; }
.bwb-out { font-size: 14px; color: #6b655c; font-weight: 600; }
.bwb-form .bwb-sess .button, .bwb-form .bwb-more { margin: 0; float: none; }
.bwb-sess-pick[aria-pressed="true"] { background: var(--bwb-accent); border-color: var(--bwb-accent); color: var(--bwb-accent-text); }
.bwb-more[hidden] { display: none; }

/* Cart and checkout: the hold line, the split under the totals. */
.bwb-hold { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--bwb-line); font-size: 15px; margin: 0 0 1.5em; }
.bwb-hold-in { display: flex; gap: 10px; align-items: flex-start; }
.bwb-hold svg { flex: 0 0 auto; margin-top: 3px; }
.bwb-hold-warn { background: #fff3e0; border-color: #f0d2a6; }
.bwb-hold form { margin: 0; }
.bwb-hold [hidden] { display: none; }
.bwb-clock { font-variant-numeric: tabular-nums; font-weight: 700; }
.bwb-small { font-size: 14px; color: var(--bwb-muted); margin: 0; }
.bwb-change { font-size: 14px; display: inline-block; margin-top: 4px; }

/* Order received: the booking card. */
.bwb-card { border: 1px solid var(--bwb-line); border-radius: 10px; background: #fff; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; margin: 0 0 2em; }
.bwb-card h2 { margin: 0; }
.bwb-card-hd { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.bwb-card p { margin: 0; }
.bwb-dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.bwb-dl dt { color: var(--bwb-muted); font-weight: 400; margin: 0; }
.bwb-dl dd { margin: 0; }
@media (max-width: 480px) { .bwb-dl { grid-template-columns: 1fr; } .bwb-dl dd { margin-bottom: 6px; } }
.bwb-calinks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bwb-calinks .button { margin: 0; }
.bwb-pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.bwb-pill-ok { background: #e7f2ee; color: #134836; }
.bwb-pill-warn { background: #fff3e0; color: #7a4b07; }
.bwb-pill-info { background: #eaf0fd; color: #2346a8; }
.bwb-pill-off { background: #eef0f3; color: #454b57; }

/* The ran-out notice's free times: in time order, not floated right like WooCommerce notice buttons. */
.bwb-alt-times { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.woocommerce-error .bwb-alt-times .button,
.woocommerce-info .bwb-alt-times .button,
.woocommerce-message .bwb-alt-times .button { float: none; margin: 0; }
