/**
 * Mamba Critical CSS - WooCommerce My Account Page
 * 
 * Critical styles for the customer account area.
 * Covers navigation, dashboard, orders, and forms.
 * 
 * @package Mamba\Modules\CriticalCss
 * @since   1.1.0
 */

/* Account container */
.woocommerce-account .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
}

/* Account layout */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: left;
    width: 25%;
    padding-right: 2em;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: right;
    width: 75%;
}

/* Navigation menu */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.75em 1em;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #f5f5f5;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #333;
    color: #fff;
    font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:first-child a {
    border-top: 1px solid #eee;
}

/* Dashboard content */
.woocommerce-account .woocommerce-MyAccount-content p {
    margin-bottom: 1em;
    line-height: 1.7;
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: inherit;
    text-decoration: underline;
}

/* Orders table */
.woocommerce-account table.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-account table.woocommerce-orders-table th,
.woocommerce-account table.woocommerce-orders-table td {
    padding: 0.75em;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.woocommerce-account table.woocommerce-orders-table thead th {
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    font-weight: 600;
}

.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a {
    display: inline-block;
    padding: 0.5em 1em;
    margin-right: 0.25em;
    margin-bottom: 0.25em;
    font-size: 0.9em;
    text-decoration: none;
    border-radius: 3px;
    background: #f5f5f5;
}

.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover {
    background: #eee;
}

/* Addresses */
.woocommerce-account .woocommerce-Addresses {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.woocommerce-account .woocommerce-Address {
    flex: 1;
    min-width: 250px;
}

.woocommerce-account .woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eee;
}

.woocommerce-account .woocommerce-Address-title h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.woocommerce-account .woocommerce-Address-title a {
    font-size: 0.9em;
}

.woocommerce-account .woocommerce-Address address {
    font-style: normal;
    line-height: 1.7;
}

/* Edit account form */
.woocommerce-account .woocommerce-EditAccountForm {
    max-width: 600px;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset {
    border: none;
    padding: 0;
    margin: 2em 0 0;
}

.woocommerce-account .woocommerce-EditAccountForm legend {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eee;
    width: 100%;
}

/* Form fields */
.woocommerce-account .form-row {
    margin-bottom: 1em;
}

.woocommerce-account .form-row label {
    display: block;
    margin-bottom: 0.25em;
    font-weight: 500;
}

.woocommerce-account .form-row input.input-text,
.woocommerce-account .form-row select {
    width: 100%;
    padding: 0.75em;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.woocommerce-account .form-row-first,
.woocommerce-account .form-row-last {
    width: 48%;
    float: left;
}

.woocommerce-account .form-row-first {
    margin-right: 4%;
}

.woocommerce-account .form-row::after {
    content: "";
    display: table;
    clear: both;
}

/* Submit button */
.woocommerce-account button[type="submit"] {
    padding: 0.75em 1.5em;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.woocommerce-account button[type="submit"]:hover {
    opacity: 0.9;
}

/* Login/Register forms */
.woocommerce-account .u-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    flex: 1;
    min-width: 280px;
}

.woocommerce-account form.login,
.woocommerce-account form.register {
    padding: 1.5em;
    background: #f7f7f7;
    border-radius: 5px;
}

.woocommerce-account form.login h2,
.woocommerce-account form.register h2 {
    font-size: 1.25em;
    font-weight: 700;
    margin: 0 0 1em;
}

/* Lost password */
.woocommerce-account .woocommerce-LostPassword {
    margin-top: 1em;
    font-size: 0.9em;
}

/* Notices */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
    padding: 1em;
    margin-bottom: 1.5em;
    border-radius: 3px;
}

/* Clearfix */
.woocommerce-account .woocommerce::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        float: none;
        width: 100%;
        padding-right: 0;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 2em;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5em;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        flex: 1;
        min-width: calc(50% - 0.25em);
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        text-align: center;
        border: 1px solid #eee;
        border-radius: 3px;
    }
    
    .woocommerce-account .form-row-first,
    .woocommerce-account .form-row-last {
        width: 100%;
        float: none;
        margin-right: 0;
    }
    
    .woocommerce-account table.woocommerce-orders-table {
        display: block;
        overflow-x: auto;
    }
}
