/* WooCommerce My Account / Subscriptions portal */
body.woocommerce-account,
body.woocommerce-account .woocommerce,
body.woocommerce-account .elementor-widget-woocommerce-my-account {
    font-family: "Poppins", "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}

body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce {
    font-size: 15px;
    line-height: 1.55;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3,
body.woocommerce-account .woocommerce-order-details__title,
body.woocommerce-account .woocommerce-column__title,
body.woocommerce-account .fsb-subscription-details__title,
body.woocommerce-account .woocommerce-Address-title,
body.woocommerce-account .entry-title,
body.woocommerce-account h1.entry-title {
    font-family: inherit;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

/* ------------------------------------------------------------------ */
/* Side-by-side: nav LEFT, content RIGHT (overrides Elementor stack) */
/* ------------------------------------------------------------------ */
@media (min-width: 900px) {
    body.woocommerce-account .woocommerce,
    body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce,
    body.woocommerce-account .e-my-account-tab > .woocommerce,
    .elementor-widget-woocommerce-my-account .woocommerce {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 28px !important;
        width: 100% !important;
    }

    body.woocommerce-account .woocommerce::before,
    body.woocommerce-account .woocommerce::after,
    body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce::before,
    body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce::after {
        display: none !important;
        content: none !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation,
    body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation,
    .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation {
        float: none !important;
        clear: none !important;
        display: block !important;
        flex: 0 0 240px !important;
        width: 240px !important;
        max-width: 240px !important;
        min-width: 220px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: flex-start !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-content,
    body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content,
    .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content {
        float: none !important;
        clear: none !important;
        display: block !important;
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Elementor Pro vertical-tabs variant → force horizontal shell */
    body.woocommerce-account .e-my-account-tabs,
    .elementor-widget-woocommerce-my-account .e-my-account-tabs {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 28px !important;
    }
    body.woocommerce-account .e-my-account-tabs__nav,
    .elementor-widget-woocommerce-my-account .e-my-account-tabs__nav {
        flex: 0 0 240px !important;
        width: 240px !important;
        max-width: 240px !important;
    }
    body.woocommerce-account .e-my-account-tabs__content,
    .elementor-widget-woocommerce-my-account .e-my-account-tabs__content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
}

/* Sidebar nav look */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    margin: 0 0 1.5rem;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul,
.elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 10px !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #eceff3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.05);
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li::marker {
    content: "" !important;
    display: none !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation a,
.elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 11px 14px;
    border-radius: 8px;
    color: #374151 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation a:focus {
    background: #fff1f6;
    color: #fe0265 !important;
    border-color: #ffd6e6;
    outline: none;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active > a {
    background: #fe0265 !important;
    color: #fff !important;
    border-color: #fe0265 !important;
}

/* Content area */
body.woocommerce-account .woocommerce-MyAccount-content,
.elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.05);
    box-sizing: border-box;
}
body.woocommerce-account .woocommerce-MyAccount-content a {
    color: #fe0265;
    text-decoration: none;
    font-weight: 600;
}
body.woocommerce-account .woocommerce-MyAccount-content a:hover {
    text-decoration: underline;
}

/* Tables */
body.woocommerce-account table.shop_table,
body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account .woocommerce-table--order-details,
body.woocommerce-account table.fsb_subscription_details,
body.woocommerce-account .shop_table_responsive {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    margin: 0 0 1.25rem;
    font-size: 14px;
}
body.woocommerce-account table.shop_table th,
body.woocommerce-account table.shop_table td,
body.woocommerce-account .woocommerce-orders-table th,
body.woocommerce-account .woocommerce-orders-table td,
body.woocommerce-account table.fsb_subscription_details th,
body.woocommerce-account table.fsb_subscription_details td {
    border: 0 !important;
    border-bottom: 1px solid #eef1f5 !important;
    padding: 12px 14px !important;
    vertical-align: middle;
    background: #fff;
    color: #1f2937;
    font-weight: 500;
}
body.woocommerce-account table.shop_table th,
body.woocommerce-account .woocommerce-orders-table th,
body.woocommerce-account table.fsb_subscription_details th {
    background: #f8fafc !important;
    color: #6b7280 !important;
    font-weight: 700 !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
body.woocommerce-account .woocommerce-orders-table th {
    width: auto !important;
}
body.woocommerce-account table.shop_table tr:last-child th,
body.woocommerce-account table.shop_table tr:last-child td,
body.woocommerce-account table.fsb_subscription_details tr:last-child th,
body.woocommerce-account table.fsb_subscription_details tr:last-child td {
    border-bottom: 0 !important;
}

/* Address / forms */
body.woocommerce-account .woocommerce-Address,
body.woocommerce-account .woocommerce-customer-details,
body.woocommerce-account .u-columns,
body.woocommerce-account .woocommerce-Addresses {
    margin-top: 0.5rem;
}
body.woocommerce-account .woocommerce-Address {
    border: 1px solid #e5e7eb !important;
    border-radius: 10px;
    padding: 16px 18px;
    background: #fff;
}
body.woocommerce-account .woocommerce-Address-title h3,
body.woocommerce-account .woocommerce-column__title {
    margin: 0 0 10px;
    font-size: 16px;
}
body.woocommerce-account .woocommerce-Address address {
    font-style: normal;
    line-height: 1.6;
    color: #4b5563;
}
body.woocommerce-account form .form-row {
    margin: 0 0 14px;
}
body.woocommerce-account form .form-row input.input-text,
body.woocommerce-account form .form-row textarea,
body.woocommerce-account form .form-row select,
body.woocommerce-account .woocommerce-Input {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    min-height: 42px;
    padding: 10px 12px !important;
    font-size: 14px !important;
    box-shadow: none !important;
}
body.woocommerce-account form .form-row input:focus,
body.woocommerce-account form .form-row textarea:focus,
body.woocommerce-account form .form-row select:focus {
    border-color: #fe0265 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(254, 2, 101, 0.15) !important;
}
body.woocommerce-account .button,
body.woocommerce-account button.button,
body.woocommerce-account a.button,
body.woocommerce-account .woocommerce-Button {
    background: #fe0265 !important;
    border: 1px solid #fe0265 !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
body.woocommerce-account .button:hover,
body.woocommerce-account button.button:hover,
body.woocommerce-account a.button:hover {
    background: #e00258 !important;
    border-color: #e00258 !important;
    color: #fff !important;
}
body.woocommerce-account .pulse-listing-account__cancel-btn {
    background: #fff !important;
    color: #fe0265 !important;
    border: 1px solid #fe0265 !important;
}
body.woocommerce-account .pulse-listing-account__cancel-btn:hover {
    background: #fff1f6 !important;
    color: #e00258 !important;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-status mark,
body.woocommerce-account mark.order-status,
body.woocommerce-account .fsb-status {
    background: #fff1f6;
    color: #fe0265;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 899px) {
    body.woocommerce-account .woocommerce-MyAccount-content {
        padding: 16px;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation {
        margin: 0 0 1.25rem;
        width: 100% !important;
        max-width: none !important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation a {
        padding: 9px 12px;
        font-size: 13px;
    }
}

/* ------------------------------------------------------------------ */
/* Logged-out: Login / Register / Lost password                       */
/* ------------------------------------------------------------------ */
body.woocommerce-account:not(.logged-in) .site-main,
body.woocommerce-account:not(.logged-in) .entry-content,
body.woocommerce-account:not(.logged-in) .elementor-location-single,
body.woocommerce-account:not(.logged-in) .elementor-widget-theme-post-content,
body.woocommerce-account:not(.logged-in) .elementor-widget-woocommerce-my-account {
    background:
        radial-gradient(1200px 480px at 50% -10%, rgba(254, 2, 101, 0.10), transparent 60%),
        linear-gradient(180deg, #faf7f9 0%, #ffffff 55%);
}

body.woocommerce-account:not(.logged-in) .entry-header,
body.woocommerce-account:not(.logged-in) .page-header,
body.woocommerce-account:not(.logged-in) .elementor-page-title,
body.woocommerce-account:not(.logged-in) h1.entry-title,
body.woocommerce-account:not(.logged-in) .entry-title {
    text-align: center !important;
    max-width: 420px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0.35rem !important;
    font-size: clamp(1.6rem, 2.4vw, 2rem) !important;
    letter-spacing: -0.03em;
}

body.woocommerce-account:not(.logged-in) .woocommerce,
body.woocommerce-account:not(.logged-in) .elementor-widget-woocommerce-my-account .woocommerce {
    display: block !important;
    max-width: 440px;
    margin: 0 auto 3rem !important;
    padding: 0 16px 2.5rem;
    float: none !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-MyAccount-navigation {
    display: none !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-MyAccount-content,
body.woocommerce-account:not(.logged-in) .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 440px;
}

body.woocommerce-account:not(.logged-in) #customer_login,
body.woocommerce-account:not(.logged-in) .u-columns.col2-set {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem;
    width: 100% !important;
    float: none !important;
}

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

body.woocommerce-account:not(.logged-in) .woocommerce-form-login,
body.woocommerce-account:not(.logged-in) .woocommerce-form-register,
body.woocommerce-account:not(.logged-in) .woocommerce-ResetPassword,
body.woocommerce-account:not(.logged-in) form.login,
body.woocommerce-account:not(.logged-in) form.register,
body.woocommerce-account:not(.logged-in) form.lost_reset_password {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 16px;
    padding: 28px 26px 24px;
    box-shadow: 0 16px 40px rgba(17, 17, 17, 0.07);
    box-sizing: border-box;
}

body.woocommerce-account:not(.logged-in) .woocommerce h2,
body.woocommerce-account:not(.logged-in) .woocommerce-MyAccount-content > h2,
body.woocommerce-account:not(.logged-in) #customer_login h2 {
    /* Page title already says Log in — hide WC form heading duplicate */
    display: none !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login-toggle,
body.woocommerce-account:not(.logged-in) .woocommerce-info {
    max-width: 440px;
    margin: 0 auto 1rem !important;
    border-radius: 10px;
}

body.woocommerce-account:not(.logged-in) form .form-row {
    margin: 0 0 16px;
    width: 100% !important;
    float: none !important;
}

body.woocommerce-account:not(.logged-in) form .form-row label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

body.woocommerce-account:not(.logged-in) form .form-row .required {
    color: #fe0265;
    text-decoration: none;
}

body.woocommerce-account:not(.logged-in) form .form-row input.input-text,
body.woocommerce-account:not(.logged-in) form .woocommerce-Input {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login .woocommerce-form-login__submit,
body.woocommerce-account:not(.logged-in) .woocommerce-form-register .woocommerce-form-register__submit,
body.woocommerce-account:not(.logged-in) form.login .woocommerce-button,
body.woocommerce-account:not(.logged-in) form.register .woocommerce-button,
body.woocommerce-account:not(.logged-in) form.lost_reset_password .woocommerce-Button {
    width: 100% !important;
    min-height: 48px;
    margin: 4px 0 0 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    letter-spacing: 0.01em;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme,
body.woocommerce-account:not(.logged-in) label.woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 4px 0 14px !important;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    float: none !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword,
body.woocommerce-account:not(.logged-in) .lost_password {
    display: block;
    margin: 14px 0 0 !important;
    text-align: center;
    float: none !important;
    width: 100% !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword a,
body.woocommerce-account:not(.logged-in) .lost_password a {
    color: #fe0265 !important;
    font-weight: 600;
    text-decoration: none;
}

body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword a:hover,
body.woocommerce-account:not(.logged-in) .lost_password a:hover {
    text-decoration: underline;
}

body.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
    margin: 0 0 12px;
}

@media (min-width: 900px) {
    body.woocommerce-account:not(.logged-in) #customer_login.u-columns.col2-set,
    body.woocommerce-account:not(.logged-in) .u-columns.col2-set#customer_login {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-width: 860px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.woocommerce-account:not(.logged-in) .woocommerce:has(#customer_login .u-column2),
    body.woocommerce-account:not(.logged-in) .woocommerce:has(#customer_login .col-2) {
        max-width: 860px;
    }
}

/* Lost password: stack notices + form (even when still logged in as another user) */
body.woocommerce-lost-password .entry-title,
body.woocommerce-account.woocommerce-lost-password h1.entry-title {
    text-align: center !important;
    max-width: 520px;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.woocommerce-lost-password .woocommerce,
body.woocommerce-account.woocommerce-lost-password .woocommerce-MyAccount-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    max-width: 480px !important;
    margin: 0 auto 2.5rem !important;
    float: none !important;
    gap: 14px;
}
body.woocommerce-lost-password .woocommerce-MyAccount-navigation {
    display: none !important;
}
body.woocommerce-lost-password .woocommerce-notices-wrapper,
body.woocommerce-lost-password .woocommerce-message,
body.woocommerce-lost-password .woocommerce-error,
body.woocommerce-lost-password .woocommerce-info,
body.woocommerce-lost-password .woocommerce-ResetPassword,
body.woocommerce-lost-password form.lost_reset_password {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.woocommerce-lost-password .woocommerce-message,
body.woocommerce-lost-password .woocommerce-error,
body.woocommerce-lost-password .woocommerce-info {
    box-sizing: border-box;
    padding: 14px 16px !important;
    min-height: 0 !important;
    border-radius: 12px;
}

/* Obvious banner when reset link ≠ logged-in account */
.pulse-reset-mismatch {
    max-width: 520px;
    margin: 0 auto 1.25rem;
    padding: 20px 22px;
    background: #fff7ed;
    border: 2px solid #f97316;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.12);
    text-align: left;
    box-sizing: border-box;
}
.pulse-reset-mismatch__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #9a3412;
    letter-spacing: -0.02em;
}
.pulse-reset-mismatch__body {
    margin: 0 0 16px;
    color: #7c2d12;
    line-height: 1.5;
    font-size: 15px;
}
.pulse-reset-mismatch__actions {
    margin: 0;
}
.pulse-reset-mismatch__btn {
    display: inline-block !important;
    background: #fe0265 !important;
    border: 1px solid #fe0265 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    padding: 12px 18px !important;
    text-decoration: none !important;
}
.pulse-reset-mismatch__btn:hover {
    background: #e00258 !important;
    border-color: #e00258 !important;
    color: #fff !important;
}
