/**
 * TCONS first-visit language modal.
 * Shown only when neither browser language nor geo-IP produced a confident
 * match — see assets/js/tcons-language-detect.js.
 */

.tcons-lang-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.55);
}

.tcons-lang-modal {
	width: 100%;
	max-width: 380px;
	padding: 28px 24px 20px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	text-align: center;
}

.tcons-lang-modal h2 {
	margin: 0 0 6px;
	font-size: 1.25em;
	line-height: 1.3;
	color: #222;
}

.tcons-lang-modal-list {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.tcons-lang-modal-list li {
	margin: 8px 0;
}

.tcons-lang-modal-list button {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	padding: 11px 16px;
	border: 1px solid #ddd;
	border-radius: 7px;
	background: #fafafa;
	color: #222;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.tcons-lang-modal-list button:hover,
.tcons-lang-modal-list button:focus {
	background: #f0f0f0;
	border-color: #bbb;
}

.tcons-lang-modal-list button img {
	flex: 0 0 auto;
	width: 18px;
	height: auto;
}
