/* WooCommerce OTP Login (MSG91) — front-end styles */

.wol-otp-wrapper {
	max-width: 420px;
	margin: 0 0 24px;
	padding: 20px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background: #fafafa;
	box-sizing: border-box;
	font-size: 14px;
}

.wol-otp-wrapper * {
	box-sizing: border-box;
}

.wol-context-checkout {
	background: #fff8ec;
	border-color: #f0dfb8;
	max-width: 100%;
}

.wol-context-popup {
	border: none;
	background: transparent;
	padding: 0;
	max-width: 100%;
}

.wol-heading {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 600;
}

.wol-subtext {
	margin: 0 0 16px;
	color: #666;
}

.wol-field {
	margin-bottom: 14px;
}

.wol-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.wol-mobile-input-row {
	display: flex;
	align-items: stretch;
}

.wol-country-code {
	display: flex;
	align-items: center;
	padding: 0 10px;
	border: 1px solid #ccc;
	border-right: none;
	border-radius: 4px 0 0 4px;
	background: #eee;
	font-weight: 600;
	white-space: nowrap;
}

.wol-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	letter-spacing: 1px;
}

.wol-mobile-input-row .wol-input {
	border-radius: 0 4px 4px 0;
}

.wol-btn {
	cursor: pointer;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 18px;
	transition: opacity 0.15s ease-in-out;
}

.wol-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.wol-btn-primary {
	width: 100%;
	background: #7f54b3;
	color: #fff;
}

.wol-btn-primary:hover:not(:disabled) {
	opacity: 0.9;
}

.wol-btn-link {
	background: none;
	color: #7f54b3;
	padding: 6px 0;
	font-size: 13px;
	text-decoration: underline;
}

.wol-btn-link:disabled {
	color: #999;
	text-decoration: none;
}

.wol-resend-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.wol-sent-to {
	font-size: 12px;
	color: #666;
	width: 100%;
}

.wol-timer {
	margin-left: 4px;
	font-weight: 400;
	color: #999;
}

.wol-alert {
	padding: 10px 12px;
	border-radius: 4px;
	margin-bottom: 14px;
	font-size: 13px;
}

.wol-alert-error {
	background: #fdecea;
	color: #a30000;
	border: 1px solid #f5c2c0;
}

.wol-alert-success {
	background: #eafaf0;
	color: #16643f;
	border: 1px solid #b7e6c9;
}

.wol-open-popup {
	/*background: #7f54b3;*/
	color: #fff;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}

/* Modal */
.wol-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 16px;
}

.wol-modal-box {
	position: relative;
	background: #fff;
	border-radius: 10px;
	padding: 28px 24px;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.wol-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.wol-modal-close:hover {
	color: #000;
}

@media (max-width: 480px) {
	.wol-modal-box {
		padding: 22px 16px;
	}
}