/* HIDE COURSE FILTERS */
.bb-courses-directory:has(#bb-course-list-grid-filters),
#ld_topic_categorydropdown {
    display: none;
}

/* GENERAL STYLES */
.wdm_my_account_wrp {
    padding: 10px !important;
    margin: 4rem 0 !important;
}

.wdm_my_account_wrp .wc-MyAccount-sub-heading {
    padding: 0 0 10px;
    border-bottom: none !important;
}

.wdm_my_account_wrp .wc-MyAccount-sub-heading h2,
.wdm_my_account_wrp .woocommerce-MyAccount-content h1 {
    font-family: var(--e-global-typography-text-font-family) !important;
    font-size: 40px !important;
    letter-spacing: 0 !important;
    word-spacing: var(--e-global-typography-primary-word-spacing);
    text-align: center !important;
    margin-bottom: 3rem !important;
}

/* ACCOUNT WRAPPER */
.wdm_my_account_wrp .woocommerce-MyAccount-content-wrapper,
.wdm_my_account_wrp .woocommerce-MyAccount-content .woocommerce-account-fields {
    margin: 0 !important;
    flex: 1;
    min-height: 400px;
    width: auto !important;
    padding: 30px;
}

/* FORM FIELDS */
.wdm_my_account_wrp .woocommerce-MyAccount-content form .form-row {
    padding: 3px 0 !important;
    margin: 0 0 22px 0 !important;
}

.wdm_my_account_wrp .woocommerce-MyAccount-content form .form-row input {
    font-family: var(--e-global-typography-text-font-family) !important;
    font-size: 20px !important;
    vertical-align: middle;
    background-color: var(--bb-content-background-color) !important;
    border: 1px solid var(--bb-content-border-color) !important;
    border-radius: var(--bb-input-radius) !important;
    padding: 0 12px !important;
    box-sizing: border-box;
    width: 100%;
    color: #4D3838 !important;
    outline: 0;
    box-shadow: none;
    line-height: normal;
}

.wdm_my_account_wrp .woocommerce .woocommerce-MyAccount-content form .form-row span > em {
    font-family: var(--e-global-typography-text-font-family) !important;
    color: var(--e-global-color-primary) !important;
}

.wdm_my_account_wrp .woocommerce-MyAccount-content form .woocommerce-account-fields__ctrls-wrapper {
    text-align: left !important;
}

.wdm_my_account_wrp .woocommerce-form-row label {
    font-family: var(--e-global-typography-text-font-family) !important;
    font-size: var(--e-global-typography-text-font-size) !important;
    font-weight: var(--e-global-typography-text-font-weight) !important;
    text-transform: var(--e-global-typography-text-text-transform) !important;
    font-style: var(--e-global-typography-text-font-style) !important;
    color: var(--e-global-color-text) !important;
    line-height: 1.1 !important;
    margin-bottom: 10px !important;
    display: block !important;
}

/* BUTTON STYLES */
.wdm_my_account_wrp .woocommerce form button.button {
    background-color: var(--bb-primary-button-background-regular) !important;
    color: var(--bb-primary-button-text-regular) !important;
    border: 1px solid var(--bb-primary-button-border-regular) !important;
    border-radius: var(--bb-button-radius) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    display: inline-block;
    padding: 0 2em !important;
    height: 40px;
}

.wdm_my_account_wrp .woocommerce form button.button:hover {
    background-color: var(--bb-primary-button-background-hover) !important;
    color: var(--bb-primary-button-text-hover) !important;
    border-color: var(--bb-primary-button-border-hover) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Tabs MENU */
.wdm_my_account_wrp .woocommerce-MyAccount-menu {
    padding-left: 2rem !important;
}

.wdm_my_account_wrp .woocommerce-MyAccount-navigation ul li a {
    font-family: "Sorts Mill Goudy" !important;
    letter-spacing: 1px;
    color: var(--e-global-color-text) !important;
    background-color: transparent !important;
}

.wdm_my_account_wrp .woocommerce-MyAccount-navigation ul li a:before {
    color: var(--e-global-color-text) !important;
}

.wdm_my_account_wrp .woocommerce-MyAccount-navigation ul li:not(.is-active) a:hover,
.wdm_my_account_wrp .woocommerce-MyAccount-navigation ul li:not(.is-active) a:hover::before {
    color: var(--tabs-active-color, #5bc0de) !important;
}

.wdm_my_account_wrp .woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: transparent !important;
    color: var(--e-global-color-f8b9635) !important;
}

.wdm_my_account_wrp .woocommerce-MyAccount-navigation ul li.is-active a:before {
    color: var(--e-global-color-f8b9635) !important;
    font-size: 24px;
    line-height: 1;
}
.wdm_my_account_wrp .woocommerce-MyAccount-navigation ul li:after {
    visibility: hidden !important;
}

.wdm_my_account_wrp .woocommerce-MyAccount-navigation ul li.is-active:after,
.wdm_my_account_wrp .woocommerce-MyAccount-navigation ul li:hover::after {
    height: 3px !important;
    visibility: visible !important;
}
.wdm_my_account_wrp  .woocommerce-MyAccount-content {
    margin-right: 2rem;
    padding: 30px !important;
}

/* Orders */
.wdm_my_account_wrp .woocommerce-MyAccount-orders th span, .wdm_my_account_wrp .shop_table.order_details th span {
    font-family: "Sorts Mill Goudy" !important;
    text-transform: capitalize !important;
    font-size: 22px !important;
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 0;
    color: var(--bb-alternate-text-color) !important;
}
.wdm_my_account_wrp .woocommerce-MyAccount-orders tbody tr a, .wdm_my_account_wrp .woocommerce-MyAccount-orders tbody tr td, .wdm_my_account_wrp .shop_table tbody tr a, .wdm_my_account_wrp .shop_table tbody tr td {
    font-family: "Sorts Mill Goudy" !important;
    font-weight: var(--e-global-typography-text-font-weight) !important;
    text-transform: var(--e-global-typography-text-text-transform);
    font-style: var(--e-global-typography-text-font-style);
    color: var(--e-global-color-text) !important;
    font-size: 20px !important;
}
.wdm_my_account_wrp .shop_table.order_details tfoot th, .wdm_my_account_wrp .shop_table.order_details tfoot tr td {
    font-family: "Sorts Mill Goudy" !important;
    font-weight: 700 !important;
    text-transform: capitalize !important;
    font-size: 22px !important;
}
.wdm_my_account_wrp a.woocommerce-button.button.view,
.wdm_my_account_wrp .payment-method-actions .button.delete,
.wdm_my_account_wrp .button.resubscribe {
    color: #fff !important;
}
.wdm_my_account_wrp a.woocommerce-button.button.view:hover,
.wdm_my_account_wrp .payment-method-actions .button.delete:hover,
.wdm_my_account_wrp .button.resubscribe:hover {
    color: var(--e-global-color-f8b9635) !important;
}
/* Subscription */
.wdm_my_account_wrp .woocommerce-MyAccount-content-wrapper p {
    font-family: "Sorts Mill Goudy" !important;
    margin: 0 0 1.6875rem !important;
    padding: 0 !important;
}
.wdm_my_account_wrp .woocommerce-MyAccount-content-wrapper p,
.wdm_my_account_wrp .subscription_details {
    color: #5A5A5A !important;
    font-family: "Sorts Mill Goudy" !important;
}
.wdm_my_account_wrp .woocommerce table.shop_table tbody:first-child tr:first-child td {
    border-top: 0 !important;
}
.wdm_my_account_wrp .subscription_details td {
    padding: 9px 12px !important;
}

.wdm_my_account_wrp  .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .shop_table td {
    border-color: var(--bb-content-border-color) !important;
}
.wdm_my_account_wrp .woocommerce-customer-details h2.woocommerce-column__title {
    font-family: "Sorts Mill Goudy" !important;
    font-size: 17px !important;
    margin-bottom: .5rem !important;
    margin-top: 0 !important;
    font-weight: 500 !important;
    font-style: normal !important;
    color: #1E2132 !important;
}
.wdm_my_account_wrp .woocommerce-customer-details address {
    border: 0;
    padding: 0 !important;
    font-size: 14px !important;
    margin-bottom: 0 !important;
    color: #5a5a5a !important;
}
.wdm_my_account_wrp .shop_table.order_details + header h2 ,
.wdm_my_account_wrp .shop_table.subscription_details ~ h2{
    font-family: "Sorts Mill Goudy" !important;
    font-size: 35px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    color: var(--bb-headings-color) !important;
    line-height: 1.2;
}
.wdm_my_account_wrp .account-payment-methods-table {
    margin-bottom: 2rem !important;
}


/* Lost Password Page */
.wdm-lost-password-wrapper {
    display: flex;
    height: 100vh;
    flex-wrap: wrap;
}

.wdm-left-column {
    flex: 1;
    background: url('https://school.evolutionaryherbalism.com/wp-content/uploads/2022/07/Forest-at-Sunrise.jpg') center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--e-global-color-secondary) !important;
    text-align: center;
    background-color: var(--bb-body-text-color);
    position: relative;
}

.wdm-left-column h2 {
    color: var(--e-global-color-secondary) !important;
}

.wdm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.wdm-overlay-content {
    position: relative;
    z-index: 2;
}

.wdm-overlay-content h2 {
    font-size: 2rem;
    margin: 0;
}

.wdm-overlay-content p {
    font-size: 1.2rem;
    margin-top: 15px;
}

.wdm-right-column {
    flex: 1;
    padding: 60px;
    background: var(--bb-content-background-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wdm-right-column .woocommerce-MyAccount-content {
    border: none !important;
}

.wdm_my_account_wrp .wdm-right-column .woocommerce-MyAccount-content form .form-row input {
    background-color: #fff !important;
}

.woocommerce-ResetPassword.lost_reset_password {
    margin: auto;
    width: 100% !important;
}

.woocommerce .wc-LostPassword {
    width: 100%;
}

.woocommerce .wc-LostPassword .bs_woocommerce_reset_ctrls {
    text-align: center;
}

/* Hide all elements after the form + header/footer */
.wdm_my_account_wrp:has(.wdm-lost-password-wrapper) ~ *,
body:has(.wdm-lost-password-wrapper) .elementor-location-header,
body:has(.wdm-lost-password-wrapper) .elementor-location-footer {
    display: none;
}

.wdm_my_account_wrp:has(.wdm-lost-password-wrapper) {
    margin: 0 !important;
    padding: 0 !important;
}