/* تنسيقات نافذة تسجيل الدخول وإنشاء الحساب. */

@media(max-width:768px) {
    .aa-auth-sheet__title {
        margin-top:15px!important
    }
}

:root {
    --aa-auth-bg:#F4F5F8;
    --aa-auth-soft:#FCFCFD;
    --aa-auth-soft-2:#F9FAFB;
    --aa-auth-border:#D7DDE5;
    --aa-auth-title:#1B1E36;
    --aa-auth-text:#667085;
    --aa-auth-primary:#6857F5;
    --aa-auth-primary-2:#8B7BFF;
    --aa-auth-success:#2b7a2d;
    --aa-auth-success-bg:rgba(69,150,71,.10);
    --aa-auth-error:#b91c1c;
    --aa-auth-error-bg:rgba(220,38,38,.08)
}

body:not(.logged-in) .wd-header-my-account .wd-dropdown-my-account {
    display:none!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important
}

.aa-auth-sheet {
    position:fixed;
    inset:0;
    z-index:999999;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    transition:opacity .28s ease,visibility .28s ease
}

.aa-auth-sheet.is-open {
    visibility:visible;
    opacity:1;
    pointer-events:auto
}

.aa-auth-sheet__overlay {
    position:absolute;
    inset:0;
    background:rgba(15,23,42,.26);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    opacity:0;
    transition:opacity .28s ease
}

.aa-auth-sheet.is-open .aa-auth-sheet__overlay {
    opacity:1
}

html.aa-auth-sheet-open,body.aa-auth-sheet-open {
    overflow:hidden!important;
    overscroll-behavior:none!important
}

body.aa-auth-sheet-open {
    position:fixed!important;
    width:100%!important;
    left:0!important;
    right:0!important
}

.aa-auth-sheet__panel {
    position:absolute;
    right:50%;
    bottom:0;
    transform:translateX(50%) translateY(100%);
    width:min(580px,calc(100% - 12px));
    height:auto;
    max-height:min(88vh,860px);
    display:flex;
    flex-direction:column;
    background:var(--aa-auth-bg)!important;
    border-radius:34px 34px 0 0;
    overflow:visible!important;
    box-shadow:0 -6px 14px rgba(11,18,36,.04),0 8px 18px rgba(11,18,36,.05);
    transition:transform .42s cubic-bezier(.19,1,.22,1)
}

.aa-auth-sheet.is-open .aa-auth-sheet__panel {
    transform:translateX(50%) translateY(0)
}

.aa-auth-sheet__close {
    position:absolute!important;
    top:-80px!important;
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    width:46px!important;
    height:46px!important;
    padding:0!important;
    border:0!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#000!important;
    box-shadow:0 10px 30px rgba(0,0,0,.14)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    cursor:pointer!important;
    z-index:30!important;
    transition:transform .22s ease,box-shadow .22s ease,opacity .22s ease!important
}

.aa-auth-sheet__close span {
    display:block;
    font-size:28px;
    font-weight:500;
    line-height:1;
    transform:translateY(-3px)
}

.aa-auth-sheet__close:hover {
    background:#fff!important;
    color:#000!important;
    transform:translateX(-50%) scale(1.06)!important;
    box-shadow:0 14px 34px rgba(0,0,0,.18)!important
}

.aa-auth-sheet__close:focus {
    outline:none!important;
    background:#fff!important;
    color:#000!important
}

.aa-auth-sheet__close:active {
    transform:translateX(-50%) scale(.97)!important
}

.aa-auth-sheet__handle {
    display:none!important
}

.aa-auth-sheet__head {
    padding:10px 22px 0;
    text-align:center
}

.aa-auth-sheet__title {
    margin:6px 0 4px;
    color:var(--aa-auth-title);
    font:800 24px/1.3 "Tajawal",Arial,Helvetica,sans-serif
}

.aa-auth-sheet__sub {
    margin:0;
    color:var(--aa-auth-text);
    font-size:14px;
    font-weight:600;
    line-height:1.7
}

.aa-auth-sheet__tabs-wrap {
    padding:18px 18px 0;
    flex:0 0 auto
}

.aa-auth-sheet__tabs {
    display:flex;
    gap:8px;
    padding:4px;
    background:var(--aa-auth-bg)!important;
    border:1px solid var(--aa-auth-border)!important;
    border-radius:50px!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.85)!important
}

.aa-auth-tab {
    flex:1 1 0;
    min-height:42px;
    padding:7px 10px!important;
    border:1px solid transparent!important;
    border-radius:50px!important;
    background:var(--aa-auth-soft)!important;
    color:var(--aa-auth-text)!important;
    font:700 13px/1 "Tajawal",Arial,Helvetica,sans-serif!important;
    text-align:center!important;
    cursor:pointer;
    box-shadow:none!important;
    transition:all .25s ease!important
}

.aa-auth-tab:hover {
    background:var(--aa-auth-soft-2)!important;
    color:var(--aa-auth-title)!important;
    border-color:rgba(139,123,255,.18)!important
}

.aa-auth-tab.is-active {
    background:linear-gradient(135deg,var(--aa-auth-primary-2),var(--aa-auth-primary))!important;
    color:#fff!important;
    border-color:transparent!important;
    box-shadow:0 8px 20px rgba(104,87,245,.20)!important
}

.aa-auth-sheet__body {
    padding:18px;
    overflow:auto;
    min-height:0;
    flex:1 1 auto
}

.aa-auth-pane {
    display:none;
    background:var(--aa-auth-soft);
    border:0!important;
    box-shadow:none!important;
    border-radius:26px;
    padding:18px
}

.aa-auth-pane.is-active {
    display:block;
    animation:aaAuthFade .24s ease
}

@keyframes aaAuthFade {
    from {
        opacity:0;
        transform:translateY(6px)
    }
    to {
        opacity:1;
        transform:translateY(0)
    }
}

.aa-auth-form {
    width:100%
}

.aa-auth-form .aa-f {
    margin-bottom:12px
}

.aa-auth-form .aa-f label {
    display:block;
    margin-bottom:3px;
    color:var(--aa-auth-title);
    font-size:13px;
    font-weight:800;
    line-height:1.4;
    transform:translateX(-4px)
}

.aa-auth-form .aa-f input,#aaLoginCountryModal .aa-country-search input,#aaCountryModal .aa-country-search input {
    width:100%;
    height:48px;
    padding:0 14px;
    border:1px solid var(--aa-auth-border);
    border-radius:50px;
    outline:0;
    font-size:14px;
    font-weight:600;
    box-sizing:border-box;
    background:var(--aa-auth-soft);
    color:var(--aa-auth-title);
    box-shadow:none!important;
    transition:border-color .22s ease,background-color .22s ease
}

#aaLoginCountryModal .aa-country-search input,#aaCountryModal .aa-country-search input {
    height:40px;
    padding:0 12px;
    background:var(--aa-auth-soft-2)
}

.aa-auth-form .aa-f input:focus,#aaLoginCountryModal .aa-country-search input:focus,#aaCountryModal .aa-country-search input:focus,.aa-auth-form .aa-country-btn:hover,.aa-auth-form .aa-country-btn:focus {
    border-color:var(--aa-auth-primary);
    background:var(--aa-auth-soft);
    box-shadow:none!important;
    outline:0
}

.aa-auth-form .aa-f input::placeholder {
    color:#98A2B3;
    font-weight:500
}

.aa-auth-form .aa-f input:focus::placeholder,.aa-auth-form .aa-f input:not(:placeholder-shown)::placeholder {
    opacity:0;
    transition:opacity .15s ease
}

.aa-auth-form .aa-field-note {
    display:none;
    margin-top:6px;
    padding-right:2px;
    color:var(--aa-auth-error);
    font-size:12px;
    font-weight:700;
    line-height:1.5
}

.aa-auth-form .aa-f.aa-invalid input {
    border-color:var(--aa-auth-error)!important;
    box-shadow:none!important
}

#aa_reg_name_note {
    transform:translate(-4px,-2px);
    font-size:11px!important
}

.aa-auth-form .aa-phone-wrap {
    display:flex;
    gap:8px;
    align-items:stretch;
    width:100%
}

.aa-auth-form .aa-phone-wrap input {
    flex:1
}

#aa_login_phone,#aa_reg_phone {
    direction:ltr!important;
    text-align:left!important
}

#aa_login_phone::placeholder,#aa_reg_phone::placeholder {
    direction:rtl!important;
    text-align:right!important
}

.aa-auth-form .aa-country-btn {
    height:48px;
    min-width:102px;
    padding:0 12px;
    border:1px solid var(--aa-auth-border);
    border-radius:50px;
    background:var(--aa-auth-soft);
    color:var(--aa-auth-title);
    cursor:pointer;
    font-size:13px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    box-sizing:border-box;
    box-shadow:none!important;
    transition:border-color .22s ease,background-color .22s ease
}

.aa-auth-form .aa-code-ltr,.aa-country-code {
    direction:ltr;
    unicode-bidi:isolate;
    display:inline-block;
    color:var(--aa-auth-title);
    font-weight:900
}

.aa-auth-form .aa-arrow {
    color:var(--aa-auth-text);
    font-size:12px
}

.aa-auth-form .aa-flag {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1;
    font-size:16px
}

.aa-auth-form .aa-flag.fi,.aa-country-name .aa-flag {
    width:20px;
    height:14px;
    font-size:0;
    border-radius:4px;
    box-shadow:none!important
}

.aa-auth-form .aa-otpfield {
    position:relative;
    width:100%
}

.aa-auth-form .aa-otpfield input {
    padding-left:94px;
    text-align:right;
    border-radius:50px!important
}

.aa-auth-form .aa-otp-resend {
    all:unset;
    position:absolute;
    left:8px;
    top:50%;
    transform:translateY(-50%);
    height:26px;
    padding:0 10px;
    border-radius:999px;
    background:var(--aa-auth-bg);
    border:1px solid var(--aa-auth-border);
    color:var(--aa-auth-title);
    font-size:11px;
    font-weight:800;
    white-space:nowrap;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-sizing:border-box;
    box-shadow:none!important
}

.aa-auth-form .aa-otp-resend.aa-is-resend {
    font-weight:700;
    color:var(--aa-auth-primary)
}

.aa-auth-form .aa-otp-resend:disabled {
    opacity:.55;
    cursor:not-allowed
}

.aa-auth-form .aa-btnx {
    width:100%;
    height:44px;
    border:0;
    border-radius:999px;
    background:var(--aa-auth-primary);
    color:#fff;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    box-shadow:none!important;
    transition:background-color .22s ease,opacity .22s ease
}

.aa-auth-form .aa-btnx:hover {
    background:var(--aa-auth-primary-2)
}

.aa-auth-form .aa-btnx:disabled {
    opacity:.65;
    cursor:not-allowed
}

.aa-auth-form .aa-msgx {
    display:none;
    align-items:center;
    justify-content:center;
    margin-top:10px;
    padding:10px 12px;
    border:0!important;
    border-radius:50px!important;
    font-size:13px;
    font-weight:400;
    line-height:1.6;
    box-shadow:none!important
}

.aa-auth-form .aa-msgx.success,.aa-auth-form .aa-msgx.error {
    display:flex
}

.aa-auth-form .aa-msgx.success {
    background:var(--aa-auth-success-bg);
    color:var(--aa-auth-success)
}

.aa-auth-form .aa-msgx.error {
    background:var(--aa-auth-error-bg);
    color:var(--aa-auth-error)
}

.aa-country-modal {
    position:fixed;
    inset:0;
    z-index:10000010;
    display:none;
    align-items:center;
    justify-content:center;
    padding:16px;
    background:rgba(17,24,39,.22)
}

.aa-country-box {
    width:100%;
    max-width:400px;
    max-height:64vh;
    background:var(--aa-auth-soft);
    border:1px solid var(--aa-auth-border);
    border-radius:40px;
    overflow:hidden;
    box-shadow:none!important
}

.aa-country-search {
    padding:10px 12px;
    border-bottom:1px solid rgba(0,0,0,.05);
    background:var(--aa-auth-soft)
}

.aa-country-list {
    max-height:calc(64vh - 60px);
    overflow:auto;
    scrollbar-width:thin;
    scrollbar-color:rgba(0,0,0,.22) transparent
}

.aa-country-list::-webkit-scrollbar {
    width:6px;
    height:6px
}

.aa-country-list::-webkit-scrollbar-track {
    background:transparent
}

.aa-country-list::-webkit-scrollbar-thumb {
    background:rgba(0,0,0,.22);
    border-radius:999px;
    border:2px solid transparent;
    background-clip:padding-box
}

.aa-country-item {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 14px;
    cursor:pointer;
    border-bottom:1px solid rgba(0,0,0,.05);
    background:var(--aa-auth-soft);
    transition:background-color .18s ease
}

.aa-country-item:hover {
    background:var(--aa-auth-bg)
}

.aa-country-name {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    font-weight:800;
    color:var(--aa-auth-title)
}

.aa-country-name .aa-flag {
    flex:0 0 auto
}

@media (min-width:1025px) {
    .aa-auth-sheet {
        display:flex;
        align-items:center;
        justify-content:center
    }
    .aa-auth-sheet__panel {
        position:relative;
        right:auto;
        bottom:auto;
        transform:scale(.96);
        width:min(640px,calc(100% - 40px));
        max-height:min(88vh,820px);
        border-radius:34px!important;
        box-shadow:0 18px 40px rgba(27,30,54,.10),0 6px 16px rgba(27,30,54,.06)!important
    }
    .aa-auth-sheet.is-open .aa-auth-sheet__panel {
        transform:scale(1)
    }
}

@media (max-width:767px) {
    .aa-auth-sheet__panel {
        width:calc(100% - 10px);
        height:76vh!important;
        min-height:76vh!important;
        max-height:76vh!important;
        border-radius:34px 34px 0 0
    }
    .aa-auth-sheet__close {
        top:-80px!important;
        width:42px!important;
        height:42px!important
    }
    .aa-auth-sheet__close span {
        font-size:24px!important
    }
    .aa-auth-sheet__head {
        padding:10px 16px 0
    }
    .aa-auth-sheet__title {
        font-size:22px
    }
    .aa-auth-sheet__tabs-wrap {
        padding:18px 14px 0
    }
    .aa-auth-tab {
        padding-bottom:4px!important
    }
    .aa-auth-sheet__body {
        padding:14px
    }
    .aa-auth-pane {
        padding:14px;
        border-radius:24px
    }
    .aa-auth-form .aa-f {
        margin-bottom:11px
    }
    #aaLoginCountryModal,
    #aaCountryModal {
        align-items:flex-start;
        padding-top:var(--aa-country-fixed-top,16px);
        padding-bottom:16px
    }
    #aaLoginCountryModal .aa-country-box,
    #aaCountryModal .aa-country-box {
        width:100%;
        max-width:400px;
        height:var(--aa-country-fixed-height,min(58vh,520px));
        min-height:var(--aa-country-fixed-height,min(58vh,520px));
        max-height:var(--aa-country-fixed-height,min(58vh,520px));
        display:flex;
        flex-direction:column
    }
    #aaLoginCountryModal .aa-country-list,
    #aaCountryModal .aa-country-list {
        flex:1 1 auto;
        min-height:0;
        max-height:none;
        background:var(--aa-auth-soft)
    }
    #aa_resend_otp,#aa_login_resend {
        display:flex;
        align-items:center;
        justify-content:center;
        line-height:1
    }

    /* v1.2.5: إزاحة النصوص المطلوبة فقط، على الجوال. */
    #aa_login_phone,
    #aa_login_otp,
    #aa_reg_name,
    #aa_reg_city,
    #aa_reg_phone,
    #aa_reg_otp {
        padding-top:2px!important;
        padding-bottom:0!important
    }
    #aa_login_resend,
    #aa_resend_otp {
        padding-top:2px!important;
        padding-bottom:0!important
    }
    #aa_login_msg,
    #aa_reg_msg {
        padding-top:12px!important;
        padding-bottom:8px!important;
        font-weight:400!important
    }
}
