/* My Account base wrapper */
body.woocommerce-account .woocommerce {
    max-width: 1180px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* Logged-in account layout only */
body.woocommerce-account.logged-in .woocommerce {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
/* Login / Register page */
body.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 980px;
    padding: 20px;
}

body.woocommerce-account:not(.logged-in) #customer_login {
    display: grid !important;
    gap: 32px;
    align-items: start;
}

body.woocommerce-account:not(.logged-in) #customer_login .u-column1,
body.woocommerce-account:not(.logged-in) #customer_login .u-column2 {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
}

body.woocommerce-account:not(.logged-in) #customer_login h2 {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

body.woocommerce-account:not(.logged-in) form.login,
body.woocommerce-account:not(.logged-in) form.register {
    min-height: auto !important;
    margin: 0 !important;
    padding: 28px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 18px !important;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

body.woocommerce-account:not(.logged-in) form.login p,
body.woocommerce-account:not(.logged-in) form.register p {
    margin: 0 0 18px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

body.woocommerce-account:not(.logged-in) form.login label,
body.woocommerce-account:not(.logged-in) form.register label {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

body.woocommerce-account:not(.logged-in) form.login input.input-text,
body.woocommerce-account:not(.logged-in) form.register input.input-text {
    width: 100% !important;
    min-height: 48px;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    padding: 12px 14px;
    background: #ffffff;
}

body.woocommerce-account:not(.logged-in) form.login input.input-text:focus,
body.woocommerce-account:not(.logged-in) form.register input.input-text:focus {
    border-color: var(--e-global-color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 186, 0.14);
}

body.woocommerce-account:not(.logged-in) .password-input {
    display: block;
    width: 100%;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme,
body.woocommerce-account:not(.logged-in) #user_newsletter_field label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 500 !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme input,
body.woocommerce-account:not(.logged-in) #user_newsletter_field input {
    width: auto !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-button,
body.woocommerce-account:not(.logged-in) .woocommerce-Button {
    background: var(--e-global-color-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 13px 22px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

body.woocommerce-account:not(.logged-in) .lost_password {
    margin-top: 18px !important;
}

body.woocommerce-account:not(.logged-in) .lost_password a,
body.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text a {
    color: var(--e-global-color-primary) !important;
    font-weight: 700;
    text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
    body.woocommerce-account:not(.logged-in) .woocommerce {
        padding: 32px 16px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login h2 {
        font-size: 24px;
    }

    body.woocommerce-account:not(.logged-in) form.login,
    body.woocommerce-account:not(.logged-in) form.register {
        padding: 22px !important;
    }
}

/* Force correct Woo layout */
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
    grid-column: 1;
    grid-row: 1;
    float: none !important;
    width: 100% !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
    grid-column: 2;
    grid-row: 1;
    float: none !important;
    width: 100% !important;
    min-width: 0;
}

/* Navigation card */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

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

body.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
    border-bottom: 1px solid #eef0f3;
}

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

/* Remove bad emoji icons */
body.woocommerce-account .woocommerce-MyAccount-navigation a::before {
    content: none !important;
}

/* Menu links */
body.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 15px 16px;
    border-radius: 12px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
    transition: 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background: #f4f7fb;
    color: var(--e-global-color-primary) !important;
}

/* Active item */
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    background: var(--e-global-color-primary) !important;
    color: #ffffff !important;
}

/* Content card */
body.woocommerce-account .woocommerce-MyAccount-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

/* Text */
body.woocommerce-account .woocommerce-MyAccount-content p {
    margin: 0 0 18px;
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

body.woocommerce-account .woocommerce-MyAccount-content strong {
    color: #0f172a;
}

body.woocommerce-account .woocommerce-MyAccount-content a {
    color: var(--e-global-color-primary) !important;
    font-weight: 700;
    text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active{
    background:unset !important;
}

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

/* WooCommerce notices */
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin: 0 0 22px !important;
    padding: 18px 20px !important;
    border: 1px solid #dbeafe !important;
    border-radius: 16px;
    background: #eff6ff;
    color: #0f172a;
    box-shadow: none;
}

body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-error::before {
    display: none;
}

/* Buttons */
body.woocommerce-account .woocommerce a.button,
body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce .button,
body.woocommerce-account .woocommerce-Button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--e-global-color-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

body.woocommerce-account .woocommerce a.button:hover,
body.woocommerce-account .woocommerce button.button:hover,
body.woocommerce-account .woocommerce .button:hover,
body.woocommerce-account .woocommerce-Button:hover {
    background: var(--e-global-color-primary) !important;
    color: #ffffff !important;
}

/* Forms */
body.woocommerce-account .woocommerce form .form-row input.input-text,
body.woocommerce-account .woocommerce form .form-row textarea,
body.woocommerce-account .woocommerce form .form-row select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    padding: 12px 14px;
    background: #ffffff;
}

body.woocommerce-account .woocommerce form .form-row input.input-text:focus,
body.woocommerce-account .woocommerce form .form-row textarea:focus {
    border-color: var(--e-global-color-primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 186, 0.14);
}

/* Tables */
body.woocommerce-account table.shop_table {
    border: 1px solid #e5e7eb !important;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

body.woocommerce-account table.shop_table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
}

body.woocommerce-account table.shop_table td,
body.woocommerce-account table.shop_table th {
    padding: 16px;
    border-color: #eef0f3 !important;
}

/* Mobile */
@media (max-width: 768px) {
    body.woocommerce-account.logged-in .woocommerce {
        display: block !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 22px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content {
        padding: 24px 18px;
    }

    body.woocommerce-account .woocommerce-info,
    body.woocommerce-account .woocommerce-message,
    body.woocommerce-account .woocommerce-error {
        display: block;
    }

    body.woocommerce-account .woocommerce-info .button,
    body.woocommerce-account .woocommerce-message .button,
    body.woocommerce-account .woocommerce-error .button {
        margin-top: 14px;
        width: 100%;
    }
}