/* Fullwidth account layout — hide the theme sidebar only.
 * Do not stretch Divi 5 flex sections/rows to the viewport; that makes
 * the page too wide and still leaves dashboard cards cramped.
 */
.bc-account-fullwidth.woocommerce-account #main-content .container {
    padding-top: 0 !important;
    width: 100%;
    max-width: 100%;
}
.bc-account-fullwidth.woocommerce-account #left-area {
    padding-right: 0 !important;
    width: 100% !important;
}
.bc-account-fullwidth.woocommerce-account #sidebar,
.bc-account-fullwidth.woocommerce-account #main-content .container:before {
    display: none !important;
}
.bc-account-fullwidth.woocommerce-account #main-content .et_pb_section.et_pb_section_0 > .et_pb_row {
    width: 100%;
    max-width: 100%;
    padding: 0;
}
.bc-account-fullwidth.woocommerce-account .et_pb_section.et_pb_section_0 {
    padding: 0;
}

/* Left menu + content sit in a normal content width, not edge-to-edge. */
.bc-account-fullwidth.bc-account-left-nav .bc-account-content-container {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}
.bc-account-fullwidth.bc-account-left-nav .bc-account-content-container .bc-account-nav {
    float: none;
    flex: 0 1 16.5rem;
    width: 16.5rem;
    max-width: 16.5rem;
    min-width: 0;
    min-height: min-content;
    height: auto;
    box-sizing: border-box;
}
.bc-account-fullwidth.bc-account-left-nav .bc-account-content-container .bc-account-content {
    float: none;
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: min-content;
    height: auto;
    overflow: visible;
    box-sizing: border-box;
}

/* Space between the page header and the account layout. */
.woocommerce-account .bc-account-content-container {
    padding-top: 2rem;
}

/* Keep Divi 5 flex sections inside their pane (no 100vw breakout).
 * Do not use overflow-x: clip here — it forces overflow-y to auto and
 * the flex item then shrinks to the short menu height, so cards overlap the footer.
 */
.bc-account-nav,
.bc-account-content {
    min-width: 0;
    min-height: min-content;
    height: auto;
    overflow: visible;
}
.bc-account-nav .et_pb_section,
.bc-account-content .et_pb_section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
}
.bc-account-content .et_flex_section,
.bc-account-content .et_flex_row,
.bc-account-content .et_flex_column,
.bc-account-content .et_pb_db_account_dashboard_cards,
.bc-account-content .bc-account-dash {
    min-height: min-content;
    height: auto;
    overflow: visible;
}

/* Woo default account floats must not shrink or overlap the BodyCommerce columns. */
.woocommerce-account .bc-account-content-container .woocommerce-MyAccount-navigation {
    float: none;
    width: 100%;
}
.woocommerce-account .bc-account-content-container .bc-account-content.woocommerce-MyAccount-content {
    float: none;
    width: auto;
    max-width: none;
}

@media only screen and (max-width: 980px) {
    .bc-account-fullwidth.bc-account-left-nav .bc-account-content-container {
        display: block;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .bc-account-fullwidth.bc-account-left-nav .bc-account-content-container .bc-account-nav,
    .bc-account-fullwidth.bc-account-left-nav .bc-account-content-container .bc-account-content {
        flex: none;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Remove headings */
.bc-account-remove-headings.woocommerce-account .entry-title.main_title {
    display: none;
}

/* Same height for nav/content */
.bc-account-same-height .bc-account-content-container {
    display: flex;
}
.bc-account-same-height .bc-account-content-container .bc-account-content .et_pb_section,
.bc-account-same-height .bc-account-content-container .bc-account-content .et_pb_row,
.bc-account-same-height .bc-account-content-container .bc-account-content .et_pb_column {
    min-height: 100%;
    height: auto;
}
