/* Twilio SMS Login modal — site_gateway full-screen overlay + checkout_gateway prerendered hidden state */

#tsl-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

/* checkout_gateway: render off-screen so reCAPTCHA-style elements (none here, but kept symmetrical) can attach without display:none */
#tsl-overlay.tsl-modal-prerendered {
	visibility: hidden;
	position: fixed;
	left: -9999px;
	top: -9999px;
}

#tsl-modal {
	position: relative;
	background: #3A3A3A;
	color: #fff;
	width: 100%;
	max-width: 420px;
	border-radius: 8px;
	padding: 28px 24px 22px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

#tsl-modal h2 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 500;
}

#tsl-modal .tsl-intro {
	margin: 0 0 16px;
	font-size: 13px;
	color: #ccc;
	line-height: 1.5;
}

#tsl-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

#tsl-msg {
	min-height: 18px;
	margin: 0 0 10px;
	font-size: 13px;
	color: #f99;
}

#tsl-msg.tsl-msg-ok {
	color: #8e8;
}

.tsl-step {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tsl-step input[type="tel"],
.tsl-step input[type="text"],
.tsl-step input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	font-size: 16px;
	border: 1px solid #555;
	border-radius: 4px;
	background: #fff;
	color: #222;
	box-sizing: border-box;
	box-shadow: none !important;
}

.tsl-btn {
	padding: 10px 20px;
	font-size: 14px;
	border: 0;
	border-radius: 4px;
	background: #B08D57;
	color: #fff;
	cursor: pointer;
	box-shadow: none !important;
}

.tsl-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.tsl-btn-group {
	display: flex;
	gap: 8px;
}

.tsl-btn-group .tsl-btn {
	flex: 1;
	min-width: 0;
}

.tsl-resend:disabled {
	background: transparent;
	color: #999;
	border: 1px solid #555;
}

.tsl-resend:not(:disabled) {
	background: #2a8;
	color: #fff;
}

/* intl-tel-input wrapper alignment */
.tsl-step .iti {
	width: 100%;
}

.tsl-step .iti input[type="tel"] {
	width: 100%;
}

#tsl-overlay, #tsl-overlay * {
	box-shadow: none !important;
}

@media (max-width: 500px) {
	#tsl-modal {
		max-width: 100%;
		padding: 24px 18px 18px;
	}
}
