.squarex-booking-checkout {
	--squarex-checkout-accent: #147d6f;
	--squarex-checkout-ink: #10201e;
	--squarex-checkout-line: #d7e1df;
	background: transparent !important;
	border: 0 !important;
	border-radius: 18px;
	box-shadow: none !important;
	color: var(--squarex-checkout-ink);
	padding: clamp(24px, 5vw, 48px);
}

.squarex-booking-checkout [hidden] {
	display: none !important;
}

.squarex-booking-checkout__header {
	margin-bottom: 28px;
}

.squarex-booking-checkout h2 {
	font-size: clamp(32px, 5vw, 48px);
	line-height: 1.1;
	margin: 0 0 12px;
}

.squarex-booking-checkout__header p {
	margin: 0;
}

.squarex-booking-checkout__table-wrap {
	border: 0;
	overflow-x: auto;
}

.squarex-booking-checkout table {
	border: 0 !important;
	border-collapse: separate;
	border-spacing: 0 8px;
	min-width: 760px;
	table-layout: fixed;
	width: 100%;
}

.squarex-booking-checkout th,
.squarex-booking-checkout td {
	border: 0 !important;
	padding: 15px 10px;
	text-align: left;
}

.squarex-booking-checkout th:first-child,
.squarex-booking-checkout td:first-child {
	padding-left: 16px;
	width: 40%;
}

.squarex-booking-checkout th:not(:first-child),
.squarex-booking-checkout td:not(:first-child) {
	width: 12%;
}

.squarex-booking-checkout th:last-child,
.squarex-booking-checkout td:last-child {
	padding-right: 16px;
}

.squarex-booking-checkout th {
	background: transparent;
	color: color-mix(in srgb, currentColor 68%, transparent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	padding-bottom: 4px;
	padding-top: 0;
	text-transform: uppercase;
}

.squarex-booking-checkout tbody td {
	background: #f5f7f6;
}

.squarex-booking-checkout tbody td:first-child {
	border-radius: 12px 0 0 12px;
}

.squarex-booking-checkout tbody td:last-child {
	border-radius: 0 12px 12px 0;
}

.squarex-booking-checkout th:last-child,
.squarex-booking-checkout td:last-child {
	text-align: right;
}

.squarex-booking-checkout__total {
	align-items: center;
	background: #eff6f4;
	display: flex;
	font-size: 18px;
	justify-content: space-between;
	margin-top: 16px;
	padding: 16px 18px;
}

.squarex-booking-checkout__summary .squarex-booking-checkout__total:first-child {
	margin-top: 0;
}

.squarex-booking-checkout__notice {
	background: #fff8e8;
	border-left: 4px solid #d89c26;
	font-size: 13px;
	margin: 16px 0 0;
	padding: 12px 14px;
}

.squarex-booking-checkout__payment {
	margin-top: 28px;
}

.squarex-booking-checkout__checkout-grid {
	align-items: start;
	display: grid;
	gap: 32px;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
}

.squarex-booking-checkout__customer,
.squarex-booking-checkout__summary {
	min-width: 0;
}

.squarex-booking-checkout [data-role="payment-section"] {
	border-top: 0;
	margin-top: 28px;
	padding-top: 0;
}

.squarex-booking-checkout__payment h3,
.squarex-booking-checkout__success h3,
.squarex-booking-checkout__modal h3 {
	font-size: 22px;
	margin: 0 0 16px;
}

.squarex-booking-checkout__fields {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 18px;
}

.squarex-booking-checkout__fields label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	position: relative;
}

.squarex-booking-checkout__fields label > span {
	background: #fff;
	left: 12px;
	line-height: 1;
	padding: 0 5px;
	pointer-events: none;
	position: absolute;
	top: 0;
	transform: translateY(-50%);
	z-index: 1;
}

.squarex-booking-checkout__fields input {
	-webkit-text-fill-color: #000;
	background: #fff !important;
	border: 1px solid var(--squarex-checkout-line);
	border-radius: 9px;
	color: #000 !important;
	color-scheme: light;
	font: inherit;
	min-height: 48px;
	padding: 10px 13px;
	width: 100%;
}

.squarex-booking-checkout__fields input::placeholder {
	color: #000;
	opacity: 1;
}

.squarex-booking-checkout__fields input:-webkit-autofill,
.squarex-booking-checkout__fields input:-webkit-autofill:hover,
.squarex-booking-checkout__fields input:-webkit-autofill:focus {
	-webkit-text-fill-color: #000;
	box-shadow: 0 0 0 1000px #fff inset;
}

.squarex-booking-checkout__fields input:focus {
	border-color: var(--squarex-checkout-accent);
	box-shadow: 0 0 0 2px rgb(20 125 111 / 14%);
	outline: 0;
}

.squarex-booking-checkout__consent {
	align-items: flex-start;
	display: flex;
	font-size: 13px;
	gap: 9px;
	margin: 0 0 16px;
}

.squarex-booking-checkout__consent input {
	margin-top: 3px;
}

.squarex-booking-checkout__card {
	background: #fff;
	border: 1px solid var(--squarex-checkout-line);
	border-radius: 9px;
	min-height: 90px;
	padding: 12px;
}

.squarex-booking-checkout__card-note {
	font-size: 12px;
	margin: 10px 0 0;
}

.squarex-booking-checkout__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.squarex-booking-checkout__actions--payment {
	justify-content: flex-start;
}

.squarex-booking-checkout__back-actions {
	display: flex;
	justify-content: flex-start;
}

.squarex-booking-checkout__actions .squarex-booking-checkout__button {
	margin-top: 0;
}

.squarex-booking-checkout__loader {
	align-items: center;
	display: flex;
	gap: 12px;
	min-height: 90px;
}

.squarex-booking-checkout__spinner {
	animation: squarex-checkout-spin .8s linear infinite;
	border: 3px solid #cbd9d6;
	border-radius: 50%;
	border-top-color: var(--squarex-checkout-accent);
	height: 28px;
	width: 28px;
}

.squarex-booking-checkout__status {
	border-radius: 8px;
	font-size: 14px;
}

.squarex-booking-checkout__status:not(:empty) {
	background: #edf6f4;
	margin-top: 18px;
	padding: 12px 14px;
}

.squarex-booking-checkout__status[data-type="error"] {
	background: #fff0f0;
	color: #a82727;
}

.squarex-booking-checkout__button {
	background: transparent;
	border: 1px solid var(--squarex-checkout-accent);
	border-radius: 10px;
	color: var(--squarex-checkout-accent);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	margin-top: 18px;
	min-height: 44px;
	padding: 10px 18px;
}

.squarex-booking-checkout__button--pay {
	background: var(--squarex-checkout-accent);
	color: #fff;
}

.squarex-booking-checkout__button {
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.squarex-booking-checkout__button:disabled {
	cursor: wait;
	opacity: .55;
}

.squarex-booking-checkout__modal {
	align-items: center;
	background: rgb(0 0 0 / 58%);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 99999;
}

.squarex-booking-checkout__modal-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 80px rgb(0 0 0 / 24%);
	max-width: 520px;
	padding: 28px;
	width: 100%;
}

.squarex-booking-checkout__success {
	background: #edf6f4;
	border-radius: 12px;
	padding: 24px;
}

@keyframes squarex-checkout-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
	.squarex-booking-checkout__checkout-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.squarex-booking-checkout__table-wrap {
		border: 0 !important;
		overflow: hidden;
	}

	.squarex-booking-checkout table {
		border: 0 !important;
		border-spacing: 0;
		box-shadow: none !important;
		max-width: 100%;
		min-width: 0;
		outline: 0 !important;
		width: 100% !important;
	}

	.squarex-booking-checkout thead {
		display: none;
	}

	.squarex-booking-checkout tbody,
	.squarex-booking-checkout tr,
	.squarex-booking-checkout td {
		border: 0 !important;
		box-shadow: none !important;
		display: block;
		outline: 0 !important;
		width: 100%;
	}

	.squarex-booking-checkout tbody tr + tr {
		margin-top: 14px;
	}

	.squarex-booking-checkout tbody td {
		align-items: center;
		border-bottom: 0 !important;
		border-top: 0 !important;
		display: flex;
		gap: 20px;
		justify-content: space-between;
		padding: 11px 14px;
		text-align: right !important;
	}

	.squarex-booking-checkout tbody tr::before,
	.squarex-booking-checkout tbody tr::after,
	.squarex-booking-checkout tbody td::after {
		border: 0 !important;
		box-shadow: none !important;
		content: none !important;
		display: none !important;
	}

	.squarex-booking-checkout tbody td::before {
		color: color-mix(in srgb, currentColor 68%, transparent);
		content: attr(data-label);
		flex: 0 0 auto;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: .06em;
		text-align: left;
		text-transform: uppercase;
	}

	.squarex-booking-checkout tbody td:first-child {
		border-radius: 12px 12px 0 0;
	}

	.squarex-booking-checkout tbody td:last-child {
		border-radius: 0 0 12px 12px;
	}

	.squarex-booking-checkout__fields {
		grid-template-columns: 1fr;
	}
}
