article:has(.afb-booking) > h1,
.hentry:has(.afb-booking) > h1 {
	max-width: 40rem;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 0.65rem;
	text-align: left;
}

.afb-booking {
	box-sizing: border-box;
	max-width: 40rem;
	margin: 0 auto 1.5rem;
	padding: 1.25rem;
	color: inherit;
	font-family: var(--afb-font, system-ui, sans-serif);
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--afb-primary, #1d4e89) 25%, #dcdcde);
	border-radius: var(--afb-radius, 6px);
}

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

.afb-lang {
	position: relative;
	display: flex;
	justify-content: flex-end;
	margin: 0 0 0.85rem;
}

.afb-lang-toggle,
.afb-lang-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	font: inherit;
	text-align: left;
	background: #fff;
	color: inherit;
}

.afb-lang-toggle {
	width: auto;
	min-width: 10.5rem;
	padding: 0.4rem 0.7rem;
	border: 1px solid #c3c4c7;
	border-radius: 999px;
	cursor: pointer;
}

.afb-lang-menu {
	position: absolute;
	top: calc(100% + 0.35rem);
	right: 0;
	z-index: 5;
	min-width: 11.5rem;
	margin: 0;
	padding: 0.3rem;
	list-style: none;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.afb-lang-option {
	padding: 0.45rem 0.55rem;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.afb-lang-option:hover,
.afb-lang-option.is-selected {
	background: #f6f7f7;
}

.afb-flag {
	width: 20px;
	height: 14px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	flex: 0 0 auto;
	overflow: hidden;
}

.afb-booking .afb-brand {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 1rem;
}

.afb-booking .afb-brand img {
	max-width: 8rem;
	height: auto;
}

.afb-booking .afb-company {
	margin: 0;
	font-weight: 700;
}

.afb-booking .afb-progress {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.35rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.afb-booking .afb-step {
	margin: 0 0 0.55rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
}

.afb-booking .afb-step-body {
	text-align: left;
}

.afb-booking .afb-progress li {
	padding: 0.2rem 0.45rem;
	border-radius: var(--afb-radius, 6px);
	background: #f6f7f7;
	font-size: 0.85rem;
}

.afb-booking .afb-progress li.is-current {
	background: #14375f;
	color: #fff;
}

.afb-booking .afb-choices,
.afb-booking .afb-fields {
	display: grid;
	gap: 0.6rem;
}

.afb-booking .afb-times {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.45rem;
}

.afb-booking .afb-times .afb-choice {
	padding: 0.45rem 0.2rem;
	font-size: 0.92rem;
	text-align: center;
}

.afb-booking .afb-choice,
.afb-booking .afb-button,
.afb-booking .afb-next,
.afb-booking .afb-back {
	font: inherit;
	cursor: pointer;
	border-radius: var(--afb-radius, 6px);
	padding: 0.65rem 0.9rem;
}

.afb-booking[data-button="solid"] .afb-choice,
.afb-booking[data-button="solid"] .afb-button,
.afb-booking[data-button="solid"] .afb-next {
	background: var(--afb-primary, #1d4e89);
	color: #fff;
	border: 1px solid var(--afb-primary, #1d4e89);
}

.afb-booking[data-button="outline"] .afb-choice,
.afb-booking[data-button="outline"] .afb-button,
.afb-booking[data-button="outline"] .afb-next {
	background: transparent;
	color: var(--afb-primary, #1d4e89);
	border: 1px solid var(--afb-primary, #1d4e89);
}

.afb-booking .afb-choice.is-selected {
	background: var(--afb-accent, #0f766e);
	color: #fff;
	border-color: var(--afb-accent, #0f766e);
}

.afb-booking .afb-choice:disabled,
.afb-booking[data-button="solid"] .afb-choice:disabled,
.afb-booking[data-button="outline"] .afb-choice:disabled {
	background: #e7eef6;
	color: #8aa0b8;
	border-color: #d5e0ea;
	cursor: not-allowed;
}

.afb-booking .afb-back {
	background: transparent;
	color: inherit;
	border: 1px solid #dcdcde;
}

.afb-booking .afb-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.afb-booking label {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	width: 100%;
	margin: 0;
	text-align: left;
}

.afb-booking label:has(input[type="checkbox"]) {
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.6rem;
}

.afb-booking label:has(input[type="checkbox"]) input {
	width: 1rem;
	height: 1rem;
	margin-top: 0.15rem;
	flex: 0 0 auto;
}

.afb-booking input,
.afb-booking textarea,
.afb-booking select {
	width: 100%;
	font: inherit;
	padding: 0.55rem 0.65rem;
	border: 1px solid #c3c4c7;
	border-radius: var(--afb-radius, 6px);
}

.afb-booking .afb-message {
	min-height: 1.2em;
	color: #8a2424;
}

.afb-booking :focus-visible {
	outline: 3px solid var(--afb-accent, #0f766e);
	outline-offset: 2px;
}

.afb-booking .afb-progress li.is-current {
	background: #14375f;
}

@media (max-width: 782px) {
	article:has(.afb-booking) > h1,
	.hentry:has(.afb-booking) > h1 {
		max-width: none;
		margin-right: 0.75rem;
		margin-left: 0.75rem;
	}

	.afb-booking {
		max-width: none;
		margin: 0 0.75rem 1.5rem;
		padding: 1rem;
	}
}

.afb-booking .afb-account-list {
	padding-left: 1.1rem;
}

@media (max-width: 420px) {
	.afb-booking .afb-times {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.afb-confirm {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.48);
}

.afb-confirm__card {
	width: min(100%, 28rem);
	margin: 0;
	padding: 28px 28px 24px;
	background: #fff;
	border-radius: 16px;
	border-top: 4px solid var(--afb-accent, #0f766e);
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
	font-family: var(--afb-font, system-ui, sans-serif);
	color: #122033;
}

.afb-confirm__card h2 {
	margin: 0 0 10px;
	color: var(--afb-primary, #1d4e89);
	font-size: 1.45rem;
}

.afb-confirm__card p {
	margin: 0 0 12px;
	line-height: 1.5;
}

.afb-confirm__when {
	padding: 12px 14px;
	background: #f4f7fb;
	border-radius: 10px;
}

.afb-confirm__close {
	margin-top: 8px;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--afb-primary, #1d4e89);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 600px) {
	.afb-booking .afb-actions,
	.afb-booking .afb-actions button {
		width: 100%;
	}

	.afb-booking .afb-actions {
		flex-direction: column-reverse;
	}
}
