.fara-auth-pro {
    --fap-primary: #0f766e;
    --fap-accent: #22c55e;
    --fap-text: #17212b;
    --fap-muted: #6b7785;
    --fap-border: #dfe5eb;
    --fap-soft: #f5f7f9;
    --fap-danger: #b42318;
    --fap-danger-bg: #fff3f2;
    --fap-success: #067647;
    --fap-success-bg: #ecfdf3;
    width: min(100%, 440px);
    margin: 24px auto;
    color: var(--fap-text);
    direction: rtl;
    font-family: inherit;
    line-height: 1.55;
}

.fara-auth-pro,
.fara-auth-pro * {
    box-sizing: border-box;
}

.fara-auth-pro [hidden] {
    display: none !important;
}

.fara-auth-pro button,
.fara-auth-pro input {
    font: inherit;
}

.fap-card {
    overflow: hidden;
    border: 1px solid var(--fap-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(23, 33, 43, .09);
}

.fap-card__body {
    padding: 30px;
}

.fap-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    margin-bottom: 26px;
}

.fap-brand strong {
    overflow: hidden;
    max-width: 280px;
    color: var(--fap-text);
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fap-brand-logo {
    display: block;
    width: auto;
    max-width: 170px;
    height: 42px;
    object-fit: contain;
}

.fap-brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--fap-border);
    border-radius: 12px;
    color: var(--fap-primary);
    background: var(--fap-soft);
}

.fap-brand-mark svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fap-panel,
.fap-step {
    width: 100%;
}

.fap-heading {
    margin: 0 0 20px;
    text-align: right;
}

.fap-heading h1,
.fap-account h2 {
    margin: 0;
    color: var(--fap-text);
    font-size: 22px;
    font-weight: 850;
    line-height: 1.4;
    letter-spacing: -.02em;
}

.fap-heading--with-description {
    margin-bottom: 18px;
}

.fap-heading p {
    margin: 7px 0 0;
    color: var(--fap-muted);
    font-size: 12px;
    line-height: 1.75;
}

.fap-reset-success {
    display: grid;
    justify-items: center;
    gap: 9px;
    margin: 0;
    padding: 22px 18px;
    border: 1px solid #abefc6;
    border-radius: 14px;
    outline: 0;
    color: var(--fap-text);
    background: var(--fap-success-bg);
    text-align: center;
}

.fap-reset-success[hidden] {
    display: none !important;
}

.fap-reset-success__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--fap-success);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(3, 152, 85, .08);
}

.fap-reset-success__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fap-reset-success h2 {
    margin: 2px 0 0;
    color: var(--fap-text);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.5;
}

.fap-reset-success p {
    max-width: 35em;
    margin: 0;
    color: var(--fap-muted);
    font-size: 12px;
    line-height: 1.8;
}

.fap-field {
    display: grid;
    gap: 7px;
    margin: 0 0 15px;
}

.fap-field__label {
    color: #3f4b57;
    font-size: 12px;
    font-weight: 750;
}

.fap-input-wrap {
    display: flex;
    align-items: center;
    min-height: 50px;
    overflow: hidden;
    border: 1px solid var(--fap-border);
    border-radius: 12px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.fap-input-wrap:focus-within {
    border-color: var(--fap-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .11);
}

.fap-input-wrap input,
.fap-field > input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0 !important;
    padding: 11px 13px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    color: var(--fap-text) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px;
}

.fap-field > input {
    border: 1px solid var(--fap-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
}

.fap-field > input:focus {
    border-color: var(--fap-primary) !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .11) !important;
}

/* Password controls are intentionally more compact than the primary identifier field. */
.fap-input-wrap.fap-password {
    min-height: 44px;
    border-radius: 10px;
}

.fap-input-wrap.fap-password input {
    min-height: 42px;
    padding-block: 8px !important;
}

.fap-password-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin: 2px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #7b8793;
    background: transparent;
    cursor: pointer;
}

.fap-password-toggle:hover,
.fap-password-toggle.is-visible {
    color: var(--fap-primary);
    background: var(--fap-soft);
}

.fap-password-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fap-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid var(--fap-primary);
    border-radius: 12px;
    color: #fff !important;
    background: var(--fap-primary);
    box-shadow: none;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.fap-submit:hover:not(:disabled) {
    color: #fff !important;
    opacity: .93;
    transform: translateY(-1px);
}

.fap-submit:disabled {
    opacity: .58;
    cursor: wait;
}

.fap-submit--secondary {
    color: var(--fap-primary) !important;
    border-color: var(--fap-border);
    background: #fff;
}

.fap-submit--secondary:hover:not(:disabled) {
    color: var(--fap-primary) !important;
    background: var(--fap-soft);
}

.fap-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 16px;
}

.fap-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--fap-muted);
    font-size: 12px;
    cursor: pointer;
}

.fap-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--fap-primary);
}

.fap-check--block {
    margin: 0 0 15px;
}

.fap-link,
.fap-resend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--fap-primary) !important;
    background: transparent;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none !important;
    cursor: pointer;
}

.fap-link:hover,
.fap-resend:hover:not(:disabled) {
    text-decoration: underline !important;
}

.fap-link--center {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 16px auto 0;
}

.fap-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 45px;
    margin: -6px 0 18px;
    padding: 9px 12px;
    border: 1px solid var(--fap-border);
    border-radius: 11px;
    color: var(--fap-text);
    background: var(--fap-soft);
    cursor: pointer;
}

.fap-identity span {
    overflow: hidden;
    direction: ltr;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fap-identity small {
    flex: 0 0 auto;
    color: var(--fap-primary);
    font-size: 11px;
    font-weight: 750;
}

.fap-field--otp .fap-otp-input {
    direction: ltr;
    min-height: 56px;
    padding: 10px 14px !important;
    border: 1px solid var(--fap-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: .38em;
    text-align: center;
}

.fap-field--otp .fap-otp-input:focus {
    border-color: var(--fap-primary) !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .11) !important;
}

.fap-otp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 70px;
    color: var(--fap-muted);
    font-size: 13px;
}

.fap-otp-loading span {
    width: 18px;
    height: 18px;
    border: 2px solid var(--fap-border);
    border-top-color: var(--fap-primary);
    border-radius: 50%;
    animation: fap-spin .7s linear infinite;
}

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

.fap-resend {
    width: auto;
    min-height: 28px;
}

.fap-resend:disabled {
    color: var(--fap-muted) !important;
    cursor: default;
    text-decoration: none !important;
}

[data-fap-smart-otp-request] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 13px;
}

.fap-countdown {
    color: var(--fap-muted);
    font-size: 11px;
}

.fap-password-meter {
    display: grid;
    gap: 6px;
    margin: -5px 0 15px;
}

.fap-password-meter > span {
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0f3;
}

.fap-password-meter i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #d92d20;
    transition: width .2s ease, background .2s ease;
}

.fap-password-meter[data-score="1"] i { width: 25%; }
.fap-password-meter[data-score="2"] i { width: 50%; background: #f79009; }
.fap-password-meter[data-score="3"] i { width: 75%; background: #17b26a; }
.fap-password-meter[data-score="4"] i { width: 100%; background: var(--fap-success); }

.fap-password-meter small,
.fap-field-message {
    color: var(--fap-muted);
    font-size: 10px;
}

.fap-field-message.is-valid { color: var(--fap-success); }
.fap-field-message.is-invalid { color: var(--fap-danger); }

.fap-notice,
.fap-live:not(:empty) {
    width: 100%;
    margin: 0 0 17px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.65;
}

.fap-notice--error {
    color: var(--fap-danger);
    border-color: #fecdca;
    background: var(--fap-danger-bg);
}

.fap-notice--success {
    color: var(--fap-success);
    border-color: #abefc6;
    background: var(--fap-success-bg);
}

.fap-live:empty {
    display: none;
}

.fap-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.fap-account {
    padding: 28px;
    border: 1px solid var(--fap-border);
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 16px 45px rgba(23, 33, 43, .08);
}

.fap-account p {
    margin: 8px 0 20px;
    color: var(--fap-muted);
    font-size: 13px;
}

.fap-account__actions {
    display: grid;
    gap: 10px;
}

.fap-mobile-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.fap-mobile-brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
    background: var(--fap-primary);
}

.fap-modal[hidden] {
    display: none !important;
}

.fap-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 16px;
}

.fap-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 20, 28, .58);
    backdrop-filter: blur(4px);
}

.fap-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    border-radius: 20px;
}

.fap-modal__dialog .fara-auth-pro {
    margin: 0;
}

.fap-modal__close {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #5f6b76;
    background: #f3f5f7;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

html.fap-modal-open {
    overflow: hidden;
}

.fara-auth-pro-woo-profile,
.fara-auth-pro-woo-security {
    display: grid;
    gap: 8px;
}

@media (max-width: 520px) {
    .fara-auth-pro {
        width: 100%;
        margin: 12px auto;
    }

    .fap-card {
        border-radius: 16px;
        box-shadow: 0 12px 34px rgba(23, 33, 43, .07);
    }

    .fap-card__body {
        padding: 22px 16px;
    }

    .fap-brand {
        margin-bottom: 21px;
    }

    .fap-heading h1,
    .fap-account h2 {
        font-size: 20px;
    }

    .fap-options {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fara-auth-pro *,
    .fara-auth-pro *::before,
    .fara-auth-pro *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* 1.5.0: compact password fields, segmented OTP and professional resend controls. */
.fap-input-wrap.fap-password {
    min-height: 42px;
    border-radius: 10px;
}

.fap-input-wrap.fap-password input {
    min-height: 40px;
    padding: 7px 11px !important;
    font-size: 13px;
}

.fap-password-toggle {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    margin: 3px;
}

.fap-password-toggle svg {
    width: 17px;
    height: 17px;
}

.fap-field--otp {
    gap: 10px;
    margin-bottom: 18px;
}

.fap-otp-control {
    width: 100%;
}

.fap-otp-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.fap-otp-digit {
    flex: 0 1 58px;
    width: min(58px, 17vw) !important;
    min-width: 42px;
    height: 56px;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--fap-border) !important;
    border-radius: 12px !important;
    outline: 0 !important;
    color: var(--fap-text) !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
    font-size: 22px !important;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    direction: ltr;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fap-otp-digit:focus {
    border-color: var(--fap-primary) !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12) !important;
    transform: translateY(-1px);
}

.fap-otp-digit:invalid:not(:placeholder-shown) {
    border-color: var(--fap-border) !important;
}

.fap-resend-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 32px;
    margin: 14px 0 2px;
    color: var(--fap-muted);
    font-size: 12px;
}

.fap-resend-prompt {
    color: var(--fap-muted);
}

.fap-resend {
    min-height: auto;
    padding: 2px 3px;
    border-radius: 6px;
    color: var(--fap-primary) !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
}

.fap-resend:hover:not(:disabled) {
    background: var(--fap-soft);
    text-decoration: none !important;
}

.fap-countdown {
    min-width: 42px;
    color: var(--fap-primary);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    direction: ltr;
    text-align: center;
}

[data-fap-smart-otp-request] {
    display: block;
    margin-top: 2px;
}

.fap-otp-flow.is-code-sent .fap-otp-request-form {
    margin-top: 2px;
}

.fap-link--center[data-fap-step-target="mobile-otp"] {
    position: relative;
    width: 100%;
    margin-top: 18px;
    padding-top: 17px;
}

.fap-link--center[data-fap-step-target="mobile-otp"]::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: #edf0f3;
}

@media (max-width: 420px) {
    .fap-otp-boxes {
        gap: 7px;
    }

    .fap-otp-digit {
        min-width: 39px;
        height: 52px;
        min-height: 52px !important;
        border-radius: 10px !important;
        font-size: 20px !important;
    }
}


/* 1.5.1: harden compact controls against aggressive theme/WooCommerce styles. */
.fara-auth-pro .fap-input-wrap.fap-password {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    border-radius: 10px !important;
}

.fara-auth-pro .fap-input-wrap.fap-password > input,
.fara-auth-pro .fap-input-wrap.fap-password > input[type="password"],
.fara-auth-pro .fap-input-wrap.fap-password > input[type="text"] {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 6px 10px !important;
    line-height: 1.2 !important;
    font-size: 13px !important;
}

.fara-auth-pro .fap-input-wrap.fap-password .fap-password-toggle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    flex: 0 0 32px !important;
    margin: 4px !important;
    padding: 0 !important;
}

.fara-auth-pro .fap-otp-boxes {
    align-items: center !important;
}

.fara-auth-pro input.fap-otp-digit {
    display: block !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 !important;
    text-align: center !important;
    text-indent: 0 !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    line-height: 52px !important;
    vertical-align: middle !important;
    font-size: 21px !important;
    font-variant-numeric: tabular-nums !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.fara-auth-pro button.fap-resend {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 94px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 5px 12px !important;
    border: 1px solid rgba(15, 118, 110, .32) !important;
    border-radius: 9px !important;
    color: #0b625c !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

.fara-auth-pro button.fap-resend:hover:not(:disabled),
.fara-auth-pro button.fap-resend:focus-visible:not(:disabled) {
    color: #084c48 !important;
    border-color: var(--fap-primary) !important;
    background: #f0fdfa !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .10) !important;
    text-decoration: none !important;
}

.fara-auth-pro button.fap-resend:disabled {
    color: #7b8793 !important;
    border-color: #dfe5eb !important;
    background: #f5f7f9 !important;
    box-shadow: none !important;
}

@media (max-width: 420px) {
    .fara-auth-pro input.fap-otp-digit {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        line-height: 48px !important;
        font-size: 20px !important;
    }
}

/* 1.6.0: fully configurable visual system. */
.fara-auth-pro {
    --fap-primary-hover: #0b625c;
    --fap-focus: var(--fap-primary);
    --fap-card-bg: #fff;
    --fap-field-bg: #fff;
    --fap-max-width: 440px;
    --fap-card-padding: 30px;
    --fap-card-radius: 20px;
    --fap-field-radius: 12px;
    --fap-button-radius: 12px;
    --fap-focus-shadow: 0 0 0 3px rgba(15, 118, 110, .11);
    --fap-card-shadow: 0 18px 50px rgba(23, 33, 43, .09);
    --fap-button-shadow: 0 6px 18px rgba(15, 118, 110, .18);
    width: min(100%, var(--fap-max-width));
}

.fara-auth-pro .fap-card {
    border-color: var(--fap-border);
    border-radius: var(--fap-card-radius);
    background: var(--fap-card-bg);
    box-shadow: var(--fap-card-shadow);
}

.fara-auth-pro .fap-card__body {
    padding: var(--fap-card-padding);
}

.fara-auth-pro .fap-brand strong,
.fara-auth-pro .fap-heading h1,
.fara-auth-pro .fap-account h2 {
    color: var(--fap-text);
}

.fara-auth-pro .fap-brand-mark {
    border-color: var(--fap-border);
    color: var(--fap-primary);
    background: var(--fap-soft);
}

.fara-auth-pro .fap-field__label {
    color: var(--fap-text);
}

.fara-auth-pro .fap-input-wrap {
    border-color: var(--fap-border);
    border-radius: var(--fap-field-radius);
    background: var(--fap-field-bg);
}

.fara-auth-pro .fap-input-wrap:focus-within {
    border-color: var(--fap-focus);
    box-shadow: var(--fap-focus-shadow);
}

.fara-auth-pro .fap-input-wrap input,
.fara-auth-pro .fap-field > input {
    color: var(--fap-text) !important;
    background: var(--fap-field-bg) !important;
}

.fara-auth-pro .fap-field > input {
    border-color: var(--fap-border) !important;
    border-radius: var(--fap-field-radius) !important;
}

.fara-auth-pro .fap-field > input:focus,
.fara-auth-pro .fap-field--otp .fap-otp-input:focus,
.fara-auth-pro input.fap-otp-digit:focus {
    border-color: var(--fap-focus) !important;
    box-shadow: var(--fap-focus-shadow) !important;
}

.fara-auth-pro .fap-input-wrap.fap-password {
    border-radius: var(--fap-field-radius) !important;
}

.fara-auth-pro .fap-password-toggle {
    color: var(--fap-muted);
    border-radius: max(4px, calc(var(--fap-field-radius) - 3px));
}

.fara-auth-pro .fap-password-toggle:hover,
.fara-auth-pro .fap-password-toggle.is-visible {
    color: var(--fap-primary);
    background: var(--fap-soft);
}

.fara-auth-pro .fap-submit {
    border-color: var(--fap-primary);
    border-radius: var(--fap-button-radius);
    background: var(--fap-primary);
    box-shadow: var(--fap-button-shadow);
}

.fara-auth-pro .fap-submit:hover:not(:disabled) {
    border-color: var(--fap-primary-hover);
    background: var(--fap-primary-hover);
    box-shadow: var(--fap-button-shadow);
    opacity: 1;
}

.fara-auth-pro .fap-submit--secondary {
    color: var(--fap-primary) !important;
    border-color: var(--fap-border);
    background: var(--fap-card-bg);
    box-shadow: none;
}

.fara-auth-pro .fap-submit--secondary:hover:not(:disabled) {
    color: var(--fap-primary-hover) !important;
    border-color: var(--fap-primary);
    background: var(--fap-soft);
    box-shadow: none;
}

.fara-auth-pro .fap-identity {
    border-color: var(--fap-border);
    border-radius: var(--fap-field-radius);
    color: var(--fap-text);
    background: var(--fap-soft);
}

.fara-auth-pro .fap-field--otp .fap-otp-input,
.fara-auth-pro input.fap-otp-digit {
    border-color: var(--fap-border) !important;
    border-radius: var(--fap-field-radius) !important;
    color: var(--fap-text) !important;
    background: var(--fap-field-bg) !important;
}

.fara-auth-pro button.fap-resend {
    border-color: var(--fap-border) !important;
    border-radius: max(6px, calc(var(--fap-button-radius) - 2px)) !important;
    color: var(--fap-primary) !important;
    background: var(--fap-card-bg) !important;
}

.fara-auth-pro button.fap-resend:hover:not(:disabled),
.fara-auth-pro button.fap-resend:focus-visible:not(:disabled) {
    color: var(--fap-primary-hover) !important;
    border-color: var(--fap-primary) !important;
    background: var(--fap-soft) !important;
    box-shadow: var(--fap-focus-shadow) !important;
}

.fara-auth-pro button.fap-resend:disabled {
    color: var(--fap-muted) !important;
    border-color: var(--fap-border) !important;
    background: var(--fap-soft) !important;
}

.fara-auth-pro .fap-account {
    border-color: var(--fap-border);
    border-radius: var(--fap-card-radius);
    color: var(--fap-text);
    background: var(--fap-card-bg);
    box-shadow: var(--fap-card-shadow);
}

.fara-auth-pro .fap-modal__dialog {
    border-radius: var(--fap-card-radius);
}

@media (max-width: 520px) {
    .fara-auth-pro .fap-card {
        border-radius: min(var(--fap-card-radius), 18px);
        box-shadow: var(--fap-card-shadow);
    }

    .fara-auth-pro .fap-card__body {
        padding: min(var(--fap-card-padding), 22px);
    }
}

/* 1.7.0: compact header account/login shortcode. */
.fap-header-account {
    --fap-primary: #0f766e;
    --fap-primary-hover: #0b625c;
    --fap-text: #17212b;
    --fap-muted: #6b7785;
    --fap-border: #dfe5eb;
    --fap-card-bg: #fff;
    --fap-soft: #f5f7f9;
    position: relative;
    display: inline-flex;
    max-width: 100%;
    color: var(--fap-text);
    font-family: inherit;
    line-height: 1.35;
    vertical-align: middle;
}

.fap-header-account,
.fap-header-account * {
    box-sizing: border-box;
}

.fap-header-account__trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    max-width: 100%;
    margin: 0;
    padding: 5px 2px;
    border: 0;
    color: inherit !important;
    background: transparent;
    font: inherit;
    text-align: right;
    text-decoration: none !important;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

.fap-header-account__trigger::-webkit-details-marker {
    display: none;
}

.fap-header-account__trigger:focus-visible {
    border-radius: 8px;
    outline: 2px solid var(--fap-focus, var(--fap-primary));
    outline-offset: 3px;
}

.fap-header-account__icon {
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--fap-text);
}

.fap-header-account__icon svg {
    display: block;
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fap-header-account__copy {
    display: grid;
    min-width: 0;
    gap: 2px;
    white-space: nowrap;
}

.fap-header-account__copy small {
    color: var(--fap-muted);
    font-size: 11px;
    font-weight: 500;
}

.fap-header-account__copy strong {
    overflow: hidden;
    max-width: 190px;
    color: var(--fap-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fap-header-account__copy--single strong {
    max-width: 180px;
}

.fap-header-account__chevron {
    display: grid;
    flex: 0 0 18px;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-inline-start: 2px;
    color: var(--fap-muted);
    transition: transform .18s ease;
}

.fap-header-account__chevron svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fap-header-account[open] .fap-header-account__chevron {
    transform: rotate(180deg);
}

.fap-header-account__menu {
    position: absolute;
    z-index: 99999;
    top: calc(100% + 7px);
    inset-inline-start: 0;
    display: grid;
    width: 220px;
    min-width: 100%;
    overflow: hidden;
    padding: 8px 0;
    border: 1px solid var(--fap-border);
    border-radius: 6px;
    background: var(--fap-card-bg);
    box-shadow: 0 12px 30px rgba(23, 33, 43, .13);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    pointer-events: none;
}

.fap-header-account[open] .fap-header-account__menu,
.fap-header-account--user:hover .fap-header-account__menu,
.fap-header-account--user:focus-within .fap-header-account__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.fap-header-account__menu-item {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 20px;
    color: var(--fap-muted) !important;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: right;
    text-decoration: none !important;
    transition: color .15s ease, background .15s ease;
}

.fap-header-account__menu-item:hover,
.fap-header-account__menu-item:focus-visible {
    color: var(--fap-primary) !important;
    background: var(--fap-soft);
    outline: 0;
}

.fap-header-account__menu-item--logout {
    border-top: 1px solid var(--fap-border);
}

@media (max-width: 480px) {
    .fap-header-account__trigger {
        gap: 8px;
    }

    .fap-header-account__icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .fap-header-account__icon svg {
        width: 32px;
        height: 32px;
    }

    .fap-header-account__copy strong {
        max-width: 145px;
        font-size: 13px;
    }

    .fap-header-account__menu {
        width: min(220px, calc(100vw - 24px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .fap-header-account__chevron,
    .fap-header-account__menu {
        transition: none;
    }
}
