/* Fast2SMS front-end OTP widget + COD confirmation page.
   Appearance is customizable via CSS variables set inline by the plugin:
   --f2s-accent (button/link color) and --f2s-radius (corner radius). */

.f2s-otp-widget {
	--f2s-accent: #2563eb;
	--f2s-radius: 8px;
	margin: 18px 0;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: calc(var(--f2s-radius) + 4px);
	background: #fafafa;
	max-width: 420px;
	font-size: 14px;
	color: #111827;
}
.f2s-otp-divider {
	display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: #9ca3af; font-size: 12px;
}
.f2s-otp-divider::before, .f2s-otp-divider::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.f2s-otp-title { font-weight: 600; margin: 0 0 10px; }
.f2s-otp-phone-row { display: flex; align-items: stretch; margin-bottom: 10px; }
.f2s-otp-prefix {
	display: flex; align-items: center; padding: 0 12px; background: #f3f4f6;
	border: 1px solid #d1d5db; border-right: none;
	border-radius: var(--f2s-radius) 0 0 var(--f2s-radius); color: #6b7280;
}
.f2s-otp-widget input[type="tel"], .f2s-otp-widget input[type="text"] {
	flex: 1; width: 100%; border: 1px solid #d1d5db; padding: 10px 12px; font-size: 14px;
	border-radius: var(--f2s-radius); background: #fff; color: inherit;
}
.f2s-otp-phone-row input[type="tel"] { border-radius: 0 var(--f2s-radius) var(--f2s-radius) 0; }
.f2s-otp-code { margin-bottom: 10px; letter-spacing: 4px; text-align: center; }
.f2s-otp-btn {
	display: inline-block; width: 100%; border: none; cursor: pointer;
	border-radius: var(--f2s-radius);
	background: var(--f2s-accent, #2563eb); color: #fff; font-weight: 600; font-size: 14px; padding: 11px 16px;
	transition: filter .15s;
}
.f2s-otp-btn:hover { filter: brightness(.88); }
.f2s-otp-btn:disabled { opacity: .6; cursor: not-allowed; }
.f2s-otp-link {
	background: none; border: none; color: var(--f2s-accent, #2563eb); font-size: 12.5px; cursor: pointer;
	margin-top: 8px; padding: 0; text-decoration: underline;
}
.f2s-otp-link:disabled { color: #9ca3af; cursor: default; text-decoration: none; }
.f2s-otp-msg { margin: 8px 0 0; font-size: 12.5px; color: #374151; min-height: 1em; }
.f2s-otp-msg.err { color: #dc2626; }
.f2s-otp-msg.ok { color: #059669; }

/* Dark theme */
.f2s-otp-widget.f2s-otp-dark { background: #1f2937; border-color: #374151; color: #f9fafb; }
.f2s-otp-dark .f2s-otp-divider { color: #6b7280; }
.f2s-otp-dark .f2s-otp-divider::before, .f2s-otp-dark .f2s-otp-divider::after { background: #374151; }
.f2s-otp-dark .f2s-otp-prefix { background: #111827; border-color: #4b5563; color: #9ca3af; }
.f2s-otp-dark input[type="tel"], .f2s-otp-dark input[type="text"] { background: #111827; border-color: #4b5563; color: #f9fafb; }
.f2s-otp-dark .f2s-otp-msg { color: #d1d5db; }
.f2s-otp-dark .f2s-otp-msg.err { color: #f87171; }
.f2s-otp-dark .f2s-otp-msg.ok { color: #34d399; }

/* COD confirmation page */
.f2s-cod-body {
	margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
	background: #f3f4f6; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	padding: 20px; box-sizing: border-box;
}
.f2s-cod-card {
	background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(16,24,40,.08);
	padding: 32px 28px; max-width: 400px; width: 100%; text-align: center;
}
.f2s-cod-card .f2s-otp-btn { border-radius: 8px; }
.f2s-cod-brand { font-weight: 700; font-size: 15px; color: #6b7280; margin-bottom: 18px; }
.f2s-cod-card h1 { font-size: 20px; margin: 0 0 8px; color: #111827; }
.f2s-cod-sub { color: #6b7280; font-size: 13px; margin: 0 0 18px; }
.f2s-cod-check {
	width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
	background: #ecfdf5; color: #059669; font-size: 28px; line-height: 56px;
}
.f2s-cod-card .f2s-otp-code { width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; padding: 10px; border-radius: 8px; font-size: 16px; }
#f2s-cod-msg { font-size: 12.5px; color: #374151; min-height: 1em; }
.f2s-cod-foot { margin-top: 22px; font-size: 11px; color: #9ca3af; }
