/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0
*/

.woocommerce-privacy-policy-text{display:none;}

/* ================= ACCOUNT FORM WRAPPER ================= */

.custom-account-wrapper {
    max-width: 650px;
    margin: 0 auto;
}


/* ================= TABS ================= */

.account-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background: #e6e6e6;
    color: #333;
    transition: 0.3s;
    border-radius: 4px;
}

.tab-btn.active {
    background: #000;
    color: #fff;
}


/* ================= FORM CONTAINER ================= */

.tab-content {
    display: none;
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.tab-content.active {
    display: block;
}


/* ================= FORM FIELDS ================= */

.custom-account-wrapper .woocommerce form .form-row {
    margin-bottom: 18px;
}

.custom-account-wrapper .woocommerce form .form-row label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.custom-account-wrapper .woocommerce input[type="text"],
.custom-account-wrapper .woocommerce input[type="email"],
.custom-account-wrapper .woocommerce input[type="password"] {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    transition: 0.3s;
}

.custom-account-wrapper .woocommerce input:focus {
    border-color: #000;
    outline: none;
}


/* ================= CHECKBOX ================= */

.custom-account-wrapper .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}


/* ================= LOGIN + REGISTER BUTTONS ================= */

body.woocommerce-account 
.custom-account-wrapper 
form button.button,
body.woocommerce-account 
.custom-account-wrapper 
form input.button {

    background: #000;
    color: #fff;
    border-radius: 4px;
    border: none;
    padding: 14px 30px;
    font-weight: 600;
    min-width: 180px;
    height: 48px;
    line-height: 0;
}

body.woocommerce-account 
.custom-account-wrapper 
form button.button:hover {
    background: #333;
}


/* ================= GUEST BUTTON ================= */

.custom-account-wrapper .guest-btn {
    background: #000;
    color: #fff!important;
    padding: 25px 30px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    line-height: 0;
}

.custom-account-wrapper .guest-btn:hover {
    background: #333;
}

.custom-account-wrapper .guest-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}


/* ================= HEADER LOGIN BUTTON ================= */

.custom-login-btn,
.custom-logout-btn {
    background:#000;
    color:#fff;
    padding:10px 20px;
    border-radius:4px;
    text-decoration:none;
    font-weight:500;
}


/* ================= BUTTON GROUP ================= */

.form-row-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
}

.form-row-buttons button,
.form-row-buttons .guest-btn {
    flex: 1;
}


/* ================= INPUT FOCUS ================= */

.custom-account-wrapper input {
    transition: box-shadow .2s ease;
}

.custom-account-wrapper input:focus {
    box-shadow: 0 0 0 2px rgba(0,0,0,.1);
}


/* ================= DESKTOP TWO COLUMN FORM ================= */

#login > form > p:nth-child(5),
#login > form > p:nth-child(6),
#register > form > p:nth-child(10),
#register > form > p:nth-child(11) {
    width: 48%;
    display: inline-block;
    text-align-last: center;
}


/* ================= ADD TO CART ICON ================= */

a.add_to_cart_button {
    font-size: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
    padding: 12px 16px;
}

a.add_to_cart_button::before {
    content: "\f07a";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px;
    transition: 0.3s ease;
}

a.add_to_cart_button:hover::before {
    transform: scale(1.2);
}


/* ================= TABLET + MOBILE OVERRIDE ================= */

@media (max-width: 1024px) {

    /* Stack tabs */
    .account-tabs {
        flex-direction: row;
    }

     /* Stack action buttons */
    .form-row-buttons {
        flex-direction: row;
    }

    .form-row-buttons button,
    .form-row-buttons .guest-btn {
        width: 100% !important;
    }
.elementor-element.elementor-element-3abdbae5.elementor-widget.elementor-widget-text-editor{columns: 1!important;
    text-align: center;
}

#login > form > p:nth-child(5),
#login > form > p:nth-child(6),
#register > form > p:nth-child(10),
#register > form > p:nth-child(11) {
    width: 100%;
    display: inline-block;
    text-align-last: center;
}
}
/* ================= MOBILE EXTRA SPACING ================= */

@media (max-width: 600px) {
    
    .woocommerce-button.button{
        width: fit-content;
    }

    .custom-account-wrapper {
        padding: 0 15px;
    }

    .tab-content {
        padding: 20px;
    }
.elementor-element.elementor-element-3abdbae5.elementor-widget.elementor-widget-text-editor{columns: 1!important;
    text-align: center;
}


#login > form > p:nth-child(5),
#login > form > p:nth-child(6),
#register > form > p:nth-child(10),
#register > form > p:nth-child(11) {
    width: 100%;
    display: inline-block;
    text-align-last: center;
}
}
/* ================= CRITICAL TAB FIX ================= */

@media (max-width: 1024px) {
    .guest-btn{margin-top:10px;}

    /* Force wrapper to stack children */
    .custom-account-wrapper {
    }

    /* Force tab content full width */
    .tab-content {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
    }

    /* Ensure hidden tabs stay hidden */
    .tab-content:not(.active) {
        display: none !important;
    }

    /* Active tab takes full width */
    .tab-content.active {
        display: block !important;
        width: 100% !important;
    }

}
