/* تنسيقات نموذج بيانات العميل داخل WooCommerce. */

.aa-checkoutx {
    --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-success:#2b7a2d;
    --aa-auth-success-bg:rgba(69,150,71,.10);
    --aa-auth-error:#b91c1c;
    --aa-auth-error-bg:rgba(220,38,38,.08);
    width:100%;
    direction:rtl;
    color:var(--aa-auth-title);
    font-family:"Tajawal",Arial,Helvetica,sans-serif
}

.aa-checkoutx * {
    box-sizing:border-box
}

.aa-checkoutx .aa-f {
    margin-bottom:12px
}

.aa-checkoutx .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-checkoutx .aa-f input,#aaCheckoutCountryModal .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
}

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

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

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

.aa-checkoutx .aa-f input[readonly] {
    background:rgba(69,150,71,.06)!important;
    border-color:rgba(69,150,71,.22)!important;
    color:#166534!important;
    cursor:not-allowed!important
}

.aa-checkoutx .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-checkoutx input.aa-invalid {
    border-color:var(--aa-auth-error)!important;
    box-shadow:none!important
}

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

.aa-checkoutx .aa-phone-wrap input {
    flex:1!important
}

.aa-checkoutx #aa_checkout_phone {
    direction:ltr!important;
    text-align:left!important
}

.aa-checkoutx #aa_checkout_phone::placeholder {
    direction:rtl!important;
    text-align:right!important
}

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

.aa-checkoutx .aa-country-btn:disabled {
    opacity:.6!important;
    cursor:not-allowed!important
}

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

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

.aa-checkoutx .aa-flag,#aaCheckoutCountryModal .aa-country-name .aa-flag {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:20px!important;
    min-width:20px!important;
    height:14px!important;
    font-size:0!important;
    line-height:1!important;
    border-radius:4px!important;
    box-shadow:none!important;
    background-size:cover!important;
    background-position:center!important;
    background-repeat:no-repeat!important
}

.aa-checkoutx .aa-status {
    display:none;
    align-items:center;
    gap:9px;
    margin:4px 0 10px;
    padding:11px 13px;
    border-radius:50px;
    background:rgba(104,87,245,.07);
    color:var(--aa-auth-primary);
    font-size:13px;
    font-weight:400
}

.aa-checkoutx .aa-spinner {
    width:15px;
    height:15px;
    border-radius:50%;
    border:2px solid rgba(104,87,245,.18);
    border-top-color:var(--aa-auth-primary);
    animation:aaSpin .8s linear infinite
}

@keyframes aaSpin {
    to {
        transform:rotate(360deg)
    }
}

.aa-checkoutx .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-checkoutx .aa-msgx.success {
    display:flex;
    background:var(--aa-auth-success-bg);
    color:var(--aa-auth-success)
}

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

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

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

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

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

#aaCheckoutCountryModal .aa-country-list {
    max-height:calc(64vh - 60px)!important;
    overflow:auto!important;
    scrollbar-width:thin;
    scrollbar-color:rgba(0,0,0,.22) transparent;
    background:var(--aa-auth-soft)!important
}

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

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

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

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

#aaCheckoutCountryModal .aa-country-item:hover {
    background:var(--aa-auth-bg)!important
}

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

.aa-country-modal body.aa-modal-open,body.aa-modal-open {
    overflow:hidden!important;
    height:100%!important
}

@media(max-width:767px) {
    .aa-checkoutx .aa-f {
        margin-bottom:11px
    }
    #aaCheckoutCountryModal .aa-country-box {
        max-width:100%!important;
        height:auto!important;
        min-height:0!important;
        max-height:min(74vh,560px)!important
    }
    #aaCheckoutCountryModal .aa-country-list {
        min-height:0!important;
        max-height:min(48vh,360px)!important;
        background:var(--aa-auth-soft)!important
    }
    #aaCheckoutCountrySearch {
        padding:0 12px!important;
        line-height:40px!important
    }
    #aaCheckoutCountrySearch,#aaCheckoutCountrySearch::placeholder {
        font-size:13px!important;
        font-weight:400!important
    }
    /* v1.2.5: حقول ورسائل بيانات السلة المطلوبة فقط. */
    .aa-checkoutx #aa_checkout_name,
    .aa-checkoutx #aa_checkout_city,
    .aa-checkoutx #aa_checkout_phone {
        padding-top:2px!important;
        padding-bottom:0!important
    }
    .aa-checkoutx #aa_checkout_status .aa-status-text {
        position:relative;
        top:2px;
        font-weight:400!important
    }
}
