

/*

    Diese Datei beinhaltet alle Styles der Komponenten.
    Jede Komponente wird am Beginn mit der Bezeichnung in Uppercase gestartet.
    Jede Zeile muss mit dem HTML Element und der Komponenten-Bezeichnung ( zb a.tf-button ) beginnen.

*/


/* PRICES AND ORDER */

div.tf-prices-and-order {
    overflow: hidden;
}

div.tf-prices-and-order .screen {
    transition: opacity .4s, transform .4s;
}

div.tf-prices-and-order .screen.faded-right,
div.tf-prices-and-order .screen.faded-left {
    opacity: 0;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
}

div.tf-prices-and-order .screen.faded-right {
    transform: translate3d( 100px, 0px, 0 );
}

div.tf-prices-and-order .screen.faded-left {
    transform: translate3d( -100px, 0px, 0 );
}

div.tf-prices-and-order .screen.hidden {
    display: none;
}

div.tf-prices-and-order .screen.main {
    background-color: var( --background-grey );
}

div.tf-prices-and-order .screen.main section.tf-content {
    display: none;
}

div.tf-prices-and-order .screen.main.mode-for-me section.tf-content.list,
div.tf-prices-and-order .screen.main.mode-for-multiple section.tf-content.list {
    display: block;
}

/*div.tf-prices-and-order .screen.main.mode-for-multiple .topbar.amount-persons {
    display: block;
}*/

div.tf-prices-and-order .screen.main .topbar.amount-persons .discount span {
    font-weight: 400;
    opacity: 0.5;
    margin-left: 1rem;
}

div.tf-prices-and-order section.tf-content .wrapper ul.tf-course-list li.category-item .category h2 {
    font-size: 1.2rem;
    line-height: 1.7rem;
    letter-spacing: -0.01em;
    margin-bottom: -0.4rem;   
}

div.tf-prices-and-order .screen.main.mode-for-me section.tf-content.list .wrapper {
    border-top: none;
    padding-top: 0px;
    padding-bottom: 0px;
}

div.tf-prices-and-order .screen.main section.tf-content.list .all-courses-activated {
    display: block;
}

div.tf-prices-and-order .screen.main section.tf-content.list:has( .wrapper .category-item:not( .hidden ) ) .all-courses-activated {
    display: none;
}

div.tf-prices-and-order .topbar {
    display: flex;
    border-bottom: var( --border-thinline-black );
    align-items: center;
    height: 82px;
    gap: 1rem;
    padding-right: calc( 24px + 2rem );
    margin-left: 2rem;
    margin-right: 2rem;
}

div.tf-prices-and-order .screen.question .topbar,
div.tf-prices-and-order .screen.quote .topbar,
div.tf-prices-and-order .screen.order .topbar {
    justify-content: space-between;
}

div.tf-prices-and-order .screen .scroll-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    max-height: calc( 90svh - 82px );
    overflow: hidden;
    overflow-y: auto;
    padding: 2rem;
}

div.tf-prices-and-order:has( .bottombar:not( .hidden ) ) .screen .scroll-wrapper {
    max-height: calc( 90svh - 82px - 82px );
}

div.tf-prices-and-order:has( .bottombar.extended:not( .hidden, .view-only ) ) .screen .scroll-wrapper {
    max-height: calc( 90svh - 82px - 82px - 82px );
}

div.tf-prices-and-order:has( .bottombar.extended:not( .hidden, .view-only ) ) .screen.main.mode-for-multiple .scroll-wrapper {
    max-height: calc( 90svh - 82px - 82px - 82px - 82px );
}

div.tf-prices-and-order .screen .scroll-wrapper section.tf-content.hidden {
    display: none;
}

div.tf-prices-and-order .topbar h2 {
    letter-spacing: -0.01em;
    font-size: 2rem;
    line-height: 2.5rem;
    margin-top: -0.4rem;
    margin-bottom: -0.4rem;
    text-wrap: balance;
    font-weight: bold;
}

div.tf-prices-and-order .topbar .tf-button {
    margin-top: 0px;
}

div.tf-prices-and-order .topbar .tf-button-group {
    width: 100%;
}

div.tf-prices-and-order .screen.main .topbar.amount-persons {
    display: none;
}

div.tf-prices-and-order .screen.main.mode-for-multiple .topbar.amount-persons {
    display: flex;
}

div.tf-prices-and-order .bottombar {
    height: auto;
    background-color: var( --main-color );
    color: white;
    padding-left: 2rem;
    padding-right: 2rem;
    font-size: 1rem;
    line-height: 1.2rem;
    font-weight: 500;
    z-index: 100;
}

div.tf-prices-and-order .bottombar.hidden {
    display: none;
}

div.tf-prices-and-order .bottombar .wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    height: 82px;
}

div.tf-prices-and-order .bottombar .wrapper + .wrapper {
    border-top: var( --border-thinline-white );
}

div.tf-prices-and-order .bottombar .wrapper.for-me,
div.tf-prices-and-order .bottombar .wrapper.for-multiple {
    justify-content: flex-end;
    gap: 1rem;
}

div.tf-prices-and-order .bottombar .wrapper.for-me {
    gap: 4rem;
}

div.tf-prices-and-order .bottombar.mode-for-me .wrapper.for-multiple {
    display: none;
}

div.tf-prices-and-order .bottombar.mode-for-multiple .wrapper.for-me {
    display: none;
}

div.tf-prices-and-order .bottombar.extended.view-only .wrapper.for-multiple {
    display: none;
}

div.tf-prices-and-order .bottombar .wrapper.for-me > *.hidden {
    display: none;
}

div.tf-prices-and-order .bottombar .wrapper.for-me > .label-discount {
    flex-grow: 1;
    font-weight: 700;
}

div.tf-prices-and-order .bottombar .wrapper.for-me .apply-discount {
    margin-right: auto;
}

div.tf-prices-and-order .bottombar .info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 82px;
    overflow: hidden;
}

div.tf-prices-and-order .bottombar .info {
    flex-grow: 1;
}

div.tf-prices-and-order .bottombar .cart {
    flex-grow: 1;
    font-weight: bold;
}

div.tf-prices-and-order .bottombar .discount {
    background-color: #FF6059;
    border-radius: 0.5rem;
    display: flex;
    height: 50px;
    flex-shrink: 0;
    transition: scale .2s;
}

div.tf-prices-and-order .bottombar .discount.pop {
    scale: 1.2;
}

div.tf-prices-and-order .bottombar .discount.hidden {
    display: none;
}

div.tf-prices-and-order .bottombar .discount > .hidden,
div.tf-prices-and-order .bottombar .discount > .label.hidden {
    display: none !important;
}

div.tf-prices-and-order .bottombar .discount > *:not( .hidden ) + *:not( .hidden ) {
    border-left: var( --border-thinline-white );
}

div.tf-prices-and-order .bottombar .discount .price-original {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    line-height: 1.7rem;
}

div.tf-prices-and-order .bottombar .discount .price-original::before,
div.tf-prices-and-order .bottombar .discount .price-original::after {
    content: "";
    display: block;
    position: absolute;
    height: auto;
    left: 0px;
    right: 0px;
    margin-left: auto;
    margin-right: auto;
    top: 5px;
    bottom: 5px;
    transform: rotateZ( 45deg );
}

div.tf-prices-and-order .bottombar .discount .price-original::before {
    width: 3px;
    background-color: #FF6059;
}

div.tf-prices-and-order .bottombar .discount .price-original::after {
    width: 1px;
    background-color: rgba(255,255,255,0.6);
}

div.tf-prices-and-order .bottombar .discount .label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    line-height: 1rem;
}

div.tf-prices-and-order .bottombar .discount .label .number {
    font-size: 1rem;
    line-height: 1.2rem;
}

div.tf-prices-and-order .bottombar .price {
    display: flex;
    align-items: center;    
    flex-direction: column;
    flex-shrink: 0;
}

div.tf-prices-and-order .bottombar .price .price-total {
    font-size: 1.5rem;
    line-height: 1.875rem;
    font-weight: bold;
}

div.tf-prices-and-order .bottombar .price .label {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    line-height: 1rem;
}

div.tf-prices-and-order .bottombar .tf-button {
    flex-shrink: 0;
    transition: opacity .2s, background-color .2s, border .2s, color .2s;
}

div.tf-prices-and-order .bottombar button.tf-button .short {
    display: none;
}

div.tf-prices-and-order .bottombar.disabled .tf-button.buy-now,
div.tf-prices-and-order .bottombar.disabled .tf-button.quote,
div.tf-prices-and-order .bottombar.disabled .tf-button.order {
    pointer-events: none;
    opacity: 0.3;
}


@media only screen and (max-width: 1050px) {

    div.tf-prices-and-order .topbar button.tf-button {
        font-size: 1rem;
        line-height: 1rem;
        letter-spacing: -0.01rem;
        font-weight: 400;
        gap: 0.5rem;
    }
    
    div.tf-prices-and-order .topbar button.tf-button svg,
    div.tf-prices-and-order .topbar button.tf-button img {
        width: 1.25rem;
    }
    
    a.tf-button.medium.small-icon svg, 
    button.tf-button.medium.small-icon svg, 
    a.tf-button.medium.small-icon img, 
    button.tf-button.medium.small-icon img {
        width: 0.8rem !important;
    }
    
    a.tf-button.medium.small-icon svg + svg, 
    button.tf-button.medium.small-icon svg + svg, 
    a.tf-button.medium.small-icon img + img, 
    button.tf-button.medium.small-icon img + img {
        margin-left: 0px !important; 
    }
    
    div.tf-prices-and-order .screen.main .topbar .tf-check-buttons button {
        font-size: 1rem;
        line-height: 1rem;
        letter-spacing: -0.01rem;
        font-weight: 400;
        gap: 0.5rem;
    }
    
    div.tf-prices-and-order .screen.main .topbar .tf-check-buttons button svg,
    div.tf-prices-and-order .screen.main .topbar .tf-check-buttons button img {
        width: 1.25rem;
    }
    
    div.tf-prices-and-order section.tf-content .wrapper ul.tf-course-list li.category-item .category h2 {
        font-size: 1.0rem;
        line-height: 1.375rem;
        letter-spacing: 0px;
    }
    
    div.tf-prices-and-order .bottombar .wrapper.buy {
        flex-direction: column;
        height: 164px;
        gap: 0px;
    }
    
    div.tf-prices-and-order .bottombar.extended .wrapper.buy {
        height: 82px;
    }
    
    div.tf-prices-and-order .bottombar .wrapper.buy .info {
        width: 100%;
    }
    
    div.tf-prices-and-order .bottombar button.tf-button {
        font-size: 1rem;
        line-height: 1rem;
        letter-spacing: -0.01rem;
        font-weight: 400;
        gap: 0.5rem;
    }
    
    div.tf-prices-and-order .bottombar button.tf-button svg,
    div.tf-prices-and-order .bottombar button.tf-button img {
        width: 1.25rem;
    }

    div.tf-prices-and-order .bottombar button.tf-button .long {
        display: none;
    }
            
    div.tf-prices-and-order .bottombar button.tf-button .short {
        display: block;
    }
    
}


@media only screen and (max-width: 800px) {
    
    div.tf-prices-and-order .topbar {
        flex-direction: column-reverse;
        height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
        margin-left: 1rem;
        margin-right: 1rem;
        align-items: flex-start;
        gap: 2rem;
    }
    
    div.tf-prices-and-order .screen .scroll-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
        max-height: unset !important;
    }
    
    div.tf-prices-and-order .bottombar {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    div.tf-prices-and-order .bottombar .info {
        flex-direction: column;
        height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
        align-items: flex-start;
        gap: 2rem;
    }

    div.tf-prices-and-order .bottombar .wrapper.buy {
        height: auto !important;
    }
    
    div.tf-prices-and-order .bottombar .wrapper.for-me,
    div.tf-prices-and-order .bottombar .wrapper.for-multiple {
        flex-direction: column;
        height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
        align-items: flex-start;
    }
    
    div.tf-prices-and-order .bottombar .wrapper.for-me {
        gap: 1rem;
    }
    
}

@media only screen and (max-width: 550px) {

    div.tf-prices-and-order .bottombar button.tf-button {
        width: 100%;
        justify-content: center;
    }
}

