/**
 * OrderShield Frontend — Checkout styles
 * Popup modal for OTP verification and error notices.
 * Hind Siliguri font loaded separately via wp_enqueue_style.
 */

/* ============================================================
   Shared modal overlay + box
   ============================================================ */
.os-co-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.os-co-box {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.06);
	max-width: 420px;
	width: 100%;
	padding: 2rem 1.75rem 1.75rem;
	text-align: center;
	animation: os-popup-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	font-family: 'Hind Siliguri', -apple-system, sans-serif;
}

@keyframes os-popup-in {
	from { opacity: 0; transform: scale(0.93) translateY(-12px); }
	to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ============================================================
   Icon badge
   ============================================================ */
.os-co-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	margin: 0 auto 1.25rem;
	transition: background 0.2s, color 0.2s;
}

.os-co-icon--info    { background: #ede9fe; color: #7c3aed; }
.os-co-icon--success { background: #dcfce7; color: #16a34a; }
.os-co-icon--error   { background: #fee2e2; color: #dc2626; }
.os-co-icon--warning { background: #fef3c7; color: #d97706; }

/* ============================================================
   Typography
   ============================================================ */
.os-co-title {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #0f172a;
	font-family: 'Hind Siliguri', sans-serif;
}

.os-co-body {
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
	color: #475569;
	line-height: 1.65;
	font-family: 'Hind Siliguri', sans-serif;
}

/* ============================================================
   Primary / ghost buttons
   ============================================================ */
.os-co-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 2.625rem;
	padding: 0 1.5rem;
	background: #6366f1;
	color: #fff;
	border: none;
	border-radius: 9px;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	font-family: 'Hind Siliguri', sans-serif;
	transition: background 0.15s, opacity 0.15s;
	white-space: nowrap;
}

.os-co-btn:hover:not(:disabled) { background: #4f46e5; }
.os-co-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.os-co-btn--ghost {
	background: transparent;
	color: #6366f1;
	border: 1.5px solid #6366f1;
}

.os-co-btn--ghost:hover:not(:disabled) { background: #eef2ff; }
.os-co-btn--ghost:disabled { opacity: 0.55; cursor: not-allowed; }

/* ============================================================
   OTP popup specifics
   ============================================================ */
.os-otp-popup-phone {
	margin-bottom: 1.25rem;
	font-size: 0.9rem;
	color: #64748b;
}

.os-otp-popup-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 1rem;
	margin-bottom: 0.625rem;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	font-size: 1.375rem;
	font-weight: 600;
	text-align: center;
	letter-spacing: 0.25em;
	outline: none;
	font-family: 'Hind Siliguri', sans-serif;
	transition: border-color 0.15s, box-shadow 0.15s;
	color: #0f172a;
}

.os-otp-popup-input:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.os-otp-popup-msg {
	min-height: 1.4rem;
	margin: 0 0 1.125rem;
	font-size: 0.875rem;
	font-weight: 500;
	font-family: 'Hind Siliguri', sans-serif;
	color: transparent;
}

.os-otp-popup-msg--info    { color: #6366f1; }
.os-otp-popup-msg--success { color: #16a34a; }
.os-otp-popup-msg--error   { color: #dc2626; }

.os-otp-popup-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.os-otp-popup-cancel {
	display: inline-block;
	background: none;
	border: none;
	color: #94a3b8;
	font-size: 0.8125rem;
	font-family: 'Hind Siliguri', sans-serif;
	cursor: pointer;
	padding: 0;
	transition: color 0.15s;
}

.os-otp-popup-cancel:hover { color: #64748b; }
