.woocommerce-MyAccount-navigation {
    /*margin-top: -60px;*/
    flex: 0 0 min(30%, 350px);
    position: relative;
}

.woocommerce-MyAccount-navigation > ul {
    --background-color: #6aa2bf;
    list-style-type: none;
    /*margin-top: 60px;*/
    padding-inline-start: unset;
    /*transition: top 0.3s ease-in-out;*/

    /*position: fixed;*/
}

.page-title-wrap.page-title-margin {
    margin-bottom: 0;
}

.woocommerce-MyAccount-navigation-link {
    padding: .5rem .75rem;
    background: var(--background-color);
    position: relative;
    width: 90%;
}

.woocommerce-MyAccount-navigation-link.is-active::after {
    content: "";
    display: inline-block;
    position: absolute;
    width: 55px;
    background-color: #febc44;
    height: calc(24px + 1rem);
    right: 0;
    top: 0;
    transform: skewX(30deg) translateX(+20%);
}

.woocommerce-MyAccount-navigation-link.is-active {
    --background-color: #febc44;
    font-weight: bold;
}

.woocommerce-MyAccount-navigation-link > a {
    color: white;
}

.woocommerce-MyAccount-navigation-link:not(.is-active) > a:is(:hover, :active, :focus, :target) {
    color: white;
    font-weight: bold;
}

.woocommerce-MyAccount-content {
    margin-top: 2rem;
    animation: fadeIn 500ms;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.woocommerce:has(> .woocommerce-MyAccount-content) {
    display: flex;
}

@media (max-width: 600px) {
    .woocommerce:has(> .woocommerce-MyAccount-content) {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation {
        flex: 1;
    }

    .woocommerce-MyAccount-navigation > ul {
        position: relative !important;
        transition: height 0.3s ease-in-out;
        height: 0;
        overflow: hidden;
    }

    .woocommerce-MyAccount-navigation > ul.open {
        height: 100%;
    }

    .woocommerce-MyAccount-content {
        margin: 1rem .5rem 0;
    }

    .woocommerce-MyAccount-navigation-link {
        width: 100%;
        display: inline-flex;
        justify-content: space-between;
    }

    .woocommerce-MyAccount-navigation-link.is-active {
        display: none;
    }

    .woocommerce-MyAccount-navigation-link.is-active::after {
        display: none;
    }

    button.collapse-btn {
        display: block !important;
        flex: 0 0 2rem;
        text-align: center;
    }

    .menu-collapse {
        display: flex !important;
    }

    .text-sm-center {
        text-align: center !important;
    }

}

/* XL - 1600px */
@media (max-width: 1599px) {
    #wrapper main > .container {
        width: 100% !important;
        padding: 0;
        margin: 0;
    }
}

/* XXL - 2560px */
@media (max-width: 2560px) {
    #wrapper main > .container {
        width: 1600px !important;
        padding: 0;
    }
}


button.collapse-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    font-family: inherit;
    text-align: left;
    text-decoration: underline;
    display: none;
    width: 100%;
}

.menu-collapse {
    color: white;
    display: none;
}

.text-end {
    text-align: end;
}

.my-account-upsell .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    margin-bottom: 1rem;
}

.price-chip {
    display: inline-block;
    background-color: #febc44;
    color: white;
    padding: 0.25rem .5rem;
    border-radius: 3px;
}


.woocommerce form .password-input, .woocommerce-page form .password-input {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-direction: row;
}

.woocommerce form .password-input .woocommerce-Input {
    max-width: 445px !important;
}

.woocommerce-account .password-input .show-password-input {
    width: auto;
    position: static;
    right: 0;
    top: 50%;
    transform: translate(0, 0);
}

.woocommerce form .password-input .woocommerce-Input {
    max-width: 470px !important;
}

.form-row:has(> .woocommerce-form-login__submit) {
    display: flex;
    flex-direction: column;
    max-width: 470px;
    margin: 0 auto !important;
}

.woocommerce-form-login__submit {
    margin: 0 !important;
    float: none !important;
}

.section-before-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1rem;
}

.all-courses-link {
    padding-top: 1rem;
    text-align: center;
}

/* My-accounty upsell form */

/* 2-column grid */
.upsell-order-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
}


/* 1 grid col */
.upsell-order-form-col {
    padding: 1rem;
    grid-column: 1 span / auto;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 1 column on smaller screens */
@media screen and (max-width: 991px) {
    .upsell-order-form-col {
        grid-column: 2 span / auto;
    }
}

input[type="number"].upsell-quantity {
    margin-right: 5px;
    height: 30px;
    width: 50px;
    padding: 5px;
}

button.upsell-buy-button {
    background-color: #febc44;

    font-size: 100%;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    overflow: visible;
    padding: .618em 1em;
    font-weight: 700;
    border-radius: 3px;
    left: auto;
    color: #515151;
    border: 0;
    display: inline-block;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    outline: none;

    white-space: nowrap;
}

.woocommerce form .username-input,
.woocommerce-page form .username-input {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-direction: row;
}