/**
Theme Name: قالب چایلد astra
Author: akb
Author URI: http://akb.co.ir/
Description: astra child
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: weblime
Template: astra
*/

@font-face{
    font-family: 'iranyekan';
    src: url('/wp-content/themes/twentytwentyfive/assets/fonts/iranyekan/iranyekan.woff') format('woff');
}

body {
    font-family: 'iranyekan', sans-serif;
}

div, h1,h2,h3,h4,h5,h6, p, a, button{
    direction: rtl !important;
    font-family: iranyekan !important;
}
/*plugin styles*/

/*plugin styles end*/

.form-error{
    font-size: 12px;
    color: red;
}
.error{
    border: 1px solid red !important;
}
.wp-block-post-title{
    display: none !important;
}
.header-login-btn, #loginBtn, #loginBtnMobile{
    /*background: rgb(57, 237, 89);*/
    background-color: white !important;
    color:#000;
    padding:12px 24px;
    border-radius:12px !important;
    text-decoration:none;
    display:inline-block;
    /*width: 120px;*/
    text-align: center;
    font-size: 16px;
    /*margin-left: 24px;*/
    width: 100%;
}
#loginBtnMobile:disabled, #loginBtn:disabled, #cp_login_btn:disabled, #cp_verify_otp:disabled,
#submit-profile:disabled, button:disabled{
    background: #8c8c8c !important;
    cursor: not-allowed !important;
}
.myprofile-wrapper{
    padding: 40px 60px;
    border-radius: 8px;
    background-color: rgba(57, 237, 89, 0.2);
    /*background-color: rgba(232, 39, 135, 0.2);*/
    margin-bottom: 40px;
}
.myprofile-wrapper inpu2t, .myprofile-wrapper label {
    margin-bottom: 0 !important;
}
#complete-profile-fields label::before {
    content: '* ';
    color: red;
}
#complete-profile-fields p{
    margin-bottom: 2px !important;
}
.header-user-menu{
    width: 50%;
}
#academyBtn, #check-api-btn, #check-api-btn2{
    background: linear-gradient(135deg, #F5C542, #C9A227);
    /*padding: 8px 24px;*/
    border-radius:12px;
    text-decoration:none;
    text-align:center;
    font-size: 16px;
    font-weight: 600 !important;
}

.buttons-container{
    /*display: flex;*/
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}
.buttons-container a{
    color: white !important;
    font-size: 12px;
    text-decoration: underline !important;
}
.myprofile-login-btn{
    background:#39ed59;
    /*background: #e82787;*/
    color:#000;
    padding:8px 24px;
    border-radius:12px;
    text-decoration:none;
    display:inline-block;
    text-align: center;

}
.myprofile-btn{
    max-width: 200px;
    background: #39ed59;
    border-radius: 12px;
    padding: 8px 24px;
    text-decoration: none !important;
}
.myprofile-btn:hover, .myprofile-btn:focus{
    background: #39ed59;
}
.disabled-btn{
    background: #ccc!important;
    cursor: default !important;
}

/* ===== Modal Background ===== */

.modal {
    position: fixed;
    height: unset !important;
    z-index: 9999;
    top: 0;
    left: 30% !important;
//background: rgba(15, 23, 42, 0.55);
//backdrop-filter: blur(6px);
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;
}

/* ===== Modal Box ===== */

.modal-content {
    width: 80% !important;
    max-width: 420px;

    background: #ffffff;
    border-radius: 28px;

    padding: 32px 24px;

    position: relative;

    box-shadow:
            0 10px 40px rgba(0,0,0,0.12);

    animation: modalFade .35s ease;
}

/* ===== Close Button ===== */

.close {
    position: absolute;
    top: 16px;
    left: 18px;

    font-size: 28px;
    color: #999;

    cursor: pointer;
    transition: .25s;
}

.close:hover {
    color: #111;
    transform: rotate(90deg);
}

/* ===== Login Box ===== */

#custom-login-box {
    direction: rtl;
    text-align: right;
    font-family: Vazirmatn, sans-serif;
}

#custom-login-box h2,
#complete-profile-fields h2 {
    margin: 0 0 24px;

    font-size: 24px;
    font-weight: 800;

    color: #39ed59;
    text-align: center;
}

/* ===== Labels ===== */

#custom-login-box label,
#complete-profile-fields label {
    display: block;

    margin-bottom: 10px;

    font-size: 14px;
    font-weight: 600;

    color: #374151;
}

/* ===== Inputs ===== */

#custom-login-box input,
#complete-profile-fields input {
    width: 100%;
    /*height: 54px;*/

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    padding: 0 16px;

    font-size: 15px;

    background: #f9fafb;

    transition: .3s;

    box-sizing: border-box;

    margin-bottom: 16px;
}

#custom-login-box input:focus,
#complete-profile-fields input:focus {
    outline: none;

    border-color: #6366f1;

    background: #fff;

    box-shadow:
            0 0 0 4px rgba(99,102,241,0.12);
}

/* ===== Buttons ===== */

.custom-login-btn,
#complete-profile-fields button {
    width: 100%;
    height: 54px;

    border: none;
    border-radius: 16px;

    background: linear-gradient(
            135deg,
            #6366f1,
            #4f46e5
    );

    color: white;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: .3s;

    margin-bottom: 14px;
}

.custom-login-btn:hover,
#complete-profile-fields button:hover {
    transform: translateY(-2px);

    box-shadow:
            0 10px 25px rgba(79,70,229,0.25);
}

#complete-profile-fields button:active, .custom-login-btn:active {
    transform: scale(.98);
}
.cp-tab:hover, .cp-tab:focus, .cp-tab:active {
    background: unset !important;
}

/* ===== OTP Section ===== */

#otp-section {
    margin-top: 12px;
}
/* ===== Complete profile Section ===== */
#complete-profile-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}
/* ===== Message ===== */

#cp_message {
    margin-top: 10px;

    font-size: 14px;

    color: #6b7280;

    text-align: center;
}
.password-field {
    position: relative;
    margin-bottom: 10px;
}

.password-field input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password, .toggle-password:hover {
    position: absolute;
    left: 0;
    top: 20px;
    height: unset !important;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: unset !important;
    border-radius: unset !important;
    background: none !important;
    margin-bottom: 0 !important;
    height: unset !important;
    box-shadow: none !important;
    padding: 10px !important;
}

/*#check-api-btn{*/
/*    max-width: 400px;*/
/*    height: 54px;*/

/*    border: none;*/
/*    border-radius: 16px;*/

/*    background: linear-gradient(*/
/*            135deg,*/
/*            #6366f1,*/
/*            #4f46e5*/
/*    );*/
/*    cursor: pointer;*/
/*    color: white;*/
/*    font-size: 20px;*/
/*    padding: 8px 20px;*/
/*}*/
#api-result {
    background: #eee;
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
}
/* ===== Animation ===== */

@keyframes modalFade {

    from {
        opacity: 0;
        transform: translateY(25px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================= */
/* =============== MOBILE ================== */
/* ========================================= */

@media (max-width: 768px) {

    .modal {
        left: 0 !important;
        padding: 14px;
    }

    .modal-content {

        max-width: 100%;

        border-radius: 24px;

        padding:
                26px
                18px;
    }

    #custom-login-box h2 {

        font-size: 21px;

        margin-bottom: 22px;
    }

    #custom-login-box input,
    #custom-login-box button,
    #complete-profile-fields input,
    #complete-profile-fields button {

        height: 50px;

        font-size: 14px;

        border-radius: 14px;
    }

    .close {
        font-size: 24px;
        top: 12px;
        left: 14px;
    }

    /*after 6 june*/
    #loginBtn, #check-api-btn, #check-api-btn2{
        margin-left: 0;
        /*padding: 0;*/
        /*border-radius: 0;*/
        width: 50% !important;
    }
    #loginBtn a, #check-api-btn a, #check-api-btn2 a{
        /*background: #39ed59 !important;*/
    }
    /*.user-dropdown{*/
    /*    background: #000;*/
    /*    color: #fff;*/
    /*    width: 100%;*/
    /*    border-radius: 0;*/
    /*    right: unset !important;*/
    /*    top: unset !important;*/
    /*}*/
    /*.user-dropdown a{*/
    /*    color: #fff;*/
    /*}*/
    /*mobile hamburger menu*/
    #menubar-358 {
        margin-top: 20px;
    }
    .header-login-btn, #loginBtn, #loginBtnMobile{
        padding: 6px 24px;
        width: 100%;
    }
}

/* ===== Small Phones ===== */

@media (max-width: 480px) {
    .wp-block-site-title a {
        font-size: 16px !important;
    }
    .header-login-btn{
        width: 80px;
    }
    .modal{
        left: 0 !important;
    }
    .modal-content {
        max-width: 100%;
        padding:
                22px
                14px;

        border-radius: 20px;
    }

    #custom-login-box h2,
    #complete-profile-fields h2 {
        font-size: 16px;
    }

    #custom-login-box input,
    #custom-login-box button,
    #complete-profile-fields input,
    #complete-profile-fields button {

        height: 48px;

        font-size: 13px;
    }
}

/*after 6 june*/

.cp-tab-content label::before {
    content: '*';
    color: red;
}

.site-below-footer-wrap{
    background: #39ed59 !important;
}
/*Active link*/
.e-n-menu-title.e-current .e-n-menu-title-text {
    color: #d4af37;
    /*font-weight: 700;*/
}
/*menu dropdown*/
.header-user-menu {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 170px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s;
    z-index: 9999;
    width: 100%;
    margin-top: 2px;
}

.user-dropdown a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
}

.user-dropdown a:hover {
    background: #f5f5f5;
}

.header-user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*mobile dropdown menu*/
#menubar-198 {
    margin-top: 40px;
}
.mobile-user-box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.mobile-account-btn.header-login-btn {
    min-width: 150px;
}

.mobile-account-btn {
    display: block;
    /*padding: 10px;*/
    /*background: #f5c542;*/
    color: #000;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
}

.mobile-logout-btn {
    display: block;
    padding: 6px;
    font-size: 12px;
    border-radius: 4px;
    background: #fff;
    color: red;
    text-align: center;
    text-decoration: none;
}
.academy-help{
    margin-top: 20px;
    background: rgba(131, 242, 127, 0.4) !important;
    padding: 10px;
    /*border-radius: 4px;*/
}
.academy-help p:first-child::before {
    content: '*';
    color: red;
    margin-left: 4px;
}

/*change password modal*/
#change-password-modal .modal-box {
    border: 1px solid gray;
    padding: 16px;
    border-radius: 12px;
}
.change-password-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /*border: 1px solid gray;*/
    /*padding: 16px;*/
    /*border-radius: 12px;*/
}
.change-password-row {
    display: flex;
    flex-direction: row;
    position: relative;
    gap: 10px;
}
.change-password-row label {
    width: 30%;
}
.change-password-row input {
    width: 65%;
}
.change-password-container p {
    font-size: 12px;
    color: #595959;
    margin-top: 16px;
    text-decoration: underline red;
}
.change-password-container label::before {
    content: '* ';
    color: red;
    font-size: 12px;
}
.change-password-container .toggle-password {
    top: 0 !important;
    left: 4px !important;
}
.close-btn {
    background: red;
    margin: 0 auto;
    width: 100px;
    text-align: center;
}

/*children modal*/
#childrenModal{
    display: none;
}
#childrenModal .child-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}
.child-tab.active {
    background: unset;
    color: black;
    border-bottom: 1px solid black;
    box-shadow: none;
    border-radius: 0;
}
.child-tab {
    background: unset !important;
    color: black !important;
    box-shadow: none;
    border-radius: 0;
}
.child-tab-content{
    display: none;
    flex-direction: column;
    gap: 10px;
}
.child-tab-content:hover{
    background: unset;
}
.child-tab-content.active{
    display: flex !important;
}
#child-close {
    cursor: pointer;
    font-size: 38px;
}
/*end children modal*/


@media screen and (max-width: 480px) {
    .change-password-row {
        flex-direction: column;
    }
    .change-password-row input{
        width: 100%;
    }
    .change-password-row label{
        width: 100%;
    }
    .change-password-container .toggle-password {
        top: 50% !important;
    }
}