.th-price-modal[hidden] {
	display: none !important;
}

.th-price-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: clamp(1rem, 3vw, 2rem);
}

.th-price-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 9, 23, 0.68);
	backdrop-filter: blur(14px);
}

.th-price-modal__dialog {
	position: relative;
	width: min(760px, 100%);
	max-height: min(86vh, 880px);
	overflow: auto;
	padding: clamp(1rem, 2.2vw, 1.4rem);
	border: 1px solid rgba(219, 231, 242, 0.8);
	border-radius: 30px;
	background:
		radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.12), transparent 34%),
		linear-gradient(180deg, #ffffff, #f8fbff);
	box-shadow: 0 36px 120px rgba(3, 9, 23, 0.42);
}

.th-price-modal__close {
	position: sticky;
	top: 0;
	float: right;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: -0.2rem -0.2rem 0.4rem 0.6rem;
	border: 1px solid #dbe7f2;
	border-radius: 999px;
	background: #ffffff;
	color: #0f172a;
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}

.th-price-modal__head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
	padding: 0.25rem 0.25rem 1rem;
}

.th-price-modal__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 17px;
	background: #eef4ff;
	font-size: 1.4rem;
}

.th-price-modal__eyebrow {
	margin: 0 0 0.3rem;
	color: #2563eb;
	font-size: 0.78rem;
	font-weight: 950;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
}

.th-price-modal h2 {
	margin: 0 0 0.35rem;
	color: #071126;
	font-size: clamp(1.65rem, 4vw, 2.35rem);
	font-weight: 950;
	line-height: 1;
	letter-spacing: -0.055em;
}

.th-price-modal__head p:not(.th-price-modal__eyebrow) {
	margin: 0;
	color: #64748b;
	font-size: 0.98rem;
	line-height: 1.6;
}

.th-price-modal__calculator,
.th-price-modal__quote-grid,
.th-price-modal__fallback {
	border: 1px solid #dfe8f4;
	border-radius: 22px;
	background: #ffffff;
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.th-price-modal__calculator {
	padding: 0.85rem;
}

.th-price-modal__fallback {
	padding: 1rem;
}

.th-price-modal__quote-grid {
	margin-top: 0.9rem;
	padding: 1rem;
}

.th-price-modal__quote-grid strong {
	display: block;
	margin-bottom: 0.75rem;
	color: #0f172a;
}

.th-price-modal__quote-grid ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.th-price-modal__quote-grid li {
	position: relative;
	padding: 0.62rem 0.75rem 0.62rem 2rem;
	border-radius: 14px;
	background: #f8fafc;
	color: #334155;
	font-size: 0.88rem;
	font-weight: 800;
	line-height: 1.3;
}

.th-price-modal__quote-grid li::before {
	content: "✓";
	position: absolute;
	left: 0.65rem;
	top: 0.63rem;
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #dcfce7;
	color: #16a34a;
	font-size: 0.75rem;
	font-weight: 950;
}

.th-price-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	align-items: center;
	margin-top: 1rem;
}

.th-price-modal__text-link {
	color: #2563eb;
	font-size: 0.92rem;
	font-weight: 900;
	text-decoration: none;
}

body.th-price-modal-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.th-price-modal {
		align-items: end;
		padding: 0;
	}

	.th-price-modal__dialog {
		width: 100%;
		max-height: 88vh;
		border-radius: 28px 28px 0 0;
		padding: 1rem;
	}

	.th-price-modal__head {
		grid-template-columns: 1fr;
		gap: 0.65rem;
	}

	.th-price-modal__icon {
		width: 42px;
		height: 42px;
		font-size: 1.1rem;
	}

	.th-price-modal__quote-grid ul {
		grid-template-columns: 1fr;
	}

	.th-price-modal__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.th-price-modal__actions .btn,
	.th-price-modal__text-link {
		justify-content: center;
		text-align: center;
	}
}
