/* ============================================================
   MY ACCOUNT PAGE STYLES (Apple Style)
============================================================ */

/* 1. Account Layout (Navigation + Content) */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;

}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 20px;
    }
}

/* 2. Account Navigation (Sidebar) */
.woocommerce-MyAccount-navigation {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: fit-content;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 10px;
    border: none !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-radius: 90px;
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #f5f5f7;
    color: #000;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--aw-primary-color, #0071e3);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

/* 3. Account Content (Right Side) */
.woocommerce-MyAccount-content {
    flex: 1;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.woocommerce-MyAccount-content p {
    font-size: 16px;
    color: #1d1d1f;
    line-height: 1.6;
}

/* Headings in Content */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1d1d1f;
}

/* 4. Orders Table */
.woocommerce-MyAccount-content table.my_account_orders {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
}

.woocommerce-MyAccount-content table.my_account_orders thead th {
    background: #f5f5f7;
    padding: 15px 20px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: left;
    border: none;
}

.woocommerce-MyAccount-content table.my_account_orders thead th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.woocommerce-MyAccount-content table.my_account_orders thead th:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.woocommerce-MyAccount-content table.my_account_orders tbody td {
    padding: 20px;
    border-bottom: 1px solid #f5f5f7;
    color: #424245;
    font-size: 15px;
}

.woocommerce-MyAccount-content table.my_account_orders tbody tr:last-child td {
    border-bottom: none;
}

/* Order Buttons */
.woocommerce-MyAccount-content .button.view {
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.woocommerce-MyAccount-content .button.view:hover {
    background: #e5e5ea !important;
    color: #000 !important;
}

/* 5. Addresses */
.woocommerce-Address {
    background: #f9fafb;
    border-radius: 18px;
    padding: 25px;
    border: 0px solid rgba(0, 0, 0, 0.04) !important;
}

.woocommerce-Address-title h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.woocommerce-Address address {
    font-style: normal;
    color: #424245;
    line-height: 1.6;
}

.woocommerce-Address .edit {
    display: inline-block;
    margin-top: 15px;
    color: var(--aw-primary-color, #0071e3);
    text-decoration: none;
    font-weight: 500;
}

.woocommerce-Address .edit:hover {
    text-decoration: underline;
}

/* 6. Login / Register Forms - Side by Side Layout */
.aw-account-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.aw-account-column {
    flex: 1;
    background: #fff;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.aw-account-column h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #1d1d1f;
}

/* Form Fields Spacing */
.woocommerce-form-row {
    margin-bottom: 20px;
}

.woocommerce-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d1d1f;
    font-size: 14px;
}

/* Responsive - Stack on Mobile */
@media (max-width: 768px) {
    .aw-account-wrapper {
        flex-direction: column;
        gap: 20px;
        margin: 30px auto;
        padding: 0 10px;
        /* Reduce side padding like other pages */
    }

    .aw-account-column {
        padding: 30px 20px;
        /* Reduce padding to match other pages */
    }

    .aw-account-column h2 {
        font-size: 24px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .aw-account-wrapper {
        padding: 0 10px !important;
        margin: 30px auto;
    }

    .aw-account-column {
        padding: 30px 18px !important;
        border-radius: 20px;
    }

    .aw-account-column h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .woocommerce-form-row label {
        font-size: 13px;
    }
}