/**
 * Language switcher "under construction" modal.
 *
 * Styles the small Bootstrap modal opened from the top-bar EN toggle
 * (template-parts/lang-modal.php). Builds on the shared .tp-portal-modal
 * look and gives the reused single-event countdown (.tp-event-details-countdown,
 * whose tiles are white-on-translucent, built for a dark hero) a dark navy
 * panel so it stays legible inside the light modal body.
 */

.tpte-lang-modal .modal-dialog {
	max-width: 460px;
}

.tpte-lang-modal-body {
	padding: 34px 32px 40px;
}

.tpte-lang-modal-text {
	margin: 0 auto 28px;
	max-width: 340px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--tp-text-body, #55585b);
}

/* Dark panel so the white countdown tiles read against the light modal. */
.tpte-lang-modal-countdown {
	display: flex;
	justify-content: center;
	padding: 26px 20px;
	border-radius: 14px;
	background: #001340;
}

.tpte-lang-modal-countdown .tp-event-details-countdown-inner ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Neutralise the single-event spacing rules (margins + ::after colons)
   so the four tiles lay out evenly on one row from the flex gap alone. */
.tpte-lang-modal-countdown .tp-event-details-countdown-inner ul li {
	height: 78px;
	width: 72px;
	padding-top: 12px;
	margin: 0 !important;
	line-height: 1.3;
}

.tpte-lang-modal-countdown .tp-event-details-countdown-inner ul li:not(:last-of-type)::after {
	content: none;
}

.tpte-lang-modal-countdown .tp-event-details-countdown-inner ul li span {
	font-size: 26px;
	margin-bottom: 2px;
}

@media (max-width: 400px) {
	.tpte-lang-modal-countdown .tp-event-details-countdown-inner ul li {
		height: 70px;
		width: 70px;
	}

	.tpte-lang-modal-countdown .tp-event-details-countdown-inner ul li span {
		font-size: 22px;
	}
}
