/* Bookings by Margin — visitor widget. Uses the theme's design tokens (with fallbacks); no external fonts or frameworks. */
.bbm {
	--bbm-ink: var(--ink, #18191B);
	/* Accent from Bookings → Settings (inline --bbm-accent), else the theme's, else yellow. */
	--bbm-yellow: var(--bbm-accent, var(--yellow, #F8D029));
	--bbm-on-yellow: var(--bbm-on-accent, #18191B);
	--bbm-tint: color-mix(in srgb, var(--bbm-yellow) 24%, #FFFFFF);
	--bbm-tint-line: color-mix(in srgb, var(--bbm-yellow) 55%, #FFFFFF);
	--bbm-line: var(--line, #E4E4E0);
	--bbm-line-strong: var(--line-strong, #C9C9C4);
	--bbm-body: var(--body, #45464A);
	--bbm-muted: var(--charcoal, #58585A);
	background: var(--paper, #FFFFFF);
	border: 1px solid var(--bbm-line);
	border-radius: 6px;
	padding: 36px;
	color: var(--bbm-ink);
	font-family: var(--font-body, system-ui, sans-serif);
	min-height: 520px;
}
@media (max-width: 600px) { .bbm { padding: 22px 16px; } }
.bbm *, .bbm *::before, .bbm *::after { box-sizing: border-box; }
.bbm h2 { margin: 0; text-transform: none; }
.bbm__loading { display: flex; align-items: center; min-height: 440px; }
.bbm__title { margin: 0; font-size: 16px; color: var(--bbm-muted); }
.bbm__tz { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 0 0 20px; font-size: 14px; color: var(--bbm-muted); }
.bbm__link, .bbm__back { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-weight: 600; color: var(--bbm-ink); text-decoration: underline; cursor: pointer; }
.bbm__back { text-decoration: none; font-size: 15px; align-self: flex-start; }
.bbm__pick { display: flex; flex-wrap: wrap; gap: 36px; }
.bbm__cal { flex: 1 1 340px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bbm__calhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bbm__month { font-family: var(--font-heading, inherit); font-weight: 700; font-size: 22px; }
.bbm__arrows { display: flex; gap: 8px; }
.bbm__arrow { width: 44px; height: 44px; border: 1px solid var(--bbm-line); background: #FFFFFF; border-radius: 4px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--bbm-ink); }
.bbm__arrow:disabled { opacity: .35; cursor: not-allowed; }
.bbm__dow, .bbm__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bbm__dow { font-weight: 700; font-size: 15px; color: var(--bbm-muted); text-align: center; }
.bbm__day { height: 48px; border-radius: 4px; font: inherit; font-size: 15px; font-weight: 600; background: #FFFFFF; color: #A6A6A1; border: 1px solid transparent; text-decoration: line-through; cursor: not-allowed; padding: 0; }
.bbm__day.is-available { background: var(--bbm-tint); color: var(--bbm-ink); border-color: var(--bbm-tint-line); text-decoration: none; cursor: pointer; }
.bbm__day.is-available:hover { border-color: var(--bbm-ink); }
.bbm__day.is-selected { background: var(--bbm-ink); color: #FFFFFF; border-color: var(--bbm-ink); }
.bbm__hint { margin: 0; font-size: 13px; color: var(--bbm-muted); }
.bbm__slots { flex: 1 1 220px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bbm__dayhead { font-family: var(--font-heading, inherit); font-weight: 700; font-size: 18px; }
.bbm__times { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.bbm__time { width: 100%; min-height: 48px; border-radius: 4px; border: 1px solid var(--bbm-line-strong); background: #FFFFFF; color: var(--bbm-ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; justify-content: center; align-items: baseline; gap: 10px; padding: 8px 12px; }
.bbm__time:hover { border-color: var(--bbm-ink); }
.bbm__time.is-selected { background: var(--bbm-ink); color: #FFFFFF; border-color: var(--bbm-ink); font-weight: 700; }
.bbm__alt { font-size: 12px; font-weight: 500; opacity: .8; }
.bbm__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 22px; border-radius: 4px; border: 0; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; }
.bbm__btn--ink { background: var(--bbm-ink); color: #FFFFFF; margin-top: 8px; }
.bbm__btn--primary { background: var(--bbm-yellow); color: var(--bbm-on-yellow); font-size: 17px; min-height: 52px; padding: 16px 28px; }
.bbm__btn--primary:hover { background: color-mix(in srgb, var(--bbm-yellow) 88%, #000000); }
.bbm__btn--outline { background: #FFFFFF; color: var(--bbm-ink); border: 1px solid var(--bbm-line-strong); font-weight: 600; font-size: 15px; min-height: 48px; }
.bbm__btn:disabled { opacity: .6; cursor: progress; }
.bbm__details, .bbm__manage { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.bbm__h { font-family: var(--font-heading, inherit); font-weight: 800; font-size: 28px; line-height: 1.15; }
.bbm__h--lg { font-size: 32px; }
.bbm__selection { margin: -8px 0 0; font-size: 16px; }
.bbm__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.bbm__field { display: flex; flex-direction: column; gap: 6px; }
.bbm__field label { font-size: 14px; font-weight: 600; }
.bbm__opt { font-weight: 400; color: var(--bbm-muted); }
.bbm__field input, .bbm__field select, .bbm__field textarea { border: 1px solid var(--bbm-line-strong); border-radius: 4px; padding: 12px 14px; min-height: 48px; font: inherit; font-size: 16px; color: var(--bbm-ink); background: #FFFFFF; width: 100%; }
.bbm__field textarea { resize: vertical; }
.bbm__field [aria-invalid="true"] { border-color: #B3261E; }
.bbm__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--bbm-body); }
.bbm__consent input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 20px; accent-color: var(--bbm-ink); }
.bbm__consent a { color: var(--bbm-ink); }
/* Inline links must not rely on colour alone (WCAG 1.4.1); scoped so page-builder link resets do not win. */
.bbm .bbm__consent a, .bbm .bbm__recaptcha-note a { text-decoration: underline; text-underline-offset: .15em; }
.bbm__hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bbm__errors { border-inline-start: 4px solid #B3261E; background: #FCF0F1; padding: 12px 16px; border-radius: 4px; font-size: 15px; }
.bbm__errors p, .bbm__errors ul { margin: 0; }
.bbm__errors ul { padding-inline-start: 20px; margin-top: 6px; }
.bbm__notice { margin: 0 0 16px; padding: 12px 16px; border-inline-start: 4px solid var(--bbm-yellow); background: var(--bbm-tint); border-radius: 4px; font-weight: 600; }
.bbm__notice--error { border-inline-start-color: #B3261E; background: #FCF0F1; }
.bbm__done { display: flex; flex-direction: column; gap: 18px; max-width: 560px; padding: 24px 0; }
.bbm__done:focus { outline: none; }
.bbm__tick { width: 56px; height: 56px; background: var(--bbm-yellow); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--bbm-ink); }
.bbm__lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--bbm-body); }
.bbm__muted { color: var(--bbm-muted); font-size: 15px; }
.bbm__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bbm__textlink { padding: 14px 22px; min-height: 48px; display: inline-flex; align-items: center; font-weight: 700; font-size: 15px; color: var(--bbm-ink); }
.bbm__error { padding: 24px 0; }
.bbm__noscript { margin: 0; }
.bbm .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.bbm__dayhead:focus { outline: none; }

/* Motion: times cascade in when a day is chosen; the loading message pulses. Off for reduced motion. */
@keyframes bbm-in { from { opacity: 0; translate: 0 8px; } }
@keyframes bbm-pulse { to { opacity: 0.45; } }
@media (prefers-reduced-motion: no-preference) {
	.bbm__times li { animation: bbm-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.bbm__times li:nth-child(2) { animation-delay: 0.03s; }
	.bbm__times li:nth-child(3) { animation-delay: 0.06s; }
	.bbm__times li:nth-child(4) { animation-delay: 0.09s; }
	.bbm__times li:nth-child(5) { animation-delay: 0.12s; }
	.bbm__times li:nth-child(6) { animation-delay: 0.15s; }
	.bbm__times li:nth-child(7) { animation-delay: 0.18s; }
	.bbm__times li:nth-child(8) { animation-delay: 0.21s; }
	.bbm__times li:nth-child(n+9) { animation-delay: 0.24s; }
	.bbm__loading { animation: bbm-pulse 0.9s ease-in-out infinite alternate; }
}

.bbm__recaptcha-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--bbm-muted, #6B6B67); }
.bbm__recaptcha-note a { color: inherit; text-decoration: underline; }

/* Choose a host */
.bbm__with { margin: 0 0 12px; font-size: 15px; color: var(--bbm-body); }
.bbm__hostlist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bbm__host { width: 100%; min-height: 72px; display: flex; align-items: center; gap: 14px; padding: 12px 14px; text-align: start; font: inherit; color: var(--bbm-ink); background: #FFFFFF; border: 1px solid var(--bbm-line-strong); border-radius: 4px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.bbm__host:hover { border-color: var(--bbm-ink); }
.bbm__host.is-selected { border-color: var(--bbm-ink); background: var(--bbm-tint); }
.bbm__host:focus-visible { outline: 3px solid var(--bbm-ink); outline-offset: 2px; }
.bbm__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--bbm-yellow); color: var(--bbm-on-yellow); font-weight: 700; font-size: 18px; }
.bbm__hostname { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.bbm__hostname .bbm__muted { font-weight: 400; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .bbm__host { transition: none; } }
/* Right-to-left languages: the month arrows point the other way. */
[dir="rtl"] .bbm__arrow svg { transform: scaleX(-1); }

/* Meeting details above the calendar (hide with details="0"). */
.bbm__intro { margin: 0 0 18px; }
.bbm__type { margin: 0; font-family: var(--font-heading, inherit); font-weight: 800; font-size: 22px; line-height: 1.25; color: var(--bbm-ink); }
.bbm__meta { margin: 4px 0 0; font-size: 15px; color: var(--bbm-muted); }
.bbm__desc { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--bbm-body); max-width: 70ch; }
