/* O365 Stripe Booking – inherits the theme's fonts; override the variables in your theme to rebrand. */
.o365sb {
	--o365sb-accent: #1f4e79;
	--o365sb-accent-ink: #ffffff;
	--o365sb-line: rgba(0, 0, 0, 0.16);
	--o365sb-soft: rgba(31, 78, 121, 0.07);
	--o365sb-muted: rgba(0, 0, 0, 0.62);
	--o365sb-ok: #1e6b3a;
	--o365sb-bad: #a12622;
	max-width: 36rem;
	margin: 0 auto 2rem;
	line-height: 1.5;
	scroll-margin-top: 6rem;
}

.o365sb *,
.o365sb *::before,
.o365sb *::after {
	box-sizing: border-box;
}

.o365sb-header {
	padding-bottom: 1rem;
	margin-bottom: 1.25rem;
	border-bottom: 2px solid var(--o365sb-accent);
}

.o365sb-title {
	margin: 0;
	font-size: 1.5em;
	line-height: 1.2;
}

.o365sb-meta {
	margin: 0.25rem 0 0;
	color: var(--o365sb-muted);
}

.o365sb-step {
	border: 0;
	padding: 0;
	margin: 0 0 1.75rem;
	min-width: 0;
}

.o365sb-step legend {
	font-weight: 700;
	font-size: 1.05em;
	padding: 0;
	margin-bottom: 0.75rem;
}

.o365sb-field {
	display: block;
	margin-bottom: 0.9rem;
}

.o365sb-field > span {
	display: block;
	font-size: 0.92em;
	margin-bottom: 0.3rem;
}

.o365sb-field small {
	display: block;
	margin-top: 0.3rem;
	color: var(--o365sb-muted);
	font-size: 0.85em;
}

.o365sb-field input,
.o365sb-field textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	font: inherit;
	color: inherit;
	background: transparent;
	border: 1px solid var(--o365sb-line);
	border-radius: 6px;
}

.o365sb-field input:focus-visible,
.o365sb-field textarea:focus-visible,
.o365sb-slot input:focus-visible + span,
.o365sb-submit:focus-visible {
	outline: 3px solid var(--o365sb-accent);
	outline-offset: 2px;
}

.o365sb-slot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
	gap: 0.5rem;
}

.o365sb-slot {
	position: relative;
	margin: 0;
}

.o365sb-slot input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.o365sb-slot span {
	display: block;
	text-align: center;
	padding: 0.55rem 0.4rem;
	border: 1px solid var(--o365sb-line);
	border-radius: 6px;
	cursor: pointer;
	font-variant-numeric: tabular-nums;
	transition: background-color 0.12s ease, border-color 0.12s ease;
}

.o365sb-slot span:hover {
	border-color: var(--o365sb-accent);
	background: var(--o365sb-soft);
}

.o365sb-slot input:checked + span {
	background: var(--o365sb-accent);
	border-color: var(--o365sb-accent);
	color: var(--o365sb-accent-ink);
	font-weight: 600;
}

.o365sb-hint {
	margin: 0.25rem 0;
	color: var(--o365sb-muted);
}

.o365sb-hint.is-error {
	color: var(--o365sb-bad);
}

.o365sb-tz {
	margin: 0.75rem 0 0;
	font-size: 0.85em;
	color: var(--o365sb-muted);
}

.o365sb-alert {
	padding: 0.75rem 1rem;
	margin: 0 0 1.25rem;
	border-left: 4px solid var(--o365sb-bad);
	background: rgba(161, 38, 34, 0.07);
}

.o365sb-submit {
	display: block;
	width: 100%;
	padding: 0.9rem 1rem;
	font: inherit;
	font-weight: 700;
	color: var(--o365sb-accent-ink);
	background: var(--o365sb-accent);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.o365sb-submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.o365sb-secure {
	margin: 0.6rem 0 0;
	text-align: center;
	font-size: 0.85em;
	color: var(--o365sb-muted);
}

.o365sb-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Result states */
.o365sb-result {
	padding: 1.5rem;
	border: 1px solid var(--o365sb-line);
	border-top: 4px solid var(--o365sb-muted);
	border-radius: 6px;
}

.o365sb-result h3 {
	margin: 0 0 0.5rem;
}

.o365sb-result.is-success {
	border-top-color: var(--o365sb-ok);
}

.o365sb-result.is-success h3 {
	color: var(--o365sb-ok);
}

.o365sb-result.is-pending {
	border-top-color: var(--o365sb-accent);
}

.o365sb-details {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem 1.25rem;
	margin: 1.25rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--o365sb-line);
}

.o365sb-details dt {
	color: var(--o365sb-muted);
}

.o365sb-details dd {
	margin: 0;
}

@media (max-width: 480px) {
	.o365sb-details {
		grid-template-columns: 1fr;
		gap: 0.1rem;
	}
	.o365sb-details dd {
		margin-bottom: 0.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.o365sb-slot span {
		transition: none;
	}
}

.o365sb-sub {
	font-size: 0.88em;
	color: var(--o365sb-muted);
}

.o365sb-details s {
	color: var(--o365sb-muted);
}

.o365sb-keep {
	margin: 1rem 0 0;
	font-size: 0.88em;
	color: var(--o365sb-muted);
}

/* Payment policy */
.o365sb-policy {
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--o365sb-line);
	border-left: 4px solid var(--o365sb-accent);
	border-radius: 6px;
	background: var(--o365sb-soft);
	font-size: 0.92em;
}

.o365sb-policy p {
	margin: 0 0 0.5rem;
}

.o365sb-policy-title {
	font-weight: 700;
}

.o365sb-agree {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	margin-top: 0.75rem;
	cursor: pointer;
}

.o365sb-agree input {
	margin-top: 0.3em;
	width: 1.1em;
	height: 1.1em;
	flex: 0 0 auto;
	accent-color: var(--o365sb-accent);
}

/* Promo code */
.o365sb-promo {
	margin: 0 0 1.5rem;
}

.o365sb-promo-row {
	display: flex;
	gap: 0.5rem;
	align-items: flex-end;
}

.o365sb-promo-row .o365sb-field {
	flex: 1 1 auto;
	min-width: 0;
	margin-bottom: 0;
}

.o365sb-promo-row .o365sb-field input {
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.o365sb-promo.is-applied .o365sb-field input {
	border-color: var(--o365sb-ok);
}

.o365sb-promo-apply {
	flex: 0 0 auto;
	padding: 0.65rem 1.1rem;
	font: inherit;
	font-weight: 600;
	color: var(--o365sb-accent);
	background: transparent;
	border: 1px solid var(--o365sb-accent);
	border-radius: 6px;
	cursor: pointer;
}

.o365sb-promo-apply:hover {
	background: var(--o365sb-soft);
}

.o365sb-promo-apply:disabled {
	opacity: 0.55;
	cursor: progress;
}

.o365sb-promo-apply:focus-visible,
.o365sb-promo-remove:focus-visible {
	outline: 3px solid var(--o365sb-accent);
	outline-offset: 2px;
}

.o365sb-promo-msg {
	margin: 0.5rem 0 0;
	font-size: 0.92em;
	color: var(--o365sb-muted);
}

.o365sb-promo-msg[hidden] {
	display: none;
}

.o365sb-promo-msg.is-ok {
	color: var(--o365sb-ok);
}

.o365sb-promo-msg.is-error {
	color: var(--o365sb-bad);
}

.o365sb .o365sb-promo-remove {
	color: inherit;
	text-decoration: underline;
	white-space: nowrap;
	cursor: pointer;
}
