/* WooCommerce Registration OTP Verification — popup styles.
   Accent color defaults to #2ec4d6 (teal) — change the variable below
   to match a different site's branding if reused elsewhere. */

:root {
	--wcotp-accent: #2ec4d6;
	--wcotp-accent-hover: #25a9ba;
}

.wcotp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 32, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
}

.wcotp-modal {
	background: #fff;
	max-width: 380px;
	width: 100%;
	border-radius: 10px;
	padding: 32px 28px;
	position: relative;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	font-family: inherit;
	text-align: center;
}

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

.wcotp-close:hover {
	color: #333;
}

.wcotp-title {
	margin: 0 0 8px;
	font-size: 20px;
	color: #1a1a1a;
}

.wcotp-subtitle {
	margin: 0 0 20px;
	font-size: 14px;
	color: #555;
	line-height: 1.5;
}

.wcotp-input {
	width: 100%;
	font-size: 24px;
	letter-spacing: 10px;
	text-align: center;
	padding: 12px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	margin-bottom: 12px;
	box-sizing: border-box;
}

.wcotp-input:focus {
	outline: none;
	border-color: var(--wcotp-accent);
	box-shadow: 0 0 0 3px rgba(46, 196, 214, 0.2);
}

.wcotp-input:disabled {
	background: #f3f3f3;
	color: #999;
}

.wcotp-message {
	min-height: 18px;
	font-size: 13px;
	margin: 0 0 12px;
}

.wcotp-message.wcotp-error {
	color: #c0392b;
}

.wcotp-message.wcotp-success {
	color: #1a8f4d;
}

.wcotp-verify-btn {
	width: 100%;
	background: var(--wcotp-accent);
	color: #fff;
	border: none;
	padding: 12px;
	font-size: 15px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.2s;
}

.wcotp-verify-btn:hover:not(:disabled) {
	background: var(--wcotp-accent-hover);
}

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

.wcotp-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
	font-size: 13px;
	color: #666;
}

.wcotp-resend-btn {
	background: none;
	border: none;
	color: var(--wcotp-accent);
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	padding: 4px;
}

.wcotp-resend-btn:disabled {
	color: #aaa;
	cursor: not-allowed;
}

.wcotp-field-error {
	color: #c0392b;
	font-size: 13px;
	margin: 4px 0 0;
}

button.wcotp-loading {
	opacity: 0.7;
	cursor: progress;
}

body.wcotp-no-scroll {
	overflow: hidden;
}

.wcotp-spinner {
	width: 46px;
	height: 46px;
	margin: 8px auto 20px;
	border: 4px solid #e6e6e6;
	border-top-color: var(--wcotp-accent);
	border-radius: 50%;
	animation: wcotp-spin 0.8s linear infinite;
}

.wcotp-loading-text {
	margin: 0;
	font-size: 14px;
	color: #555;
}

@keyframes wcotp-spin {
	to { transform: rotate(360deg); }
}
