/* My Account Page Styles */

/* Hide the page title on My Account page */
.woocommerce-account .entry-title,
.woocommerce-account .page-title,
.woocommerce-account h1.entry-title {
    display: none !important;
}

/* Add background image to my account page */
.woocommerce-account .ga-page-content,
.woocommerce-account .site-content,
.woocommerce-account .entry-content {
    position: relative;
}

/* Background image for the entire my account page */
.woocommerce-account .ga-page-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/wp-content/uploads/andscape_Australia.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

/* Remove overlay to show more of the background image */
/* .woocommerce-account .ga-page-content::after - removed for better visibility */

/* Make the article container more transparent */
.woocommerce-account .ga-page-article {
    background: rgba(255, 255, 255, 0.7) !important;
}

/* Ensure content container has proper background and padding */
.woocommerce-account .woocommerce {
    background: transparent;
    padding: 20px;
    margin: 20px auto;
    max-width: 1440px;
    position: relative;
    z-index: 1;
}

/* Style the navigation tabs - Horizontal Layout */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow-x: auto; /* Allow horizontal scroll on small screens */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    width: 100% !important;
    float: none !important;
}

/* Override any green background colors on navigation */
.woocommerce-account .woocommerce-MyAccount-navigation a,
.woocommerce-account .woocommerce-MyAccount-navigation-link a {
    background-color: transparent !important;
    background: transparent !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap; /* Keep items in one line */
    list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    border-right: 1px solid #e0e0e0;
    flex-shrink: 0; /* Prevent items from shrinking */
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
    border-right: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    padding: 15px 20px;
    display: block;
    color: #333 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
    font-weight: 500;
    background: transparent;
    border: 5px solid transparent;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background: #003c71 !important;
    color: white !important;
    border: 5px solid #003c71;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active > a {
    background: #003c71 !important;
    background-color: #003c71 !important;
    color: white !important; /* Force white text on active state */
    border: 5px solid #003c71 !important;
}

/* Ultra-specific overrides to fix green button issue */
body.woocommerce-account .woocommerce-MyAccount-navigation li a {
    background-color: transparent !important;
    color: #333 !important;
    border: 5px solid transparent;
    border-radius: 10px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background-color: #003c71 !important;
    color: #ffffff !important;
    border: 5px solid #003c71 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation-link--orders.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation-link--payment-methods.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout.is-active a {
    background-color: #003c71 !important;
    color: #ffffff !important;
    border: 5px solid #003c71 !important;
}

/* Style the content area */
.woocommerce-account .woocommerce-MyAccount-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100% !important;
    float: none !important;
}

/* Login/Register forms styling - only when NOT inside columns */
.woocommerce-account > .woocommerce-form-login,
.woocommerce-account > .woocommerce-form-register {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.woocommerce-account #customer_login h2 {
    color: #003c71;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #003c71;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Additional info text styling */
.woocommerce-account #customer_login p:not(.form-row) {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Ensure proper spacing for two-column layout */
.woocommerce-account .u-columns,
.woocommerce-account .col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: transparent;
    width: 100%;
    margin: 0;
    clear: both;
}

/* Fix the specific customer_login columns */
.woocommerce-account #customer_login,
.woocommerce-account #customer_login.u-columns,
.woocommerce-account #customer_login.col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(255, 255, 255, 0.98);
    margin: 30px auto;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2,
.woocommerce-account #customer_login .col-1,
.woocommerce-account #customer_login .col-2 {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
}

/* Add a vertical divider between login and register */
.woocommerce-account #customer_login .col-1,
.woocommerce-account #customer_login .u-column1 {
    position: relative;
    padding-right: 40px;
}

.woocommerce-account #customer_login .col-1:after,
.woocommerce-account #customer_login .u-column1:after {
    content: '';
    position: absolute;
    right: -30px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(to bottom, 
        rgba(22, 65, 112, 0), 
        rgba(22, 65, 112, 0.1) 20%, 
        rgba(22, 65, 112, 0.1) 80%, 
        rgba(22, 65, 112, 0));
}

.woocommerce-account #customer_login .col-2,
.woocommerce-account #customer_login .u-column2 {
    padding-left: 10px;
}

/* Remove any default WooCommerce column styles */
.woocommerce-account .col2-set .col-1,
.woocommerce-account .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
}

/* Clear any floats that might be interfering */
.woocommerce-account #customer_login:before,
.woocommerce-account #customer_login:after {
    content: none !important;
    display: none !important;
}

/* Ensure forms inside columns don't have extra backgrounds */
.woocommerce-account .u-column1 .woocommerce-form-login,
.woocommerce-account .u-column2 .woocommerce-form-register,
.woocommerce-account .col-1 .woocommerce-form-login,
.woocommerce-account .col-2 .woocommerce-form-register {
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
    padding:20px;
}

/* Tablet responsiveness */
@media (max-width: 992px) {
    .woocommerce-account #customer_login,
    .woocommerce-account #customer_login.u-columns,
    .woocommerce-account #customer_login.col2-set {
        padding: 40px;
        gap: 40px;
    }

    .woocommerce-account #customer_login .col-1,
    .woocommerce-account #customer_login .u-column1 {
        padding-right: 20px;
    }

    .woocommerce-account #customer_login .col-2,
    .woocommerce-account #customer_login .u-column2 {
        padding-left: 20px;
    }

    .woocommerce-account #customer_login .col-1:after,
    .woocommerce-account #customer_login .u-column1:after {
        right: -20px;
    }

    /* Navigation adjustments for tablets */
    .woocommerce-account .woocommerce-MyAccount-navigation li a {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        padding: 10px;
        margin: 10px;
    }

    /* Stack navigation vertically on mobile - full width buttons */
    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 15px;
        padding: 10px !important;   /* inner gutter so buttons sit inside the card */
        overflow-x: visible;        /* stacked vertically: no horizontal scroll/clip */
        box-sizing: border-box;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li {
        width: 100%;
        margin: 0 0 8px 0;          /* even vertical spacing, no side offset */
        text-align: center;
        border-right: none;         /* remove the horizontal-layout divider */
        box-sizing: border-box;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
        margin-bottom: 0;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li a {
        padding: 12px 15px;
        font-size: 14px;
        width: 100%;
        text-align: center;
        border: 3px solid transparent;
        /* border-box keeps width:100% + padding inside the container so the
           rounded right corners aren't clipped by the card edge */
        box-sizing: border-box;
        display: block;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation li a {
        border: 3px solid transparent;
        border-radius: 10px;
        text-align: center;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
    body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
        border: 3px solid #003c71;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
    body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
        border: 3px solid #003c71 !important;
        border-radius: 10px;
    }

    .woocommerce-account #customer_login,
    .woocommerce-account #customer_login.u-columns,
    .woocommerce-account #customer_login.col2-set {
        grid-template-columns: 1fr !important;
        gap: 0;
        padding: 20px;
        margin: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 15px;
    }
    
    /* Remove side padding and add bottom border for first column */
    .woocommerce-account #customer_login .col-1,
    .woocommerce-account #customer_login .u-column1 {
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(22, 65, 112, 0.15);
    }
    
    /* Hide vertical divider on mobile */
    .woocommerce-account #customer_login .col-1:after,
    .woocommerce-account #customer_login .u-column1:after {
        display: none;
    }
    
    /* Remove left padding for second column */
    .woocommerce-account #customer_login .col-2,
    .woocommerce-account #customer_login .u-column2 {
        padding-left: 0;
        padding-top: 0;
    }
    
    /* Adjust heading size for mobile */
    .woocommerce-account #customer_login h2 {
        font-size: 22px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    /* Adjust button for full width on mobile */
    .woocommerce-account #customer_login .woocommerce-Button,
    .woocommerce-account #customer_login .button {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
    
    /* Stack remember me and login button properly */
    .woocommerce-account #customer_login .form-row-wide {
        display: block;
    }
    
    .woocommerce-account #customer_login .woocommerce-form-login__rememberme {
        margin-left: 0;
        margin-bottom: 12px;
        width: auto !important;
        display: block;
    }
    
    /* Ensure forms inside columns have proper padding on mobile */
    .woocommerce-account .u-column1 .woocommerce-form-login,
    .woocommerce-account .u-column2 .woocommerce-form-register,
    .woocommerce-account .col-1 .woocommerce-form-login,
    .woocommerce-account .col-2 .woocommerce-form-register {
        padding: 10px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .woocommerce-account #customer_login,
    .woocommerce-account #customer_login.u-columns,
    .woocommerce-account #customer_login.col2-set {
        padding: 15px;
        margin: 5px;
        border-radius: 8px;
        width: calc(100% - 10px);
    }

    .woocommerce-account #customer_login h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .woocommerce-account #customer_login input[type="text"],
    .woocommerce-account #customer_login input[type="password"],
    .woocommerce-account #customer_login input[type="email"] {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 6px;
    }

    .woocommerce-account #customer_login label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .woocommerce-account #customer_login p:not(.form-row) {
        font-size: 14px;
        line-height: 1.5;
    }

    .woocommerce-account #customer_login .form-row {
        margin-bottom: 16px;
    }

    .woocommerce-account #customer_login .lost_password {
        margin-top: 12px;
        text-align: center;
    }
}

/* ===========================
   Dashboard & Account Content Improvements
   =========================== */

/* Dashboard welcome message */
.woocommerce-MyAccount-content p:first-child {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

/* Dashboard links styling */
.woocommerce-MyAccount-content a:not(.button):not(.woocommerce-Button) {
    color: #003c71;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.woocommerce-MyAccount-content a:not(.button):not(.woocommerce-Button):hover {
    color: #0f2f4f;
    text-decoration: underline;
}

/* Improve button placement and spacing */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content .woocommerce-Button {
    display: inline-block;
    margin: 8px 12px 8px 0;
    background: #003c71;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content .woocommerce-Button:hover {
    background: #0f2f4f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(22, 65, 112, 0.2);
}

/* Orders table improvements */
.woocommerce-orders-table {
    margin-top: 20px;
    border-collapse: collapse;
    width: 100%;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-orders-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.woocommerce-orders-table tr:hover {
    background: #f9f9f9;
}

.woocommerce-orders-table .button,
.woocommerce-orders-table .woocommerce-Button {
    margin: 4px 8px 4px 0;
    padding: 8px 16px;
    font-size: 14px;
}

/* Addresses section: stack Billing + Shipping full width.
   WooCommerce's bundled CSS floats .col-1 left and .col-2 right at ~48%
   each and adds a ::before/::after clearfix to .u-columns. We force the
   container to a flex column and explicitly neutralise the floats so the
   cards sit one above the other at full width. Using flex (not grid) here
   so the ::before/::after clearfix pseudo-elements don't end up rendered
   as empty grid tracks above/below the cards. */
.woocommerce-account .woocommerce-Addresses,
.woocommerce-account .u-columns.woocommerce-Addresses {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Hide the inherited clearfix pseudo-elements — they're not needed when
   the parent is flex/column and would otherwise show as empty rows. */
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after {
    content: none !important;
    display: none !important;
}

/* Neutralise the default .col-1/.col-2 float + 48% width so each card
   takes the full width of the flex container. */
.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
.woocommerce-account .woocommerce-Addresses .col-1,
.woocommerce-account .woocommerce-Addresses .col-2,
.woocommerce-account .woocommerce-Addresses .u-column1,
.woocommerce-account .woocommerce-Addresses .u-column2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.woocommerce-Address {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.woocommerce-Address-title h3 {
    margin-top: 0;
    color: #003c71;
    font-size: 18px;
    margin-bottom: 12px;
}

.woocommerce-Address address {
    font-style: normal;
    line-height: 1.6;
    color: #555;
    margin-bottom: 12px;
}

/* Payment methods section */
.woocommerce-PaymentMethods {
    margin-top: 20px;
}

.woocommerce-PaymentMethod {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
}

/* Account details form */
.woocommerce-EditAccountForm {
    max-width: 600px;
}

.woocommerce-EditAccountForm .form-row {
    margin-bottom: 16px;
}

.woocommerce-EditAccountForm label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.woocommerce-EditAccountForm input:focus {
    border-color: #003c71;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 65, 112, 0.1);
}

/* Downloads section */
.woocommerce-MyAccount-downloads table {
    width: 100%;
    margin-top: 20px;
}

.woocommerce-MyAccount-downloads .button {
    margin: 4px;
}

/* Responsive adjustments for dashboard */
@media (max-width: 768px) {
    .woocommerce-Addresses {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .woocommerce-orders-table {
        font-size: 14px;
    }

    .woocommerce-orders-table th,
    .woocommerce-orders-table td {
        padding: 8px;
    }

    .woocommerce-MyAccount-content .button,
    .woocommerce-MyAccount-content .woocommerce-Button {
        display: block;
        width: 100%;
        margin: 8px 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Stack tables vertically on small screens */
    .woocommerce-orders-table thead {
        display: none;
    }

    .woocommerce-orders-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 10px;
    }

    .woocommerce-orders-table td {
        display: block;
        text-align: right;
        padding: 8px 0;
        border: none;
    }

    .woocommerce-orders-table td:before {
        content: attr(data-title);
        float: left;
        font-weight: 600;
        color: #333;
    }
}

/* Ensure page has minimum height */
.woocommerce-account .ga-page-content {
    min-height: 100vh;
    position: relative;
}

/* Style form inputs */
.woocommerce-account #customer_login input[type="text"],
.woocommerce-account #customer_login input[type="password"],
.woocommerce-account #customer_login input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    background: #fafafa;
    transition: all 0.3s ease;
    margin-top: 4px;
    box-sizing: border-box;
}

.woocommerce-account #customer_login input[type="text"]:focus,
.woocommerce-account #customer_login input[type="password"]:focus,
.woocommerce-account #customer_login input[type="email"]:focus {
    border-color: #003c71;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 65, 112, 0.08);
    background: white;
}

/* Style labels */
.woocommerce-account #customer_login label:not(.woocommerce-form__label-for-checkbox) {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Style form rows */
.woocommerce-account #customer_login .form-row {
    margin-bottom: 16px;
}

/* Password input wrapper */
.woocommerce-account #customer_login .password-input {
    position: relative;
    display: block;
    margin-top: 8px;
}

.woocommerce-account #customer_login .password-input input[type="password"],
.woocommerce-account #customer_login .password-input input[type="text"] {
    padding-right: 45px !important;
}

.woocommerce-account #customer_login .show-password-input {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    font-size: 20px;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-account #customer_login .show-password-input:hover {
    color: #003c71;
}

.woocommerce-account #customer_login .show-password-input:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-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" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

/* Style buttons */
.woocommerce-account #customer_login .woocommerce-Button,
.woocommerce-account #customer_login .button {
    background: #003c71;
    color: white !important;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(22, 65, 112, 0.2);
    margin-top: 8px;
}

.woocommerce-account #customer_login .woocommerce-Button:hover,
.woocommerce-account #customer_login .button:hover {
    background: #0f2f4f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(22, 65, 112, 0.3);
}

/* Remember me checkbox styling */
.woocommerce-account #customer_login .woocommerce-form-login__rememberme {
    display: inline-block;
    font-size: 14px;
    color: #666;
    margin: 12px 20px 12px 0;
}

.woocommerce-account #customer_login .woocommerce-form-login__rememberme label {
    margin: 0;
    font-weight: normal;
    display: inline;
    cursor: pointer;
}

.woocommerce-account #customer_login .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 6px 0 0 !important;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    top: -1px;
    display: inline-block !important;
}

/* Lost password link */
.woocommerce-account #customer_login .lost_password {
    margin-top: 12px;
}

.woocommerce-account #customer_login .lost_password a {
    color: #00a77e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.woocommerce-account #customer_login .lost_password a:hover {
    color: #008a6a;
    text-decoration: underline;
}

/* Privacy policy text */
.woocommerce-account #customer_login .woocommerce-privacy-policy-text {
    margin-top: 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.woocommerce-account #customer_login .woocommerce-privacy-policy-text a {
    color: #00a77e;
    text-decoration: none;
}

.woocommerce-account #customer_login .woocommerce-privacy-policy-text a:hover {
    text-decoration: underline;
}

/* Fix form row with remember me and button */
.woocommerce-account #customer_login .form-row.form-row-wide {
    display: block !important;
}

.woocommerce-account #customer_login .form-row.form-row-wide .woocommerce-Button,
.woocommerce-account #customer_login .form-row.form-row-wide .button {
    margin-top: 12px;
    display: inline-block;
}

/* Ensure proper spacing for all form elements */
.woocommerce-account #customer_login .woocommerce-form > p:first-child {
    margin-top: 0;
}

.woocommerce-account #customer_login .woocommerce-form > *:last-child {
    margin-bottom: 0;
}

/* Additional responsive fixes for better alignment */
@media (max-width: 768px) {
    /* Ensure the login/register container takes full width on mobile */
    .woocommerce-account #customer_login {
        width: 100% !important;
        max-width: none !important;
    }
    
    /* Fix input and button alignment */
    .woocommerce-account #customer_login .form-row input {
        display: block;
        width: 100% !important;
        margin: 8px 0 0 0 !important;
    }
    
    /* Center the Lost Password link on mobile */
    .woocommerce-account #customer_login .lost_password {
        text-align: center;
        width: 100%;
        display: block;
    }
    
    /* Ensure proper spacing between login and register sections */
    .woocommerce-account #customer_login .col-1,
    .woocommerce-account #customer_login .u-column1 {
        margin-bottom: 30px !important;
    }
    
    /* Fix checkbox alignment on mobile */
    .woocommerce-account #customer_login .woocommerce-form-login__rememberme {
        display: block;
        margin: 10px 0;
        width: auto !important;
    }
    
    .woocommerce-account #customer_login .woocommerce-form-login__rememberme input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;
        margin-right: 6px !important;
        vertical-align: middle;
        display: inline-block !important;
    }
    
    .woocommerce-account #customer_login .woocommerce-form-login__rememberme label {
        display: inline;
        line-height: 1.2;
    }
    
    /* Ensure buttons are properly styled on mobile */
    .woocommerce-account #customer_login button[type="submit"] {
        display: block;
        width: 100% !important;
        margin-top: 16px;
    }
}

/* Portrait mode specific fixes */
@media (max-width: 768px) and (orientation: portrait) {
    .woocommerce-account #customer_login {
        padding: 20px 15px !important;
    }
    
    /* Ensure the form fields don't overflow */
    .woocommerce-account #customer_login .woocommerce-form-login,
    .woocommerce-account #customer_login .woocommerce-form-register {
        width: 95%;
        overflow: hidden;
    }
}

/* Fix for very narrow screens */
@media (max-width: 360px) {
    .woocommerce-account #customer_login {
        padding: 15px 10px !important;
    }
    
    .woocommerce-account #customer_login h2 {
        font-size: 18px;
    }
    
    .woocommerce-account #customer_login input[type="text"],
    .woocommerce-account #customer_login input[type="password"],
    .woocommerce-account #customer_login input[type="email"] {
        padding: 10px 12px;
    }
    
    .woocommerce-account #customer_login .button {
        padding: 12px 20px;
        font-size: 14px;
    }
}
/* Hide WooCommerce default eye icon - keep only the theme one */
.woocommerce-account #customer_login .show-password-input::before {
    display: none !important;
}

/* Toggle eye icon when password is visible */
.woocommerce-account #customer_login .show-password-input.display-password::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>');
}

/* ==========================================================================
   Add Payment Method — credit card brand icons
   --------------------------------------------------------------------------
   Eway's own CSS only scopes its icon layout to `#payment .payment_methods`
   (the checkout page). On /my-account/add-payment-method/ the wrapper is
   different, so the icons fall back to the theme default and stack
   vertically. Lay them out as an inline row instead.
   ========================================================================== */
.woocommerce-account .woocommerce-PaymentMethods-form .payment_methods li img.eway-icon,
.woocommerce-account form#add_payment_method .payment_methods li img.eway-icon {
    display: inline-block;
    vertical-align: middle;
    max-width: 40px;
    height: auto;
    margin: 0 4px 0 0;
    padding: 0;
    float: none;
}

.woocommerce-account .woocommerce-PaymentMethods-form .payment_methods li label,
.woocommerce-account form#add_payment_method .payment_methods li label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-left: 6px;
}
