/* BELARA QUICK LOGIN V1 */

body.woocommerce-account:not(.logged-in) #customer_login {
    display: none !important;
}

body.woocommerce-account.belara-ql-show-legacy #customer_login {
    display: flex !important;
    margin-top: 28px !important;
}

.belara-ql {
    direction: rtl;
    width: 100%;
    max-width: 560px;
    margin: 42px auto 56px;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: "Almarai", sans-serif;
}

.belara-ql * {
    box-sizing: border-box;
}

.belara-ql__card {
    background: #fff;
    border: 1px solid #eadfd9;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 14px 42px rgba(42,18,16,.055);
}

.belara-ql__brand {
    text-align: center;
    font-size: 13px;
    letter-spacing: .18em;
    font-weight: 800;
    color: #8a6c5c;
    margin-bottom: 12px;
}

.belara-ql__title {
    margin: 0;
    text-align: center;
    font-size: 27px;
    line-height: 1.5;
    font-weight: 800;
    color: #2a1210;
}

.belara-ql__subtitle {
    text-align: center;
    margin: 8px 0 26px;
    color: #806f68;
    font-size: 14px;
    line-height: 1.8;
}

.belara-ql__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 5px;
    margin-bottom: 20px;
    background: #f7f2ef;
    border-radius: 13px;
}

.belara-ql__tab {
    min-height: 43px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #695753;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.belara-ql__tab.is-active {
    background: #fff;
    color: #2a1210;
    box-shadow: 0 2px 10px rgba(42,18,16,.06);
}

.belara-ql__field-wrap {
    margin-bottom: 14px;
}

.belara-ql__field-wrap label {
    display: block;
    margin-bottom: 8px;
    color: #3d2925;
    font-size: 13px;
    font-weight: 700;
}

.belara-ql__field-wrap input,
.belara-ql__code {
    width: 100%;
    min-height: 52px;
    border: 1px solid #dfd2cc;
    border-radius: 12px;
    background: #fff;
    padding: 0 15px;
    font-family: inherit;
    font-size: 15px;
    color: #2a1210;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.belara-ql__field-wrap input:focus,
.belara-ql__code:focus {
    border-color: #8a6758;
    box-shadow: 0 0 0 3px rgba(138,103,88,.10);
}

.belara-ql__primary {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: #2a1210;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, opacity .18s ease;
}

.belara-ql__primary:hover {
    background: #6b4636;
}

.belara-ql__primary:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.belara-ql__verify {
    text-align: center;
}

.belara-ql__verify-copy {
    margin: 4px 0 16px;
    color: #65544f;
    font-size: 14px;
}

.belara-ql__code {
    text-align: center;
    direction: ltr;
    font-size: 24px;
    letter-spacing: .38em;
    font-weight: 800;
    margin-bottom: 14px;
}

.belara-ql__text-button,
.belara-ql__legacy-toggle {
    display: block;
    margin: 14px auto 0;
    border: 0;
    background: transparent;
    color: #715b52;
    font-family: inherit;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.belara-ql__message {
    display: none;
    margin-top: 16px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.8;
}

.belara-ql__message.is-visible {
    display: block;
}

.belara-ql__message.is-success {
    background: #f0f7f1;
    color: #285b34;
}

.belara-ql__message.is-error {
    background: #fbefef;
    color: #8b2c2c;
}

.belara-ql__legal {
    margin: 22px 0 0;
    text-align: center;
    color: #9a8982;
    font-size: 11px;
    line-height: 1.9;
}

.belara-ql__hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.belara-ql .is-hidden {
    display: none !important;
}

@media (max-width: 600px) {

    .belara-ql {
        margin-top: 22px;
        padding: 0 12px;
    }

    .belara-ql__card {
        padding: 27px 18px;
        border-radius: 18px;
    }

    .belara-ql__title {
        font-size: 23px;
    }

    .belara-ql__primary,
    .belara-ql__field-wrap input {
        min-height: 54px;
    }
}

/* =========================================================
   BELARA QUICK LOGIN V1.1
   FORCE HIDE LEGACY WOOCOMMERCE LOGIN / REGISTER
   ========================================================= */

/*
 * Hide WooCommerce legacy login/register completely
 * while BELARA Quick Login is the active experience.
 */
html body.woocommerce-account:not(.belara-ql-show-legacy) #customer_login,
html body.woocommerce-account:not(.belara-ql-show-legacy) .woocommerce #customer_login,
html body.woocommerce-account:not(.belara-ql-show-legacy) .woocommerce > #customer_login {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/*
 * Restore it only when the customer explicitly chooses
 * "الدخول باستخدام كلمة المرور".
 */
html body.woocommerce-account.belara-ql-show-legacy #customer_login,
html body.woocommerce-account.belara-ql-show-legacy .woocommerce #customer_login {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: initial !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 28px !important;
    padding: initial !important;
}

@media (max-width: 768px) {
    html body.woocommerce-account.belara-ql-show-legacy #customer_login {
        display: block !important;
    }
}

/* BELARA QUICK LOGIN V1.1 END */
