.su-booking-widget {
	max-width: 560px;
	margin: 0 auto;
	padding: 18px 24px 24px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #111827;
}
.su-booking-widget *,
.su-booking-widget *:before,
.su-booking-widget *:after { box-sizing: border-box; }

/* Widget heading sits at the top edge of the container — themes that
   apply `.prose h3 { margin-top: var(--spacing-2xl) }` (Riverton, etc.)
   would otherwise push it down ~3rem. Match the theme rule's specificity
   with the `html` prefix and lock margin/padding with !important so
   the widget is visually self-contained regardless of theme. */
html .su-booking-widget h3.su-booking-widget__heading {
	margin: 0 0 6px !important;
	padding: 0 !important;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: inherit;
}
.su-booking-widget__description {
	color: #6b7280;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 14px;
}
.su-booking-widget__topline {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f3f4f6;
}
.su-booking-widget__topline strong {
	color: #111827;
	font-size: 15px;
	font-weight: 600;
}

/* Day strip */
.su-booking-widget__day-strip {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 10px;
	margin-bottom: 14px;
	scrollbar-width: thin;
}
.su-booking-widget__day {
	flex: 0 0 auto;
	padding: 8px 14px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	border-radius: 999px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	color: #4b5563;
	white-space: nowrap;
	transition: background .12s, border-color .12s, color .12s;
}
.su-booking-widget__day:hover { background: #f3f4f6; border-color: #d1d5db; }
.su-booking-widget__day.is-active {
	background: #3b82f6;
	border-color: #3b82f6;
	color: #fff;
}

/* Slot grid */
.su-booking-widget__slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 8px;
}
.su-booking-widget__slot {
	padding: 12px 8px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	font-variant-numeric: tabular-nums;
	transition: border-color .12s, background-color .12s, color .12s;
}
.su-booking-widget__slot:hover {
	border-color: #3b82f6;
	background: #eff6ff;
	color: #1d4ed8;
}
.su-booking-widget__slot small {
	display: block;
	font-size: 11px;
	font-weight: 500;
	color: #9ca3af;
	margin-top: 2px;
}

.su-booking-widget__loading,
.su-booking-widget__empty {
	text-align: center;
	color: #9ca3af;
	font-size: 14px;
	padding: 28px 0;
}

/* Form */
.su-booking-widget__form {
	margin-top: 4px;
}
.su-booking-widget__chosen {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 18px;
	font-weight: 600;
	font-size: 15px;
	color: #1e40af;
}
.su-booking-widget__form .form-group {
	margin-bottom: 12px;
}
.su-booking-widget__form .form-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 5px;
}
.su-booking-widget__form .form-group label small {
	font-weight: 400;
	color: #9ca3af;
}
.su-booking-widget__form .form-control {
	width: 100%;
	padding: 11px 12px;
	font-size: 14px;
	font-family: inherit;
	color: #111827;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	outline: none;
	box-shadow: none;
	transition: border-color .12s, background-color .12s;
}
.su-booking-widget__form .form-control:focus {
	border-color: #3b82f6;
	background: #fff;
}
.su-booking-widget__form textarea.form-control { resize: vertical; min-height: 64px; }

.su-booking-widget__error {
	margin: 8px 0 12px;
	padding: 10px 12px;
	font-size: 13px;
	color: #b91c1c;
	background: #fee2e2;
	border: 0;
	border-radius: 6px;
}

.su-booking-widget__actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}
.su-booking-widget__actions .btn {
	flex: 1 1 0;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: filter .12s, background-color .12s, border-color .12s;
}
.su-booking-widget__actions .btn-default {
	flex: 0 0 auto;
	background: #fff;
	border-color: #e5e7eb;
	color: #374151;
}
.su-booking-widget__actions .btn-default:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}
.su-booking-widget__actions .btn-primary {
	background: #3b82f6;
	border-color: #3b82f6;
	color: #fff;
}
.su-booking-widget__actions .btn-primary:hover:not(:disabled) { filter: brightness(0.95); }
.su-booking-widget__actions .btn-primary:disabled {
	background: #d1d5db;
	border-color: #d1d5db;
	cursor: not-allowed;
}

/* Success */
.su-booking-widget__success {
	text-align: center;
	padding: 32px 16px;
}
.su-booking-widget__success h4 {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	color: #065f46;
}
.su-booking-widget__success p {
	margin: 0;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.5;
}

/* Missing-config placeholder shown to admins when bookable is unset */
.su-booking-widget--missing {
	background: #f9fafb;
	border-style: dashed;
}
