/* ========================================
   WooCommerce Edit Account — Input Styling
======================================== */

body.woocommerce-account.woocommerce-edit-account
.woocommerce-EditAccountForm input.input-text,
body.woocommerce-account.woocommerce-edit-account
.woocommerce-EditAccountForm input[type="password"],
body.woocommerce-account.woocommerce-edit-account
.woocommerce-EditAccountForm input[type="email"] {
    border: 1px solid #eee;         
    border-radius: 12px;
    padding: 12px 16px;
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}


/* ACTIVE STATE */
body.woocommerce-account.woocommerce-edit-account
.woocommerce-EditAccountForm input.input-text:focus,
body.woocommerce-account.woocommerce-edit-account
.woocommerce-EditAccountForm input[type="password"]:focus,
body.woocommerce-account.woocommerce-edit-account
.woocommerce-EditAccountForm input[type="email"]:focus {
    border: 1px solid #135266;
    outline: none;
}

/* Remove fieldset border */
body.woocommerce-account.woocommerce-edit-account
.woocommerce-EditAccountForm fieldset {
    border: none;
    padding: 0;
    margin: 0;
    margin-top: 2em;
}

/* Optional: make legend cleaner */
body.woocommerce-account.woocommerce-edit-account
.woocommerce-EditAccountForm fieldset legend {
    font-weight: 600;
    margin-bottom: 1em;
    padding: 0;
}

/* Add spacing above submit section */
body.woocommerce-account.woocommerce-edit-account
.woocommerce-EditAccountForm > p:last-of-type {
    padding: 2em 0;
}

/* ========================================
   WooCommerce My Account Navigation
======================================== */

body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 260px;
}

body.woocommerce-account 
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.woocommerce-account 
.woocommerce-MyAccount-navigation-link a {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    background: #f7f7f7;
    transition: 0.2s ease;
}

/* Hover */
body.woocommerce-account 
.woocommerce-MyAccount-navigation-link a:hover {
    background: #135266;
    color: #fff;
    text-decoration: none;
}

/* Active */
body.woocommerce-account 
.woocommerce-MyAccount-navigation-link.is-active a {
    background: #135266;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

body.woocommerce-account .woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: self-start;
    flex-direction: column;
}

body.woocommerce-account .woocommerce-Address-title h2 {
    height: 2.4em;
}

body.woocommerce-account .woocommerce-Address-title a { 
    text-decoration: none;
    background-color: #eee;
    padding: 10px;
    border-radius: 10px;
    margin: 1em 0;
    height: 4em;
    width: 100%;
}

body.woocommerce-account .woocommerce-Address-title a:hover { 
    background-color: #135266;
    color:white;
}

body.woocommerce-account .woocommerce-Address-title a.edit {
    float: none;
}

.wp-block-template-part {
    margin-top: 2em;
}

@media (max-width: 768px){

    body.woocommerce-account 
    .woocommerce-MyAccount-navigation {
        width: 100%;
        margin-bottom: 2em;
    }

    body.woocommerce-account .woocommerce-Address-title h2 {
        height: 1em;
        margin-top: 1em;
    }

    body.woocommerce-account .woocommerce-Address-title a { 
        height: 3em;
        text-align: center;
    }

}