/* ========== پایه ========== */
.wsa-auth {
    max-width: 420px;
    margin: 30px auto;
    background: linear-gradient(135deg, #d6f4f9 0%, #7abcd9 100%);
	background: linear-gradient(135deg, #ffffff 0%, #c9c9c9 100%);
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 10px rgb(74 144 226 / 30%);
	box-shadow: 0 8px 10px rgb(151 151 151 / 30%);
    font-family: inherit;
    direction: rtl;
    text-align: right;
    border: 1px solid rgba(74,144,226,0.1);
	border: 1px solid rgb(131 131 131 / 10%);
}
.wsa-auth label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #222;
    font-size: 15px;
}
.wsa-auth input[type="text"],
.wsa-auth input[type="password"],
.wsa-auth input[type="tel"] {
    width: 100%;
    padding: 12px 24px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
	letter-spacing: .1em;
	background: #fff;
}

.wsa-auth input:focus {
    border-color: #727272;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
	box-shadow: 0 0 0 3px rgb(96 96 96 / 15%);
}

#wsa-otp-boxes > input {
    text-align: center;
}

input#wsa_username {
    direction: ltr;
}

#wsa-woo-login-wrapper {
    margin: 0 10px;
}
/* ========== ورودی شماره موبایل با پیشوند ثابت ========== */
.wsa-phone-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #fff;
    transition: border-color 0.3s;
}
.wsa-phone-input:focus-within {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
}
.wsa-prefix {
    background: #f5f5f5;
    padding: 12px 14px;
    font-size: 16px;
    color: #333;
    border-left: 1px solid #ddd;
    white-space: nowrap;
    user-select: none;
}
.wsa-phone-field {
    flex: 1;
    border: none !important;
    outline: none;
    padding: 12px 14px;
    font-size: 16px;
    text-align: left;
    direction: ltr;
    border-radius: 0;
    margin: 0 !important;
    background: transparent;
}

/* ========== دکمه‌های اصلی ========== */
#wsa-auth-wrapper .wsa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
    position: relative;
    gap: 8px;
}
#wsa-auth-wrapper .wsa-btn-primary {
    background: #4a90e2;
	background: rgb(243 37 98);
    color: #fff;
}
#wsa-auth-wrapper .wsa-btn-primary:hover {
    background: #357abd;
	background: rgb(208 12 70);
}
#wsa-auth-wrapper .wsa-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
#wsa-auth-wrapper .wsa-btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wsa-spin 0.7s linear infinite;
}
#wsa-auth-wrapper .wsa-btn.loading #wsa-auth-wrapper .wsa-btn-text { visibility: hidden; }
#wsa-auth-wrapper .wsa-btn.loading #wsa-auth-wrapper .wsa-btn-loader { display: block; position: absolute; }

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

.wsa-link-btn {
    background: none;
    border: none;
    color: #4a90e2;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}
.wsa-link-btn:disabled,
.wsa-link-btn[disabled] {
    color: #aaa;
    text-decoration: none;
    cursor: not-allowed;
    pointer-events: none; /* از هرگونه hover جلوگیری می‌کند */
}

/* ========== کادرهای کد OTP ========== */
.wsa-otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    direction: ltr;
}
.wsa-otp-boxes input {
    width: 45px;
    height: 55px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}
.wsa-otp-boxes input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.2);
}

/* ========== تایمر دایره‌ای ========== */
.wsa-timer-area {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin: 16px 0;
}
.wsa-circular-timer {
    width: 40px;
    height: 40px;
}
.wsa-timer-svg {
    width: 100%;
    height: 100%;
}
.wsa-timer-bg {
    fill: none;
    stroke: #f7f7f7;
    stroke-width: 4;
}
.wsa-timer-progress {
    fill: none;
    stroke: #4a90e2;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.4s linear;
}
.wsa-timer-text {
    fill: #333;
    font-size: 11px;
    font-weight: 600;
    dominant-baseline: middle;
    text-anchor: middle;
    transform-origin: 18px 18px;
}

/* ========== پیام‌ها ========== */
.wsa-message {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    min-height: 23px;
    text-align: center;
}
.wsa-message .error { color: #d32f2f; }
.wsa-message .success { color: #388e3c; }

/* ========== تغییر حالت ========== */
.wsa-toggle-mode {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
	margin-bottom: unset;
}
.wsa-toggle-mode a {
    color: #555;
    text-decoration: underline;
    cursor: pointer;
}
.wsa-toggle-mode a:hover { color: #000; }

/* حالت ۰۹ پیش‌فرض */
.wsa-phone-box {
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 16px;
    transition: border-color 0.3s;
}
.wsa-phone-box:focus-within {
    border-color: #4a90e2;
	border-color: #727272;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
	box-shadow: 0 0 0 3px rgb(96 96 96 / 15%);
}
.wsa-phone-local {
    width: 100%;
    border: none !important;
    outline: none;
    padding: 12px 0;
    font-size: 16px;
    text-align: left;
    direction: ltr;
    margin: 0 !important;
    background: transparent;
}
/* حالت کد کشور */
.wsa-phone-intl {
    direction: ltr;
    text-align: left;
}

.wsa-phone-number {
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
}

.wsa-btn-cta {
    padding: 14px 24px;
    font-size: 17px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(74,144,226,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.wsa-btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74,144,226,0.5);
}

.wsa-resend-confirm {
    text-align: center;
    margin: 15px 0;
}
.wsa-confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}
.wsa-btn-secondary {
    background: #f0f0f0;
    color: #333;
}
.wsa-btn-secondary:hover {
    background: #e0e0e0;
}


/* مودال */
.wsa-modal {
    display: none;
    position: fixed; z-index: 9999; left:0; top:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5);
}
.wsa-modal-content {
    background: #fff; margin: 5% auto; padding: 20px; border-radius: 12px;
    width: 90%; max-width: 700px; max-height: 80vh; overflow-y: auto;
}
.wsa-modal-header { display: flex; justify-content: space-between; align-items: center; }
.wsa-modal-close { font-size: 24px; cursor: pointer; }
.wsa-form-row { margin-bottom: 15px; }
.wsa-form-row label { display: block; font-weight: bold; margin-bottom: 5px; }
.wsa-checkbox-group label { display: inline-block; margin-right: 15px; }
.wsa-variable-buttons { margin-top: 8px; }
.wsa-variable-buttons button {
    background: #f0f0f0; border: 1px solid #ccc; padding: 3px 8px; margin: 2px; cursor: pointer;
}
.wsa-modal-footer { text-align: left; margin-top: 20px; }

.wsa-report-tabs { margin: 20px 0; }
.wsa-report-tab { background: #f1f1f1; border: 1px solid #ccc; padding: 8px 16px; cursor: pointer; margin-right: 5px; }
.wsa-report-tab.active { background: #4a90e2; color: #fff; border-color: #357abd; }
.wsa-report-table-container { margin-top: 10px; }
#wsa-report-pagination { margin-top: 10px; }
#wsa-report-pagination .page-numbers { padding: 4px 10px; margin: 2px; background: #eee; border: 1px solid #ccc; cursor: pointer; }
#wsa-report-pagination .page-numbers.current { background: #4a90e2; color: #fff; }

#wsa-password-message {
    margin-bottom: 20px;
}

.wsa-checkout-mobile-info {
    background: #f7f7f7;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
    direction: rtl;
}
.wsa-checkout-mobile-info span {
    direction: ltr;
    display: inline-block;
}

.woocommerce-EditAccountForm fieldset {
    margin-top: 20px !important;
}