/* --- BASE LAYOUT --- */
.account-page .container {
    width: min(1100px, 92vw);
    margin-inline: auto;
    padding: 3rem 0; /* Add spacing */
}

/* UPDATED: Made selector more specific to avoid body tag conflict */
.account-page .woocommerce-account {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* --- LOGGED-IN VIEW (DASHBOARD) --- */

/* Navigation menu (Orders, Downloads, etc.) */
.woocommerce-MyAccount-navigation {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    height: fit-content;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 0.5rem;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #2a8836; /* Your header green */
    color: #fff;
}

.woocommerce-MyAccount-navigation ul li a:hover:not(.is-active a) {
    background-color: #f4f4f4;
    color: #111;
}

/* Main content area (Dashboard content, Order details) */
.woocommerce-MyAccount-content {
    flex: 3; /* Takes 3 parts, making it wider */
    min-width: 300px;
    flex-basis: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 2rem;
}

.woocommerce-MyAccount-content p {
    line-height: 1.6;
}

/* --- LOGGED-OUT VIEW (LOGIN/REGISTER FORMS) --- */

/* Create a 2-column layout */
.woocommerce-account .u-columns.col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
}

/* Individual column (Login or Register) */
.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 2rem;
}

.woocommerce-account h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Form fields */
.woocommerce-form-row {
    margin-bottom: 1rem;
}

.woocommerce-form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.woocommerce-Input,
.woocommerce-Button {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-family: 'Gordita', system-ui, sans-serif;
    font-size: 1rem;
    /* Use your box-sizing from base.css */
    box-sizing: border-box;
}

.woocommerce-Input:focus {
    outline: none;
    border-color: #2a8836;
    box-shadow: 0 0 0 2px rgba(42, 136, 54, 0.2);
}

/* Button styling */
.woocommerce-Button {
    background: #2a8836; /* Your green */
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border-color: #2a8836;
}

.woocommerce-Button:hover {
    background: #1E4D2B; /* Darker green */
    border-color: #1E4D2B;
}

.show-password-input{
    padding: 0.5rem;
}

/* Checkbox */
.woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.woocommerce-form-login__rememberme label {
    margin-bottom: 0;
}
.woocommerce-form-login__rememberme input[type="checkbox"] {
    width: auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* Stack login/register forms on mobile */
    .woocommerce-account .u-columns.col2-set {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
