.cf7-otp-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.cf7-otp-badge {
	font-size: 0.85em;
	font-weight: 600;
}
.cf7-otp-badge.is-ok { color: #2a7d2a; }
.cf7-otp-badge.is-error { color: #c0392b; }

/* ---------------- Modal shell ---------------- */
.cf7-otp-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 30, 50, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 16px;
}
.cf7-otp-modal-overlay.is-open {
	display: flex;
}
.cf7-otp-modal {
	background: #fff;
	border-radius: 16px;
	max-width: 380px;
	width: 100%;
	padding: 36px 28px 28px;
	position: relative;
	box-shadow: 0 20px 60px rgba(20, 30, 50, 0.3);
	font-family: inherit;
	text-align: center;
}
.cf7-otp-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #98a2b3;
}
.cf7-otp-modal-close:hover { color: #667085; }

/* ---------------- Ring icon ---------------- */
.cf7-otp-icon {
	width: 84px;
	height: 84px;
	margin: 0 auto 18px;
}
.cf7-otp-icon-ring-outer {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: var(--cf7-otp-light, #eaf0ff);
	display: flex;
	align-items: center;
	justify-content: center;
}
.cf7-otp-icon-ring-inner {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 5px solid var(--cf7-otp-primary, #3f6df5);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.78em;
	letter-spacing: 0.5px;
	color: var(--cf7-otp-primary, #3f6df5);
}
.cf7-otp-icon.is-spinning .cf7-otp-icon-ring-inner {
	border-color: var(--cf7-otp-primary, #3f6df5) var(--cf7-otp-light, #dbe6ff) var(--cf7-otp-light, #dbe6ff) var(--cf7-otp-light, #dbe6ff);
	animation: cf7-otp-rotate 0.8s linear infinite;
}

/* ---------------- Text ---------------- */
.cf7-otp-title {
	margin: 0 0 6px;
	font-size: 1.25em;
	font-weight: 700;
	color: var(--cf7-otp-text, #1a1f36);
}
.cf7-otp-sub {
	margin: 0 0 20px;
	font-size: 0.92em;
	color: #667085;
	line-height: 1.4;
}
.cf7-otp-status {
	min-height: 1.2em;
	font-size: 0.85em;
	margin: 10px 0 0;
	color: #2a7d2a;
}
.cf7-otp-status.is-error { color: #c0392b; }
.cf7-otp-status.is-ok { color: #2a7d2a; }

/* ---------------- Buttons ---------------- */
.cf7-otp-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 4px;
}
.cf7-otp-primary-btn {
	width: 100%;
	box-sizing: border-box;
	background: var(--cf7-otp-primary, #3f6df5);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 13px 16px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
}
.cf7-otp-primary-btn:hover { filter: brightness(0.9); }
.cf7-otp-primary-btn:disabled { opacity: 0.75; cursor: default; }

.cf7-otp-link {
	display: inline-block;
	margin-top: 14px;
	font-size: 0.85em;
	color: var(--cf7-otp-primary, #3f6df5);
	text-decoration: underline;
	cursor: pointer;
}

/* ---------------- Spinner ---------------- */
.cf7-otp-spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2.5px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	animation: cf7-otp-rotate 0.7s linear infinite;
	display: inline-block;
}
@keyframes cf7-otp-rotate {
	to { transform: rotate(360deg); }
}

/* ---------------- OTP boxes ---------------- */
.cf7-otp-boxes {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 4px 0 8px;
}
.cf7-otp-box {
	width: 44px;
	height: 52px;
	text-align: center;
	font-size: 1.3em;
	font-weight: 600;
	border: 2px solid #d0d9ef;
	border-radius: 10px;
	color: var(--cf7-otp-text, #1a1f36);
	box-sizing: border-box;
}
.cf7-otp-box:focus {
	outline: none;
	border-color: var(--cf7-otp-primary, #3f6df5);
	box-shadow: 0 0 0 3px var(--cf7-otp-light, #eaf0ff);
}
.cf7-otp-resend-row {
	font-size: 0.85em;
	color: #667085;
	margin: 4px 0 18px;
}
.cf7-otp-resend-row .cf7-otp-link {
	margin-top: 0;
}

/* ---------------- Country selector ---------------- */
.cf7-otp-tel-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	width: 100%;
}
.cf7-otp-country-btn {
	display: flex;
	align-items: center;
	gap: 4px;
	border: 1px solid #ccc;
	border-right: none;
	background: #f7f7f7;
	border-radius: 4px 0 0 4px;
	padding: 0 8px;
	height: 100%;
	cursor: pointer;
	font-size: 0.95em;
	white-space: nowrap;
}
.cf7-otp-country-btn:disabled {
	opacity: 0.6;
	cursor: default;
}
.cf7-otp-caret {
	font-size: 0.7em;
	color: #666;
}
.cf7-otp-tel-wrap input[type="tel"] {
	border-radius: 0 4px 4px 0 !important;
	flex: 1;
}
.cf7-otp-country-panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1000;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.15);
	width: 260px;
	max-height: 280px;
	overflow: hidden;
	margin-top: 4px;
	text-align: left;
}
.cf7-otp-country-panel.is-open {
	display: block;
}
.cf7-otp-country-search {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: none;
	border-bottom: 1px solid #eee;
	outline: none;
}
.cf7-otp-country-list {
	max-height: 230px;
	overflow-y: auto;
}
.cf7-otp-country-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 0.9em;
}
.cf7-otp-country-row:hover {
	background: #f0f6ff;
}
.cf7-otp-country-name {
	flex: 1;
}
.cf7-otp-country-dial {
	color: #666;
}
