/* ==========MY ACCOUNT PAGE STYLES */

/* Main container layout */
body.woocommerce-account .woocommerce {
    display: flex;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Page title styling */
body.woocommerce-account h1 {
    color: #1c3a4d;
    font-size: 42px;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    background: linear-gradient(135deg, #1c3a4d 0%, #2c5a7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.woocommerce-account h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #A68A3D, transparent);
}

/* Navigation sidebar */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 25%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 20px;
    height: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

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

body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.entry-content .woocommerce-MyAccount-navigation > ul {
    padding: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: #4a5568;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Add icons to navigation items */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a:before,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a:before,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--wc-downloads a:before,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads a:before,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a:before,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a:before,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a:before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect></svg>');
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a:before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 11l3 3L22 4"></path><path d="M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"></path></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 11l3 3L22 4"></path><path d="M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"></path></svg>');
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--wc-downloads a:before,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads a:before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>');
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a:before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>');
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a:before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>');
}

/* Hover state for navigation items */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(212, 175, 55, 0.08);
    color: #9b8a3a;
    padding-left: 30px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover:before {
    transform: translateX(3px);
}

/* Active state for current page */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(184, 163, 71, 0.1) 100%);
    color: #9b8a3a;
    font-weight: 600;
    border-left: 3px solid #A68A3D;
}

/* Content area */
body.woocommerce-account .woocommerce-MyAccount-content {
    width: 73%;
    background: white;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

/* Dashboard content styling */
body.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type {
    font-size: 18px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 25px;
    padding: 25px;
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid #A68A3D;
    border-radius: 8px;
}

body.woocommerce-account .woocommerce-MyAccount-content p a {
    color: #9b8a3a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

body.woocommerce-account .woocommerce-MyAccount-content p a:hover {
    color: #A68A3D;
    border-bottom-color: #A68A3D;
}

/* Orders table styling */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table,
body.woocommerce-account .woocommerce-MyAccount-content .shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

body.woocommerce-account .woocommerce-orders-table thead,
body.woocommerce-account .shop_table thead {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(184, 163, 71, 0.05) 100%);
}

body.woocommerce-account .woocommerce-orders-table thead th,
body.woocommerce-account .shop_table thead th {
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1c3a4d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

body.woocommerce-account .woocommerce-orders-table tbody tr,
body.woocommerce-account .shop_table tbody tr {
    transition: all 0.3s ease;
}

body.woocommerce-account .woocommerce-orders-table tbody tr:hover,
body.woocommerce-account .shop_table tbody tr:hover {
    background: rgba(212, 175, 55, 0.03);
}

body.woocommerce-account .woocommerce-orders-table tbody td,
body.woocommerce-account .shop_table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    color: #4a5568;
    font-size: 15px;
}

/* Order status badges */
body.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
    font-weight: 600;
}

body.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-status .order-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    text-transform: capitalize;
}

/* View order button */
body.woocommerce-account .woocommerce-orders-table .woocommerce-button,
body.woocommerce-account .woocommerce-orders-table .button {
    background: linear-gradient(135deg, #A68A3D 0%, #b8a347 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

body.woocommerce-account .woocommerce-orders-table .woocommerce-button:hover,
body.woocommerce-account .woocommerce-orders-table .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

body.woocommerce-account .woocommerce-Address {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

body.woocommerce-account .woocommerce-Address-title h2 {
    font-size: 24px;
    margin: 0px;
}

body.woocommerce-account .woocommerce-Address:hover {
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

body.woocommerce-account .woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.15);
}

body.woocommerce-account .woocommerce-Address-title h3 {
    color: #1c3a4d;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

body.woocommerce-account .woocommerce-Address-title a.edit {
    color: #9b8a3a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

body.woocommerce-account .woocommerce-Address-title a.edit:hover {
    background: #A68A3D;
    color: white;
}

body.woocommerce-account .woocommerce-Address address {
    font-style: normal;
    line-height: 1.8;
    color: #4a5568;
}

/* Account details form styling */
body.woocommerce-account .woocommerce-EditAccountForm fieldset {
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    background: rgba(212, 175, 55, 0.02);
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset legend {
    padding: 0 15px;
    color: #1c3a4d;
    font-size: 18px;
    font-weight: 600;
}

body.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row {
    margin-bottom: 20px;
}

body.woocommerce-account .woocommerce-EditAccountForm label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 500;
    font-size: 14px;
}

body.woocommerce-account .woocommerce-EditAccountForm input[type="text"],
body.woocommerce-account .woocommerce-EditAccountForm input[type="email"],
body.woocommerce-account .woocommerce-EditAccountForm input[type="password"],
body.woocommerce-account .woocommerce-EditAccountForm input[type="tel"],
body.woocommerce-account .woocommerce-EditAccountForm select,
body.woocommerce-account .woocommerce-EditAccountForm textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    background: white;
    font-size: 15px;
    color: #2d3748;
    transition: all 0.3s ease;
}

body.woocommerce-account .woocommerce-EditAccountForm input:focus,
body.woocommerce-account .woocommerce-EditAccountForm select:focus,
body.woocommerce-account .woocommerce-EditAccountForm textarea:focus {
    outline: none;
    border-color: #A68A3D;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

body.woocommerce-account .woocommerce-EditAccountForm em {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 13px;
    font-style: normal;
}


/* Save button styling */
body.woocommerce-account .woocommerce-EditAccountForm button[type="submit"],
body.woocommerce-account .woocommerce-Button {
    background: linear-gradient(135deg, #A68A3D 0%, #b8a347 100%);
    color: #fff !important;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


body.woocommerce-account .woocommerce-EditAccountForm button[type="submit"]:hover,
body.woocommerce-account .woocommerce-Button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Downloads section */
body.woocommerce-account .woocommerce-MyAccount-downloads {
    background: rgba(212, 175, 55, 0.05);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

body.woocommerce-account .woocommerce-MyAccount-downloads .woocommerce-Message {
    color: #4a5568;
    font-size: 16px;
}


/* Loading states */
body.woocommerce-page .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
}
