/* my-account.css — Premium User Dashboard */



/* The Container matches your Header width (1180px) */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px; /* Prevents touching edges on mobile */
    width: 100%;
    box-sizing: border-box;
}

/* =========================================
   5. ADDRESSES GRID (BULLETPROOF FIX)
   ========================================= */

/* 1. Target the Container specifically using the classes from your HTML */
.woocommerce-account .u-columns.woocommerce-Addresses.col2-set.addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr; /* Force 2 Columns */
    gap: 30px !important;
    width: 100% !important;
    margin-top: 30px !important;
}

/* 2. KILL THE INVISIBLE GHOST ELEMENTS (Critical Step!) */
/* This removes the WooCommerce 'clearfix' helpers that are breaking your grid */
.woocommerce-account .u-columns.woocommerce-Addresses.col2-set.addresses::before,
.woocommerce-account .u-columns.woocommerce-Addresses.col2-set.addresses::after {
    display: none !important;
    content: none !important;
}

/* 3. Reset the Address Boxes */
.woocommerce-account .u-columns.woocommerce-Addresses .u-column1, 
.woocommerce-account .u-columns.woocommerce-Addresses .u-column2 {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 30px !important; /* Internal spacing */
    
    /* Styling the Box */
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

/* 4. Title Styling */
.woocommerce-Address-title h3 {
    font-size: 22px;
    font-family: Georgia, serif;
    margin-top: 0;
    margin-bottom: 15px;
    color: #071124;
    display: inline-block;
}

/* 5. Edit Button (Green) */
.woocommerce-Address-title .edit {
    float: right;
    font-size: 13px;
    background: var(--quill-primary, #008f8f);
    color: #fff !important;
    padding: 6px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.woocommerce-Address-title .edit:hover {
    background: #006666;
}

/* 6. Address Text */
address {
    font-style: normal;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 15px;
}

/* 7. Mobile Responsive */
@media (max-width: 768px) {
    .woocommerce-account .u-columns.woocommerce-Addresses.col2-set.addresses {
        grid-template-columns: 1fr !important; /* Stack on mobile */
    }
}
/* =========================================
   1. MAIN LAYOUT CONTAINER
   ========================================= */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    align-items: flex-start;
}

/* Mobile Responsive: Stack them */
@media (max-width: 900px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
}

/* =========================================
   2. SIDEBAR NAVIGATION (Modern Menu)
   ========================================= */
.woocommerce-MyAccount-navigation {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    padding: 20px 0;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border-bottom: 1px solid #f9f9f9;
}
.woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none; }

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

/* Hover State */
.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #f8fafc;
    color: #008f8f; /* Brand Teal */
    padding-left: 30px; /* Slide effect */
}

/* Active State */
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #e6f7f7;
    color: #008f8f;
    border-left-color: #008f8f;
}

/* Logout Link (Red) */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #ff6b6b;
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #fff5f5;
}

/* =========================================
   3. CONTENT AREA (Right Side)
   ========================================= */
.woocommerce-MyAccount-content {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    min-height: 400px;
}

/* Welcome Message Styling */
.woocommerce-MyAccount-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.woocommerce-MyAccount-content a {
    color: #008f8f;
    font-weight: 600;
    text-decoration: none;
}

/* Headings */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-family: Georgia, serif;
    color: #071124;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 28px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* =========================================
   4. ORDERS TABLE (Modern Styling)
   ========================================= */
table.my_account_orders {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* Space between rows */
    font-size: 14px;
}

table.my_account_orders thead th {
    text-align: left;
    padding: 10px 20px;
    color: #888;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: none;
}

/* Order Rows */
table.my_account_orders tr.order {
    background: #f8fafc;
    transition: transform 0.2s;
}
table.my_account_orders tr.order:hover {
    transform: scale(1.01);
    background: #f1f5f9;
}

table.my_account_orders td {
    padding: 20px;
    vertical-align: middle;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    color: #333;
    font-weight: 600;
}

table.my_account_orders td:first-child { border-left: 1px solid #eee; border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
table.my_account_orders td:last-child { border-right: 1px solid #eee; border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

/* View Button */
table.my_account_orders .woocommerce-button {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}
table.my_account_orders .woocommerce-button:hover {
    background: #008f8f;
    border-color: #008f8f;
    color: #fff;
}

/* Status Badges (The "Pill" look) */
.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
}

/* =========================================
   5. ADDRESSES GRID
   ========================================= */
.u-columns.woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.woocommerce-Address {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.woocommerce-Address-title h3 {
    font-size: 20px;
    border: none;
    padding: 0;
    margin-bottom: 15px;
}

.woocommerce-Address-title .edit {
    float: right;
    font-size: 12px;
    background: #008f8f;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
}

/* =========================================
   6. FORMS (Login/Register/Edit Details)
   ========================================= */
.woocommerce-form-row {
    margin-bottom: 20px;
}
.woocommerce-Input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}
.woocommerce-Input:focus {
    border-color: #008f8f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 143, 143, 0.1);
}
fieldset {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
legend {
    font-weight: 700;
    color: #008f8f;
    padding: 0 10px;
}