.bkng-widget-root {
	--bkng-accent: #111111;
	--bkng-bg: #ffffff;
	--bkng-field-bg: #ffffff;
	--bkng-border: #e2e2e2;
	--bkng-text: #111111;
	--bkng-muted: #595f6a;
	--bkng-day-available-bg: #f0f0f0;
	--bkng-primary-bg: #111111;
	--bkng-primary-text: #ffffff;
	color-scheme: light dark;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--bkng-text);
	/* Accessible baseline: no text below 1.25rem anywhere in the widget. */
	font-size: 1.25rem;
	line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
	.bkng-widget-root {
		--bkng-bg: #111111;
		--bkng-field-bg: #1c1c1c;
		--bkng-border: #333333;
		--bkng-text: #f5f5f5;
		--bkng-muted: #9a9fa6;
		--bkng-day-available-bg: #262626;
		--bkng-primary-bg: #ffffff;
		--bkng-primary-text: #111111;
	}
}

.bkng-widget {
	display: grid;
	gap: 32px;
	background: var(--bkng-bg);
	border-radius: 24px;
	padding: 32px;
	box-sizing: border-box;
}

.bkng-widget-2col { grid-template-columns: 320px 1fr; }
.bkng-widget-3col { grid-template-columns: 320px 1fr 300px; }
.bkng-widget-1col { grid-template-columns: 1fr; max-width: 1040px; margin: 0 auto; }

@media (max-width: 860px) {
	.bkng-widget-2col,
	.bkng-widget-3col {
		grid-template-columns: 1fr;
	}
}

/* Desktop: same width for every step, height free to fit each step's own
   content — no internal scroll, no page-scroll box clipping questions. */
@media (min-width: 861px) {
	.bkng-widget-2col,
	.bkng-widget-3col {
		width: 1040px;
		max-width: 100%;
		margin: 0 auto;
	}
}

.bkng-widget * { box-sizing: border-box; }

.bkng-left-panel {
	border-right: 1px solid var(--bkng-border);
	padding-right: 24px;
}
@media (max-width: 860px) {
	.bkng-left-panel { border-right: none; border-bottom: 1px solid var(--bkng-border); padding-right: 0; padding-bottom: 20px; }
}

.bkng-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 16px; }

.bkng-organizer { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.bkng-avatar {
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--bkng-day-available-bg); color: var(--bkng-text); display: flex; align-items: center; justify-content: center;
	font-weight: 600; font-size: 1.25rem; flex-shrink: 0;
}
.bkng-avatar-photo {
	width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.bkng-organizer-name { font-weight: 600; font-size: 1.25rem; }
.bkng-organizer-role { font-size: 1.25rem; color: var(--bkng-muted); }

.bkng-meta-row {
	display: flex; align-items: center; gap: 10px;
	font-size: 1.25rem; margin-bottom: 14px; color: var(--bkng-text);
}
.bkng-meta-icon { flex-shrink: 0; }

.bkng-timezone-select {
	border: 1px solid var(--bkng-border); border-radius: 8px; padding: 8px 10px;
	font-size: 1.25rem; background: var(--bkng-field-bg); color: var(--bkng-text); max-width: 220px;
}

.bkng-description { margin-top: 16px; margin-bottom: 28px; font-size: 1.25rem; line-height: 1.6; color: var(--bkng-text); }
.bkng-description strong { font-weight: 700; }

.bkng-selected-datetime { font-weight: 600; align-items: flex-start; }

/* Calendar */
.bkng-calendar { display: flex; flex-direction: column; }
.bkng-calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-shrink: 0; }
.bkng-month-label { font-size: 1.25rem; font-weight: 700; }
.bkng-calendar-nav button {
	border: none; background: transparent; font-size: 1.25rem; cursor: pointer; padding: 4px 10px; color: var(--bkng-text);
	min-width: 40px; min-height: 40px;
}
.bkng-calendar-nav button:disabled { opacity: .3; cursor: default; }

.bkng-weekdays, .bkng-days-grid {
	display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center;
}
.bkng-weekday { font-size: 1.05rem; font-weight: 700; color: var(--bkng-muted); letter-spacing: .02em; padding-bottom: 6px; }

.bkng-day {
	aspect-ratio: 1; min-height: 40px; border: none; border-radius: 999px; background: transparent;
	font-size: 1.1rem; cursor: default; color: var(--bkng-muted);
}
.bkng-day-empty { visibility: hidden; }
.bkng-day-disabled { color: var(--bkng-muted); opacity: .5; }
.bkng-day-available {
	background: var(--bkng-day-available-bg); color: var(--bkng-text); font-weight: 600; cursor: pointer;
}
.bkng-day-available:hover { background: var(--bkng-border); }
.bkng-day-selected { background: var(--bkng-primary-bg) !important; color: var(--bkng-primary-text) !important; }

/* Slots */
.bkng-slots-col {
	min-width: 0; border-left: 1px solid var(--bkng-border); padding-left: 24px;
	display: flex; flex-direction: column;
}
@media (max-width: 860px) {
	.bkng-slots-col { border-left: none; padding-left: 0; border-top: 1px solid var(--bkng-border); padding-top: 20px; }
}
.bkng-slots { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.bkng-slots-header {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; flex-shrink: 0;
}
.bkng-format-toggle { display: inline-flex; border: 1px solid var(--bkng-border); border-radius: 999px; padding: 2px; font-size: .8rem; }
.bkng-format-toggle button {
	border: none; background: transparent; color: var(--bkng-muted); border-radius: 999px;
	padding: 4px 10px; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.bkng-format-toggle button.is-active { background: var(--bkng-day-available-bg); color: var(--bkng-text); }
.bkng-slots-list { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
.bkng-slot-btn {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	border: 1px solid var(--bkng-border); background: var(--bkng-field-bg); color: var(--bkng-text);
	border-radius: 999px; padding: 12px 16px; font-size: 1.25rem; font-weight: 600; cursor: pointer; min-height: 44px;
}
.bkng-slot-btn:hover { background: var(--bkng-day-available-bg); }
.bkng-slot-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }

.bkng-slots-placeholder {
	display: flex; align-items: center; justify-content: center;
	text-align: center; color: var(--bkng-muted); font-size: 1.1rem;
}

.bkng-notice { background: #fff4e5; color: #8a5a00; border-radius: 8px; padding: 12px 14px; font-size: 1.25rem; margin-bottom: 12px; }

/* Question form */
.bkng-question-form { min-width: 0; }
.bkng-form-title { font-size: 1.375rem; font-weight: 700; margin: 0 0 2px; }
.bkng-form-hint { font-size: 1.1rem; color: var(--bkng-muted); margin: 0 0 14px; }

.bkng-name-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) {
	.bkng-name-split { grid-template-columns: 1fr; }
}

.bkng-field { margin-bottom: 12px; }
fieldset.bkng-field { border: none; padding: 0; min-width: 0; }
.bkng-field-label { display: block; font-size: 1.25rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.bkng-required { color: #f7002f; }

.bkng-field input[type="text"],
.bkng-field input[type="email"],
.bkng-field input[type="tel"],
.bkng-field input[type="url"],
.bkng-field input[type="number"],
.bkng-field input[type="date"],
.bkng-field textarea,
.bkng-field select {
	width: 100%; border: 1px solid var(--bkng-border); border-radius: 8px;
	padding: 12px; font-size: 1.25rem; background: var(--bkng-field-bg); color: var(--bkng-text); font-family: inherit; min-height: 44px;
}

.bkng-radio-option, .bkng-checkbox-option {
	display: block; font-size: 1.25rem; margin-bottom: 8px; font-weight: 400;
}
.bkng-radio-option input, .bkng-checkbox-option input { margin-right: 10px; width: 20px; height: 20px; vertical-align: middle; }

.bkng-help-text { font-size: 1.25rem; color: var(--bkng-muted); margin: 6px 0 0; }
.bkng-section-heading { font-size: 1.375rem; font-weight: 700; margin: 24px 0 8px; }
.bkng-separator { border: none; border-top: 1px solid var(--bkng-border); margin: 20px 0; }

.bkng-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bkng-form-actions { display: flex; gap: 12px; margin-top: 24px; }
.bkng-btn-primary, .bkng-btn-secondary {
	border-radius: 999px; padding: 12px 24px; font-size: 1.25rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; min-height: 44px;
}
.bkng-btn-primary { background: var(--bkng-primary-bg); color: var(--bkng-primary-text); }
.bkng-btn-primary:disabled { opacity: .6; cursor: default; }
.bkng-btn-secondary { background: transparent; color: var(--bkng-text); border-color: var(--bkng-border); }

/* Confirmation */
.bkng-confirmation { padding: 40px 20px; max-width: 640px; margin: 0 auto; text-align: left; }
.bkng-confirmation-icon { font-size: 2.5rem; margin-bottom: 12px; }
.bkng-confirmation h3 { font-size: 1.5rem; margin: 0 0 10px; color: var(--bkng-text); }
.bkng-confirmation p { color: var(--bkng-muted); font-size: 1.25rem; line-height: 1.6; }
.bkng-confirmation-datetime { color: var(--bkng-text); font-weight: 600; }
.bkng-confirmation-details { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--bkng-border); }

.bkng-loading, .bkng-error, .bkng-empty { color: var(--bkng-muted); font-size: 1.25rem; padding: 20px 0; }
.bkng-error { color: #f7002f; }

/* Visually hidden but announced by screen readers (e.g. the timezone <select>'s label). */
.bkng-sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Visible keyboard-focus ring — the widget's buttons rely on background-color
   changes for hover, which isn't enough for keyboard focus on its own. */
.bkng-widget button:focus-visible,
.bkng-widget select:focus-visible,
.bkng-widget input:focus-visible,
.bkng-widget textarea:focus-visible {
	outline: 2px solid var(--bkng-accent);
	outline-offset: 2px;
}
