/* ==========================================================================
   WooCommerce My Account Page Custom Styling
   Matches the premium aesthetic of Max Themes
   ========================================================================== */

/* Main wrapper layout */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    /* gap: 40px; */
    /* margin-top: 120px; */
    /* margin-bottom: 120px; */
    /* max-width: 1200px; */
    /* margin-left: 0; */
    /* margin-right: auto; */
    /* padding: 0 24px; */
    /* justify-content: flex-start; */
}

/* Sidebar Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 280px;
    width: 280px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 24px;
    align-self: flex-start;
}

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

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

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

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    font-size: 15px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #f8f9fa;
    color: #6868F7;
    transform: translateX(4px);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(90deg, #6868F7 0%, #06C8ED 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(104, 104, 247, 0.3);
}

/* Main Content Area */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 40px;
    margin-left: 30px;
}

.woocommerce-account .woocommerce-MyAccount-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: #6868F7;
    text-decoration: none;
    font-weight: 600;
}

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

/* Tables (Orders, Downloads) */
.woocommerce-account table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    margin-top: 20px;
}

.woocommerce-account table.shop_table th {
    background: #f8f9fa;
    padding: 16px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #eaeaea;
    text-align: left;
}

.woocommerce-account table.shop_table th:first-child {
    border-top-left-radius: 8px;
}

.woocommerce-account table.shop_table th:last-child {
    border-top-right-radius: 8px;
}

.woocommerce-account table.shop_table td {
    padding: 16px;
    border-bottom: 1px solid #eaeaea;
    color: #4a4a4a;
    vertical-align: middle;
}

.woocommerce-account table.shop_table .button {
    background: #F1F3F5;
    color: #1a1a1a;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.woocommerce-account table.shop_table .button:hover {
    background: #e2e6ea;
    text-decoration: none;
}

/* Addresses */
.woocommerce-account .u-columns.col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .woocommerce-account .u-columns.col2-set {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
        flex: none;
    }
    
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 24px;
    }
}

.woocommerce-account .woocommerce-Address {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.woocommerce-account .woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.woocommerce-account .woocommerce-Address-title h3 {
    margin: 0;
    font-size: 18px;
    word-break: break-word;
}

.woocommerce-account .woocommerce-Address-title .edit {
    font-size: 14px;
    flex-shrink: 0;
    white-space: nowrap;
}

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

/* Forms */
.woocommerce-account .woocommerce-MyAccount-content form .form-row {
    margin-bottom: 24px;
}

.woocommerce-account .woocommerce-MyAccount-content form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.woocommerce-account .woocommerce-MyAccount-content form input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 15px;
    color: #1a1a1a;
    transition: 0.3s;
}

.woocommerce-account .woocommerce-MyAccount-content form input:focus {
    border-color: #6868F7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(104, 104, 247, 0.15);
}

.woocommerce-account .woocommerce-MyAccount-content form button[type="submit"] {
    background: linear-gradient(90deg, #6868F7 0%, #06C8ED 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}

.woocommerce-account .woocommerce-MyAccount-content form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(104, 104, 247, 0.4);
}

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    background: #f8f9fa;
    border-top: 3px solid #6868F7;
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    list-style: none;
    color: #1a1a1a;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* Hide broken WooCommerce default icons */
.woocommerce-message::before, 
.woocommerce-info::before, 
.woocommerce-error::before {
    content: none !important;
    display: none !important;
}

/* Buttons inside notices (like "Browse products") */
.woocommerce-message .button, 
.woocommerce-info .button, 
.woocommerce-error .button {
    background: #F1F3F5;
    color: #1a1a1a;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
    text-decoration: none;
    margin: 0;
    float: none !important;
}

.woocommerce-message .button:hover, 
.woocommerce-info .button:hover, 
.woocommerce-error .button:hover {
    background: #e2e6ea;
}

.woocommerce-error {
    border-top-color: #ff3b30;
}
