/* Local Cairo Font Definition for WordPress Repository Compliance */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Cairo-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Cairo-Bold.ttf') format('truetype');
}

/* Global Cairo Font for OTP elements & Admin */
.cfpro-otp-modal-content,
.cfpro-otp-modal-content *,
#cfpro-otp-modal-overlay,
#cfpro-otp-modal-overlay *,
.qwac-admin-wrap,
.qwac-admin-wrap * {
	font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

#cfpro-otp-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(8px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: opacity 0.3s ease;
}

#cfpro-otp-modal-overlay.cfpro-otp-modal-hidden {
	display: none !important;
	opacity: 0;
}

.cfpro-otp-modal-content {
	background: #ffffff;
	border-radius: 20px;
	width: 90%;
	max-width: 440px;
	padding: 35px 30px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
	position: relative;
	text-align: center;
	font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#cfpro-otp-modal-close {
	position: absolute;
	top: 16px;
	inset-inline-end: 18px;
	right: 18px;
	background: #fee2e2 !important;
	color: #ef4444 !important;
	border: 1px solid #fecaca !important;
	width: 34px !important;
	height: 34px !important;
	border-radius: 50% !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15) !important;
	padding: 0 !important;
	line-height: 1 !important;
	z-index: 10 !important;
}

#cfpro-otp-modal-close:hover {
	background: #ef4444 !important;
	color: #ffffff !important;
	border-color: #ef4444 !important;
	transform: scale(1.08) !important;
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

#cfpro-otp-modal-close svg {
	width: 15px !important;
	height: 15px !important;
	stroke: currentColor !important;
	display: block !important;
}

body.rtl #cfpro-otp-modal-close {
	right: auto !important;
	left: 18px !important;
}

.cfpro-otp-header-icon {
	margin-bottom: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.cfpro-otp-header-icon svg {
	filter: drop-shadow(0 6px 14px rgba(37, 211, 102, 0.4));
	animation: cfpro-icon-pulse 3s infinite ease-in-out;
}

@keyframes cfpro-icon-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

.cfpro-otp-badge {
	display: inline-block;
	background: #ecfdf5;
	color: #059669;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 4px 12px;
	border-radius: 20px;
	border: 1px solid #a7f3d0;
	margin-bottom: 10px;
}

.cfpro-otp-step h3.cfpro-otp-title,
.cfpro-otp-step h3 {
	margin: 0 0 10px 0;
	font-size: 24px;
	font-weight: 900;
	color: #0f172a;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.cfpro-otp-step p {
	color: #64748b;
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 20px 0;
}

.cfpro-otp-phone-input-row {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	position: relative;
	direction: ltr !important;
}

.cfpro-otp-country-select-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #f8fafc;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	padding: 0 14px;
	font-weight: 700;
	font-size: 14px;
	color: #1e293b;
	flex-shrink: 0;
	min-width: 115px;
	cursor: pointer;
	white-space: nowrap;
	box-sizing: border-box;
	direction: ltr !important;
	position: relative;
}

#cfpro-otp-dial-display {
	direction: ltr !important;
	unicode-bidi: isolate;
}

#cfpro-otp-phone-input {
	flex: 1;
	min-width: 0;
	direction: ltr !important;
	text-align: left !important;
}

#cfpro-otp-country-list {
	direction: ltr !important;
	text-align: left !important;
}

#cfpro-otp-phone-input,
#cfpro-otp-code-input,
.cfpro-otp-form-grid input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	font-size: 15px;
	outline: none;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

#cfpro-otp-phone-input:focus,
#cfpro-otp-code-input:focus,
.cfpro-otp-form-grid input:focus {
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

#cfpro-otp-code-input {
	margin-bottom: 20px !important;
	letter-spacing: 8px;
	text-align: center;
	font-weight: 800;
	font-size: 22px;
	color: #0f172a;
}

.cfpro-otp-primary-btn {
	width: 100%;
	background: #10b981;
	color: #ffffff;
	border: none;
	padding: 14px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.cfpro-otp-primary-btn:hover {
	background: #059669;
}

.cfpro-otp-error-banner {
	margin-top: 15px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fee2e2;
	color: #991b1b;
	font-size: 13px;
	font-weight: 600;
	display: none;
}

.cfpro-otp-timer-row {
	margin-top: 15px;
	font-size: 13px;
	color: #64748b;
}

.cfpro-otp-form-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cfpro-otp-password-wrap {
	position: relative;
	width: 100%;
}

.cfpro-otp-password-wrap input {
	width: 100%;
	padding-right: 44px !important;
}

.cfpro-otp-toggle-pass {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	transition: color 0.2s ease;
}

.cfpro-otp-toggle-pass:hover {
	color: #10b981;
}

.cfpro-otp-country-item:hover {
	background: #f1f5f9 !important;
	color: #10b981 !important;
}