/**
 * WC Mobile Auth — front-end styles (RTL).
 */
.wcma-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	font-family: Tahoma, Arial, sans-serif;
}

.wcma-modal.is-open {
	display: flex;
}

.wcma-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.wcma-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 12px;
	width: min(420px, 92vw);
	padding: 28px 24px 24px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
	direction: rtl;
	text-align: right;
}

.wcma-modal__close {
	position: absolute;
	top: 10px;
	left: 14px;
	background: none;
	border: 0;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	line-height: 1;
}

.wcma-step h2 {
	margin: 0 0 8px;
	font-size: 1.25rem;
	color: #111;
}

.wcma-step__desc {
	margin: 0 0 20px;
	color: #555;
	font-size: 0.9rem;
}

.wcma-field {
	display: block;
	margin-bottom: 16px;
}

.wcma-field span {
	display: block;
	margin-bottom: 6px;
	font-size: 0.85rem;
	color: #333;
}

.wcma-field input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 1rem;
	box-sizing: border-box;
	direction: ltr;
	text-align: left;
}

.wcma-field input:focus {
	outline: none;
	border-color: var(--wcma-primary, #2563eb);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wcma-btn {
	display: inline-block;
	width: 100%;
	padding: 12px 16px;
	border: 0;
	border-radius: 8px;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s;
}

.wcma-btn--primary {
	background: var(--wcma-primary, #2563eb);
	color: #fff;
	margin-top: 4px;
}

.wcma-btn--primary:hover:not(:disabled) {
	background: var(--wcma-primary-hover, #1d4ed8);
}

.wcma-btn--primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.wcma-btn--link {
	background: none;
	color: var(--wcma-primary, #2563eb);
	margin-top: 12px;
	font-size: 0.9rem;
}

.wcma-btn--link:disabled {
	color: #999;
	cursor: not-allowed;
}

.wcma-message {
	margin-top: 14px;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 0.875rem;
}

.wcma-message.is-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.wcma-message.is-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.wcma-myaccount-login {
	margin-bottom: 24px;
	padding: 20px;
	background: #f8fafc;
	border-radius: 8px;
	text-align: center;
}

.wcma-login-trigger {
	cursor: pointer;
}

.wcma-step[hidden] {
	display: none !important;
}

.wcma-step.is-active {
	display: block;
}
