/* IBM Plex Sans Arabic – loaded from Google Fonts CDN (WOFF2, sanitizer-safe) */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;700&display=swap');


.rtl,
[dir="rtl"] {
	font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

.wawp-otp-login-form {
	margin: auto;
}

.wawp-login-branding {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 24px;
	text-align: center;
}

.wawp-login-branding .wawp-logo img {
	width: auto;
	max-height: 80px;
	transition: transform 0.3s;
}

.wawp-login-branding .wawp-icon-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.wawp-login-branding #otp-icon {
	font-size: 52px;
	line-height: 1;
	padding: 16px;
	background: #f8fafc;
	border-radius: 999px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	color: #475569;
	transition: all 0.3s ease;
}

.wawp-login-branding #otp-icon:hover {
	transform: scale(1.05);
	color: #1e293b;
}

/* Glowing Pulsing Verification Icons - Premium Style */
.wawp-login-branding .wawp-icon-wrapper.wawp-otp-theme-whatsapp #otp-icon,
.wawp-login-branding .wawp-icon-wrapper.wawp-otp-theme-sms #otp-icon,
.wawp-login-branding .wawp-icon-wrapper.wawp-otp-theme-email #otp-icon {
	width: 70px !important;
	height: 70px !important;
	font-size: 32px !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	margin: 0 auto 20px !important;
	transition: all 0.3s ease !important;
}

.wawp-login-branding b {
	color: #141b38;
}


.wawp-login-title {
	font-size: 30px;
	color: #141b38;
	line-height: 1.6;
	font-weight: bold;
	font-family: inherit;
	margin: 0;
}

.wawp-login-description {
	font-size: 16px;
	color: #434960;
	line-height: 1.6;
	margin: 0;
	text-align: center;
}

.wawp-tabs {
	margin-bottom: 16px;
}

.wawp-tab-list {
	list-style: none;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	border-radius: 10px;
	overflow: scroll;
	margin: 0;
	flex-wrap: nowrap;
	align-items: stretch;
	background-color: #f3f4f6;
	padding: 2px !important;
	min-height: 42px;
	scrollbar-width: none;
}

.wawp-tab-list .wawp-tab {
	flex: 1;
	text-align: center;
	padding: 8px;
	cursor: pointer;
	transition: color 0.3s;
	font-weight: 500;
	color: #6f7899;
	border-radius: 8px;
	font-size: 14px;
	margin: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.25;
}

.wawp-email-autocomplete-wrapper {
	position: relative;
	width: 100%;
}

.wawp-list-waiting-container {
padding: 30px 20px;
text-align: center;
background: #ffffff;
border-radius: 12px;
margin: 20px 0;
border: 1px solid #e2e8f0;
animation: wawp-fade-in 0.5s ease-out;
}

.wawp-list-waiting-icon {
position: relative;
width: 70px;
height: 70px;
margin: 0 auto 20px;
background: #25d366;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 32px;
box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.1);
}

.wawp-list-waiting-icon i {
animation: wawp-pulse-scale 2s infinite ease-in-out;
}

.wawp-list-waiting-icon::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
border: 3px solid rgba(255,255,255,0.3);
border-top-color: white;
border-radius: 50%;
animation: wawp-spin 1s linear infinite;
box-sizing: border-box;
top: 0;
left: 0;
}

.wawp-list-waiting-title {
font-weight: 700;
font-size: 18px;
color: #1a202c;
margin-bottom: 8px;
}

.wawp-list-waiting-text {
font-size: 14px;
color: #4a5568;
line-height: 1.5;
}

@keyframes wawp-fade-in {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}

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

@keyframes wawp-pulse-scale {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}

.wawp-hide-force {
display: none !important;
}

.wawp-email-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-top: none;
	border-radius: 0 0 8px 8px;
	list-style: none;
	padding: 0;
	margin: -10px 0 0 0;
	z-index: 1000;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	display: none;
	max-height: 200px;
	overflow-y: auto;
}

.wawp-email-suggestions li {
	padding: 10px 16px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
}

.wawp-email-suggestions li:hover {
	background: #f1f5f9;
}


.wawp-tab-list .wawp-tab.active {
	background-color: #fff;
	color: #141b38;
	box-shadow: 0 0 0 1px #2c405e0f, 0 1px 1px #2c405e0a, 0 2px 4px #2c405e14;
}

.wawp-tab-list .wawp-tab:hover {
	color: #141b38;
}

.wawp-tab-content .wawp-tab-pane {
	display: none;
}

.wawp-tab-content .wawp-tab-pane.active {
	display: block;
}

.wawp-form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	color: #434960;
	font-size: 12px;
	text-transform: capitalize;
}

.wawp-form-group .wawp-form-control,
.wawp-form-group input[type="text"],
.wawp-form-group input[type="email"],
.wawp-form-group input[type="password"],
.wawp-form-group input[type="url"],
.wawp-form-group input[type="tel"],
.wawp-form-group .iti input[type="tel"],
.wawp-form-group textarea {
	padding: 0 1rem !important;
	border: 1px solid #ccc !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	transition: border-color 0.3s !important;
	background-color: #fff !important;
	font-family: inherit !important;
	min-height: 48px !important;
	max-height: 48px !important;
	flex: 1 !important;
	width: 100% !important;
	margin-bottom: 10px !important;
	box-sizing: border-box !important;
}

.wawp-form-group .iti input[type="tel"] {
	padding-left: 50px !important;
}

.wawp-form-group .wawp-form-control:focus,
.wawp-form-group input:focus,
.wawp-form-group textarea:focus {
	border-color: #004444 !important;
	outline: none !important;
	box-shadow: 0 0 5px rgba(0, 68, 68, 0.2) !important;
}

.wawp-form-group .iti {
	width: 100% !important;
	height: 48px !important;
	display: block !important;
}

.iti__country-container {
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
}

.iti__selected-country {
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
}

#wawp_whatsapp {
	min-width: 100%;
}

@media (max-width: 1024px) {

	.wawp-form-group .wawp-form-control,
	.wawp-form-group input[type="text"],
	.wawp-form-group input[type="email"],
	.wawp-form-group input[type="password"],
	.wawp-form-group input[type="tel"],
	.wawp-form-group .iti input[type="tel"],
	.wawp-form-group textarea {
	min-height: 48px !important;
	max-height: 48px !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	padding: 0 1rem !important;
	}

	.wawp-form-group .iti input[type="tel"] {
	padding-left: 50px !important;
	}
}

.wawp-btn {
	width: 100%;
	height: 48px;
	padding: 12px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.2;
	border-radius: 8px;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	cursor: pointer;
	transition: all .2s ease-in-out;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	color: #fff;
	text-decoration: none !important;
}

.wawp-btn:hover {
	opacity: .8;
}

.wawp-btn [class*=" ri-"],
.wawp-btn [class^="ri-"] {
	font-weight: 500 !important;
	font-size: 20px;
}

#wawp-otp-login-form-whatsapp .wawp-submit-button {
	background-color: #22c55e;
	color: #ffffff;
	border: none;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.wawp-resend-otp-btn {
	/* Resend button specific styles if needed, mostly handled by inline/flex now */
	margin-top: 0;
}



/* Container for the messages */
#wawp_login_message_whatsapp,
#wawp_login_message_email,
#wawp_login_message_email_password,
#wawp_login_message_phone,
#wawp_login_message_email_merged,
.js-wawp-msg-box-email {
	margin: 16px 0;
	text-align: center;
}

/* Error & success messages */
#wawp_login_message_whatsapp .error,
#wawp_login_message_email .error,
#wawp_login_message_email_password .error,
#wawp_login_message_phone .error,
#wawp_login_message_email_merged .error,
.js-wawp-msg-box-email .error {
	color: #b91c1c;
	font-weight: 600;
	background-color: #fecaca;
	border: 1px solid rgba(185, 28, 28, 0.15);
	text-align: center;
	padding: 12px 20px;
	border-radius: 10px;
	margin: 10px 0;
	font-size: 14px;
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
}

.wawp-otp-inputs {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 16px 0 8px 0;
	direction: ltr;
}

#wawp_otp_code,
#pnp-otp-code,
#wawp-otp-input {
	direction: ltr !important;
}

.wawp-otp-inputs input {
	width: 45px !important;
	height: 55px !important;
	text-align: center !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	border: 2px solid #e2e8f0 !important;
	border-radius: 12px !important;
	background: #f8fafc !important;
	transition: all 0.2s ease !important;
	padding: 0 !important;
	margin: 0 !important;
}

.wawp-otp-inputs input:focus {
	border-color: #3b82f6 !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
	outline: none !important;
	transform: translateY(-2px);
}

.wawp-otp-inputs input.filled {
	border-color: #3b82f6 !important;
}

#wawp_login_message_whatsapp .success,
#wawp_login_message_email .success,
#wawp_login_message_email_password .success,
#wawp_login_message_phone .success,
#wawp_login_message_email_merged .success,
.js-wawp-msg-box-email .success {
	color: #15803d;
	font-weight: 600;
	background-color: #e0faec;
	padding: 12px 20px;
	border-radius: 10px;
	margin: 10px 0;
	font-size: 14px;
	border: 1px solid rgba(21, 128, 61, 0.15);
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
}

.wawp-resend-timer {
	display: inline-block;
	margin-left: 10px;
	font-size: 14px;
	color: #7f8c8d;
}

.wawp-otp-login-form .wawp-edit-button {
	cursor: pointer;
	color: #05f;
	text-decoration: none;
	transition: opacity .5s ease;
}

.wawp-otp-login-form .wawp-edit-button:hover {
	opacity: .7;
}

#signup_toggle,
#login_toggle {
	color: #05f;
}

#signup_toggle:hover,
#login_toggle:hove {
	opacity: .8;
}

.wawp-switch-form {
	font-size: 18px;
	margin-top: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .375rem;
}

.woocommerce-LostPassword.lost_password {
	font-size: 18px;
}

.entry-content.alignfull.wp-block-post-content.has-global-padding.is-layout-constrained.wp-block-post-content-is-layout-constrained p {
	font-size: 18px !important;
}

/* Separator line */
.wawp-separator {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 16px 0;
}

.wawp-separator::before,
.wawp-separator::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid #ddd;
}

.wawp-separator::before {
	margin-right: 16px;
}

.wawp-separator::after {
	margin-left: 16px;
}

.wawp-separator span {
	color: #7f8c8d;
	font-weight: 500;
	font-size: 14px;
}

.password-container {
	position: relative !important;
	width: 100% !important;
	display: block !important;
}

.password-container input {
	padding-right: 40px !important;
}

body[dir="rtl"] .password-container input,
.rtl .password-container input {
	padding-right: 16px !important;
	padding-left: 40px !important;
}

.js-wawp-password-toggle {
	position: absolute !important;
	right: 12px !important;
	top: 14px !important;
	cursor: pointer !important;
	font-size: 18px !important;
	color: #64748b !important;
	z-index: 10 !important;
	transition: color 0.2s !important;
}

.js-wawp-password-toggle:hover {
	color: #1e293b !important;
}

body[dir="rtl"] .js-wawp-password-toggle,
.rtl .js-wawp-password-toggle {
	right: auto !important;
	left: 12px !important;
}

.show-hide-icon {
	position: absolute;
	top: 50%;
	margin-inline-end: 16px;
	transform: translateY(-50%);
	cursor: pointer;
	font-size: 20px;
	color: #555;
}

.hidden {
	display: none;
}

.show-hide-icon:hover {
	color: #000;
}

.iti {
	width: 100%;
	display: flex;
}

#wawp_phone {
	flex: 1;
}



/* Responsive Design */
@media (max-width: 768px) {
	.wawp-otp-login-form {
	width: 100%;
	}

	.wawp_redirect_rule {
	flex-direction: column;
	align-items: flex-start;
	}

	.wawp_redirect_rule .rule-fields {
	flex-direction: column;
	width: 100%;
	}

	.wawp_redirect_rule .rule-fields select.wawp_redirect_role,
	.wawp_redirect_rule .rule-fields input.wawp_redirect_url {
	width: 100%;
	}

	.wawp-login-method-radio {
	flex-direction: column;
	}

	.wawp-login-method-radio .wawp-radio-label {
	width: 100%;
	}
}

/* Merged Form Specifics */
.wawp-action-buttons {
	display: flex;
	flex-direction: column !important;
	gap: 10px !important;
	margin-top: 12px;
}


.wawp-action-buttons .wawp-btn {
	width: 100% !important;
	flex: none !important;
	border: 0 !important;
	margin-bottom: 0 !important;
}

.wawp-verify-row {
	display: none;
	/* Hidden by default or by jQuery */
	flex-direction: row !important;
	gap: 12px !important;
	width: 100%;
	margin-top: 8px !important;
	align-items: center;
}

/* When shown via jQuery .show() or .css('display', 'flex') it should be flex */
.wawp-verify-row.active-flex {
	display: flex !important;
}

.wawp-verify-row .wawp-btn {
	margin: 0 !important;
	min-width: 0 !important;
	height: 48px !important;
	border-radius: 10px !important;
}

.wawp-verify-row .wawp-btn:first-child {
	flex: 6.5 !important;
}

.wawp-verify-row .wawp-btn:last-child {
	flex: 3.5 !important;
	min-height: 48px !important;
}

.wawp-hide {
	display: none !important;
}


@media (max-width: 480px) {
	.wawp-action-buttons {
	gap: 8px;
	}

	.wawp-action-buttons .wawp-btn {
	font-size: 13px;
	padding: 0 8px;
	width: 100% !important;
	flex: none !important;
	}
}

.wawp-merged-form .wawp-form-group {
	margin-bottom: 0 !important;
}

.wawp-resend-wrap .wawp-btn {
	height: auto;
	padding: 0;
	box-shadow: none;
	font-size: 14px;
}

.wawp-back-to-email-options:hover {
	text-decoration: underline;
}

#wawp-firebase-recaptcha-phone {
	display: flex;
	justify-content: center;
}

@keyframes wawp-shake-red {
	0% {
	transform: translateX(0);
	color: inherit;
	}

	15% {
	transform: translateX(-5px);
	color: #dc2626;
	}

	30% {
	transform: translateX(5px);
	color: #dc2626;
	}

	45% {
	transform: translateX(-5px);
	color: #dc2626;
	}

	60% {
	transform: translateX(5px);
	color: #dc2626;
	}

	75% {
	transform: translateX(0);
	color: #dc2626;
	}

	100% {
	transform: translateX(0);
	color: inherit;
	}
}

.wawp-timer-alert {
	animation: wawp-shake-red 0.8s cubic-bezier(.36, .07, .19, .97) both;
	font-weight: bold;
}

/* Toggle Switch Styles */
.wawp-switch {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 20px;
	margin: 0;
}

.wawp-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.wawp-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #cbd5e1;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 999px;
}

.wawp-slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 2px;
	bottom: 2px;
	background-color: white;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

input:checked+.wawp-slider {
	background-color: #3b82f6 !important;
}

input:focus+.wawp-slider {
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

input:checked+.wawp-slider:before {
	transform: translateX(16px);
}


/* RTL input:checked switch handled by default translateX(16px) since it starts left: 2px */


.wawp-remember-me {
	margin: 16px 0;
	background: #f8fafc;
	padding: 12px 16px !important;
	border-radius: 12px !important;
	border: 1px solid #e2e8f0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100%;
	box-sizing: border-box;
}

.wawp-remember-me label {
	display: flex !important;
	flex-direction: row-reverse !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	cursor: pointer;
	margin-bottom: 0 !important;
	font-weight: 500 !important;
	color: #475569 !important;
	font-size: 14px !important;
}

body[dir="rtl"] .wawp-remember-me label,
.rtl .wawp-remember-me label {
	flex-direction: row-reverse !important;
}

/* RTL Specific Overrides if logical properties fail or for safe measure */
body.rtl .wawp-switch {
	margin-right: 0;
	margin-left: 0;
}

body.rtl .wawp-remember-me {
	text-align: right !important;
}

/* Center the footer links (Sign Up / Login) in standalone pages */
.wawp-otp-login-form~p,
#wawp-signup-container~p,
.wawp-merged-form~p,
.wawp-signup-form~p {
	text-align: center !important;
	margin-top: 20px !important;
	width: 100%;
}