.tps-booking-open {
	overflow: hidden;
}

.tps-booking-modal,
.tps-booking-modal * {
	box-sizing: border-box;
}

.tps-booking-modal {
	position: fixed;
	inset: 0;
	z-index: 1000002;
	display: grid;
	place-items: center;
	padding: 28px;
	font-family: Inter, Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #0f172a;
}

.tps-booking-modal[hidden] {
	display: none;
}

.tps-booking-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.56);
	backdrop-filter: blur(12px);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.tps-booking-modal__panel {
	position: relative;
	display: flex;
	width: min(1040px, calc(100vw - 72px));
	max-height: min(680px, calc(100dvh - 96px));
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(226, 232, 240, 0.92);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 32px 100px rgba(15, 23, 42, 0.34);
	opacity: 0;
	transform: translateY(18px) scale(0.98);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.tps-booking-modal.is-open .tps-booking-modal__backdrop,
.tps-booking-modal.is-open .tps-booking-modal__panel {
	opacity: 1;
}

.tps-booking-modal.is-open .tps-booking-modal__panel {
	transform: translateY(0) scale(1);
}

.tps-booking-modal__header {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 24px;
	color: #fff;
	background: radial-gradient(circle at 18% 0%, rgba(6, 182, 212, 0.48), transparent 34%), linear-gradient(135deg, #0f172a, #2563eb);
}

.tps-booking-modal__header p {
	margin: 0 0 8px;
	color: #a5f3fc;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.tps-booking-modal__header h2 {
	margin: 0;
	color: #fff;
	font-size: 23px;
	font-weight: 900;
	line-height: 1.2;
}

.tps-booking-modal__close {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 0;
	border-radius: 14px;
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.18s ease;
}

.tps-booking-modal__close:hover {
	background: rgba(255, 255, 255, 0.24);
}

.tps-booking-modal__body {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: 235px minmax(360px, 1fr) 285px;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	background: #fff;
	scrollbar-width: thin;
	scrollbar-color: #93c5fd transparent;
}

.tps-booking-modal__body::-webkit-scrollbar {
	width: 8px;
}

.tps-booking-modal__body::-webkit-scrollbar-track {
	background: transparent;
}

.tps-booking-modal__body::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: #93c5fd;
}

.tps-booking-summary,
.tps-booking-calendar,
.tps-booking-times,
.tps-booking-form {
	min-height: 455px;
	padding: 22px;
}

.tps-booking-summary {
	border-right: 1px solid #e2e8f0;
	background: #fff;
}

.tps-booking-summary p {
	margin: 0 0 10px;
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
}

.tps-booking-summary h3 {
	margin: 0;
	color: #0f172a;
	font-size: 21px;
	font-weight: 900;
	line-height: 1.2;
}

.tps-booking-summary ul {
	display: grid;
	gap: 12px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.tps-booking-summary li {
	position: relative;
	padding-left: 28px;
	color: #475569;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.5;
}

.tps-booking-summary li::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2563eb, #06b6d4);
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.tps-booking-calendar {
	border-right: 1px solid #e2e8f0;
	background: #fff;
}

.tps-booking-calendar__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.tps-booking-calendar__top h3,
.tps-booking-times h3,
.tps-booking-form h3 {
	margin: 0;
	color: #0f172a;
	font-size: 18px;
	font-weight: 900;
}

.tps-booking-calendar__top div {
	display: flex;
	gap: 8px;
}

.tps-booking-calendar__top button {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid #dbeafe;
	border-radius: 50%;
	color: #2563eb;
	background: #fff;
	font-size: 24px;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease;
}

.tps-booking-calendar__top button:hover:not(:disabled) {
	border-color: #06b6d4;
	background: #eff6ff;
}

.tps-booking-calendar__top button:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.tps-booking-month {
	margin: 16px 0 12px;
	color: #0f172a;
	font-size: 17px;
	font-weight: 900;
}

.tps-booking-weekdays,
.tps-booking-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
}

.tps-booking-weekdays span {
	display: grid;
	height: 24px;
	place-items: center;
	color: #64748b;
	font-size: 12px;
	font-weight: 850;
}

.tps-booking-calendar-grid {
	margin-top: 6px;
}

.tps-booking-date {
	display: grid;
	aspect-ratio: 1;
	place-items: center;
	border: 0;
	border-radius: 50%;
	color: #0f172a;
	background: transparent;
	font-size: 14px;
	font-weight: 850;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tps-booking-date:hover:not(:disabled),
.tps-booking-date.is-selected {
	color: #fff;
	background: #2563eb;
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.tps-booking-date.is-today:not(.is-selected) {
	color: #2563eb;
	background: #eff6ff;
}

.tps-booking-date.is-disabled {
	color: #cbd5e1;
	cursor: not-allowed;
}

.tps-booking-date.is-empty {
	visibility: hidden;
}

.tps-booking-times {
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	background: #f8fafc;
}

.tps-booking-times > p {
	margin: 10px 0 18px;
	color: #475569;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.5;
}

.tps-booking-slots {
	display: grid;
	gap: 10px;
	min-height: 0;
	max-height: 330px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: #93c5fd transparent;
}

.tps-booking-slots::-webkit-scrollbar {
	width: 8px;
}

.tps-booking-slots::-webkit-scrollbar-track {
	background: transparent;
}

.tps-booking-slots::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: #93c5fd;
}

.tps-booking-time-row button {
	width: 100%;
	border: 1px solid #bfdbfe;
	border-radius: 12px;
	padding: 11px 13px;
	color: #2563eb;
	background: #fff;
	font-size: 15px;
	font-weight: 900;
	cursor: pointer;
	transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.tps-booking-time-row button:hover,
.tps-booking-time-row button.is-selected {
	transform: translateY(-1px);
	border-color: #06b6d4;
	color: #fff;
	background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.tps-booking-form {
	position: absolute;
	right: 0;
	top: 86px;
	bottom: 0;
	z-index: 2;
	display: grid;
	width: 300px;
	grid-template-columns: 1fr;
	gap: 10px;
	overflow-y: auto;
	border-left: 1px solid #dbeafe;
	background: #fff;
	box-shadow: -20px 0 45px rgba(15, 23, 42, 0.08);
	opacity: 0;
	pointer-events: none;
	transform: translateX(24px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.tps-booking-form.is-ready {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(0);
}

.tps-booking-form h3,
.tps-booking-form__slot,
.tps-booking-form__wide,
.tps-booking-form button,
.tps-booking-status {
	grid-column: 1 / -1;
}

.tps-booking-form__slot {
	margin: -4px 0 2px;
	border-radius: 12px;
	padding: 10px 12px;
	color: #075985;
	background: #ecfeff;
	font-size: 13px;
	font-weight: 850;
}

.tps-booking-form label,
.tps-booking-form__wide {
	display: grid;
	gap: 7px;
}

.tps-booking-form span {
	font-size: 13px;
	font-weight: 900;
	color: #0f172a;
}

.tps-booking-form input,
.tps-booking-form textarea {
	width: 100%;
	border: 1px solid #dbe3ef;
	border-radius: 13px;
	padding: 9px 11px;
	color: #0f172a;
	background: #f8fafc;
	font-size: 14px;
	outline: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tps-booking-form textarea {
	min-height: 68px;
	resize: vertical;
}

.tps-booking-form input:focus,
.tps-booking-form textarea:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.tps-booking-form button {
	border: 0;
	border-radius: 999px;
	padding: 11px 16px;
	color: #fff;
	background: linear-gradient(135deg, #2563eb, #06b6d4);
	font-size: 15px;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 16px 36px rgba(37, 99, 235, 0.24);
}

.tps-booking-form button:disabled {
	opacity: 0.7;
	cursor: wait;
}

.tps-booking-status {
	min-height: 22px;
	margin: 0;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.6;
}

.tps-booking-status.is-success {
	color: #047857;
}

.tps-booking-status.is-error {
	color: #b91c1c;
}

.tps-booking-empty {
	margin: 0;
	color: #64748b;
	font-weight: 700;
	line-height: 1.6;
}

.tps-booking-confirmation {
	position: absolute;
	inset: 110px 0 0;
	z-index: 5;
	display: grid;
	place-items: center;
	padding: 28px;
	background: linear-gradient(180deg, rgba(248, 250, 252, 0.97), rgba(255, 255, 255, 0.98));
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.tps-booking-confirmation[hidden] {
	display: none;
}

.tps-booking-confirmation.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.tps-booking-confirmation__card {
	width: min(620px, 100%);
	border: 1px solid #dbeafe;
	border-radius: 26px;
	padding: 30px;
	background: #fff;
	box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
	text-align: center;
}

.tps-booking-confirmation__icon {
	display: grid;
	width: 62px;
	height: 62px;
	margin: 0 auto 16px;
	place-items: center;
	border-radius: 22px;
	color: #fff;
	background: linear-gradient(135deg, #2563eb, #06b6d4);
	box-shadow: 0 18px 36px rgba(37, 99, 235, 0.26);
}

.tps-booking-confirmation__icon svg {
	width: 30px;
	height: 30px;
}

.tps-booking-confirmation__eyebrow {
	margin: 0 0 8px;
	color: #2563eb;
	font-size: 12px;
	font-weight: 950;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.tps-booking-confirmation h3 {
	margin: 0;
	color: #0f172a;
	font-size: 28px;
	font-weight: 950;
	line-height: 1.2;
}

.tps-booking-confirmation__message {
	max-width: 520px;
	margin: 12px auto 0;
	color: #475569;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.7;
}

.tps-booking-confirmation__details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 22px;
	text-align: left;
}

.tps-booking-confirmation__details div {
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 14px;
	background: #f8fafc;
}

.tps-booking-confirmation__details span {
	display: block;
	margin-bottom: 5px;
	color: #64748b;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.tps-booking-confirmation__details strong {
	display: block;
	color: #0f172a;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.tps-booking-confirmation__note {
	margin: 18px 0 0;
	border-radius: 16px;
	padding: 13px 15px;
	color: #075985;
	background: #ecfeff;
	font-size: 13px;
	font-weight: 850;
	line-height: 1.6;
}

.tps-booking-confirmation__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 22px;
}

.tps-booking-confirmation__actions a,
.tps-booking-confirmation__actions button {
	border: 1px solid #dbeafe;
	border-radius: 999px;
	padding: 11px 16px;
	color: #2563eb;
	background: #fff;
	font-size: 13px;
	font-weight: 950;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tps-booking-confirmation__actions a,
.tps-booking-confirmation__actions button:last-child {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(135deg, #2563eb, #06b6d4);
	box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.tps-booking-confirmation__actions a:hover,
.tps-booking-confirmation__actions button:hover {
	transform: translateY(-1px);
}

@media (max-width: 1050px) {
	.tps-booking-modal__body {
		grid-template-columns: 230px minmax(360px, 1fr) 290px;
	}

	.tps-booking-form {
		width: 290px;
	}
}

@media (max-width: 900px) {
	.tps-booking-modal {
		align-items: start;
		height: 100dvh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.tps-booking-modal__panel {
		max-height: none;
		margin: 0 auto;
		overflow: visible;
	}

	.tps-booking-modal__body {
		display: grid;
		grid-template-columns: 1fr;
		max-height: none;
		overflow: visible;
	}

	.tps-booking-summary,
	.tps-booking-calendar,
	.tps-booking-times,
	.tps-booking-form {
		min-height: auto;
		padding: 22px;
		border-right: 0;
		border-bottom: 1px solid #e2e8f0;
	}

	.tps-booking-slots {
		max-height: 260px;
	}

	.tps-booking-form {
		position: static;
		width: 100%;
		box-shadow: none;
	}

	.tps-booking-confirmation {
		position: absolute;
		inset: 0;
		overflow-y: auto;
		align-items: start;
	}
}

@media (max-width: 560px) {
	.tps-booking-modal {
		padding: 8px;
	}

	.tps-booking-modal__panel {
		width: 100%;
		min-height: auto;
		border-radius: 18px;
	}

	.tps-booking-modal__header {
		padding: 18px;
	}

	.tps-booking-modal__header h2 {
		font-size: 21px;
	}

	.tps-booking-summary,
	.tps-booking-calendar,
	.tps-booking-times,
	.tps-booking-form {
		padding: 16px;
	}

	.tps-booking-weekdays,
	.tps-booking-calendar-grid {
		gap: 5px;
	}

	.tps-booking-date {
		font-size: 13px;
	}

	.tps-booking-calendar__top {
		align-items: flex-start;
	}

	.tps-booking-calendar__top h3,
	.tps-booking-times h3,
	.tps-booking-form h3 {
		font-size: 18px;
	}

	.tps-booking-month {
		margin: 16px 0 12px;
	}

	.tps-booking-slots {
		max-height: 220px;
	}

	.tps-booking-confirmation {
		padding: 10px;
	}

	.tps-booking-confirmation__card {
		padding: 22px;
	}

	.tps-booking-confirmation h3 {
		font-size: 23px;
	}

	.tps-booking-confirmation__details {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 360px) {
	.tps-booking-modal {
		padding: 4px;
	}

	.tps-booking-modal__header {
		padding: 15px;
	}

	.tps-booking-modal__header h2 {
		font-size: 19px;
	}

	.tps-booking-summary h3 {
		font-size: 21px;
	}

	.tps-booking-summary,
	.tps-booking-calendar,
	.tps-booking-times,
	.tps-booking-form {
		padding: 14px;
	}

	.tps-booking-weekdays span {
		font-size: 11px;
	}

	.tps-booking-date {
		font-size: 12px;
	}
}
