.ts-callback-is-open {
	overflow: hidden;
}

.ts-callback-modal[hidden] {
	display: none !important;
}

.ts-callback-modal {
	position: fixed;
	inset: 0;
	z-index: 11000;
	display: none;
	place-items: center;
	padding: 24px;
}

.ts-callback-modal:not([hidden]) {
	display: grid;
}

.ts-callback-modal *,
.ts-callback-modal *::before,
.ts-callback-modal *::after {
	box-sizing: border-box;
}

.ts-callback-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 50%);
}

.ts-callback-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(40.2vw, 990px);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 50px;
	background: #fff;
	box-shadow: 0 12px 35px rgb(0 0 0 / 18%);
}

.ts-callback-modal__close {
	position: absolute;
	top: 30px;
	right: 32px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 2px solid #1769c2;
	border-radius: 6px;
	background: #fff;
	color: #242424;
	font: 400 26px/24px Arial, sans-serif;
	cursor: pointer;
}

.ts-callback-modal__dialog h2 {
	margin: 0;
	color: #183c51;
	font: 600 14px/14px Montserrat, Poppins, Arial, sans-serif;
	text-align: center;
}

.ts-callback-modal__lead {
	max-width: 410px;
	margin: 0 auto 14.4px;
	color: #333;
	font: 400 16px/24px "Marmelad", Poppins, Arial, sans-serif;
	text-align: center;
}

.ts-callback-modal__form form {
	display: grid;
	gap: 16px;
	width: 100%;
}

.ts-callback-modal__form .hidden-fields-container {
	display: none !important;
}

.ts-callback-modal__form label {
	display: block;
	margin: 0;
	color: #383f48;
	font: 600 16px/16px "Marmelad", Poppins, Arial, sans-serif;
}

.ts-callback-modal__form input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]),
.ts-callback-modal__form textarea {
	display: block;
	width: 100%;
	margin-top: 0;
	padding: 7px 20px;
	border: 1px solid #89919b;
	border-radius: 10px;
	background: #fff;
	color: #383f48;
	font: 600 18px/25.2px "Marmelad", Poppins, Arial, sans-serif;
}

.ts-callback-modal__form textarea {
	min-height: 80px;
}

.ts-callback-modal__form p { margin: 0; }

.ts-callback-modal__form .wpcf7-acceptance label {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
}

.ts-callback-modal__form input[type="checkbox"] {
	width: 13px;
	height: 13px;
	margin: 0;
	flex: 0 0 13px;
}

.ts-callback-modal__form input[type="submit"] {
	justify-self: end;
	min-width: 173px;
	padding: 19px 40px;
	border: 0;
	background: #2a2957;
	color: #fff;
	font: 600 14px/14px Montserrat, Poppins, Arial, sans-serif;
	text-transform: uppercase;
	cursor: pointer;
}

.ts-callback-modal__form input[type="submit"]:hover,
.ts-callback-modal__form input[type="submit"]:focus-visible {
	background: var(--ts-button-hover, #3c3a80);
}

@media (max-width: 767px) {
	.ts-callback-modal {
		padding: 12px;
	}

	.ts-callback-modal__dialog {
		width: min(515px, 100%);
		padding: 50px 20px 34px;
	}

	.ts-callback-modal__close {
		top: 16px;
		right: 16px;
	}

	.ts-callback-modal__dialog h2 {
		font-size: 14px;
	}

	.ts-callback-modal__lead {
		margin: 0 auto 14.4px;
		font-size: 16px;
	}

	.ts-callback-modal__form label {
		font-size: 16px;
	}

	.ts-callback-modal__form input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]),
	.ts-callback-modal__form textarea {
		padding: 7px 20px;
		border-radius: 10px;
		font-size: 18px;
	}

	.ts-callback-modal__form input[type="submit"] {
		width: 100%;
		min-width: 0;
		font-size: 16px;
	}
}
