.ftc-sidebar {
    background: white;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease 0s;
    color:white;
}
.ftc-sidebar__options {
    display: flex;
    flex-wrap: nowrap;
}
.ftc-sidebar__option {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 5px;
    flex: 1;
    color: var(--evo--black);
}

.ftc-sidebar__modals {
    position: fixed;
    inset: var(--wp-admin--admin-bar--height, 0px) 0px 0px;
    pointer-events: none;
    
}
.ftc-sidebar__modals.open::before {
    opacity: 1;
}
.ftc-sidebar__modal {
    width: min(100%, 970px);
    position: fixed;
    padding: 30px var(--global-block-padding) 40px;
    background: var(--pmn--blue);
    transition: transform 0.6s ease 0s;
    transform: translateX(100%); 
    color:white;
    pointer-events: all;
    
    overflow-y: auto;
    overscroll-behavior: contain;
}
.ftc-sidebar__modal.open {
    transform: translateX(0); 
}
.ftc-sidebar__modal a {
    color:white;
}
.ftc-sidebar__modal__close-btn {
    position: absolute;
    top: 30px;
    right: 20px;
    width: 10mm;
    height: 10mm;
}
.ftc-sidebar__modal__close-btn .line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8mm;
    height: 2px;
    background-color: white;
    transform: translate(-50%, -50%) rotate(45deg);
}
.ftc-sidebar__modal__close-btn .line:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.ftc-sidebar__form {
    /*height: 100%;*/
    /*overflow: auto;*/
    padding: 25px 20px 25px 0;
}
.ftc-sidebar__modal__title,
.ftc-sidebar__modal__next-dates {
    color: white;
}

.ftc-sidebar__modal__no-dates {
    color:white;
}

.ftc-sidebar__modal__next-dates,
.ftc-sidebar__modal__no-dates {
    margin-top: 30px;
    margin-bottom: 16px;
}
.ftc-sidebar__modal__no-dates {
    font-size: 18px;
    line-height: 22px;
    font-weight: 700;
}


.ftc-sidebar__event-list {
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
}
.ftc-sidebar__event-tag::before {
    background-image: var(--ftc--icon--calendar--white);
    width: 24px;
    height: 24px;
}
.ftc-sidebar-container,
.ftc-sidebar__modals {
    z-index: 5; /* prevent TOCs to overlap it */
}

.ftc-sidebar__form .hbspt-form .hs-submit .hs-button {
    background-color:white;
    color:var(--pmn--blue);
}

.ftc-sidebar__form .hbspt-form .hs-submit .hs-button:hover {
    color:var(--pmn--pink);
}

.ftc-sidebar__form .hbspt-form .hs-input[type="checkbox"] {
    accent-color:var(--pmn--pink);
}

@media screen and (max-width: 767px) {
    .ftc-sidebar-container {
        position: sticky;
        inset: auto 0px 0px;
    }
    .ftc-sidebar {
        border-top: 1px solid var(--ftc--light-grey);
    }
    .ftc-sidebar[data-visible="false"] {
        transform: translateY(calc(100% + 30px));
    }
    .ftc-sidebar__options {
        height: 70px;
        flex-direction: row;
        box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.25);

        padding: 5px 0px 7px 65px; /* empty space for Axeptio button */
        
        font-size: 12px;
        line-height: 1em;
    }
    
    .ftc-sidebar__option__img {
        width: 28px;
        height: 28px;
    }
    .ftc-sidebar__option__label {
        height: 24px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .ftc-sidebar__modal__title {
        padding-bottom: 25px;
        font-size: 24px;
        line-height: 28px;
    }
    .ftc-sidebar__modal__next-dates {
        font-size: 18px;
        line-height: 22px;
    }
    .ftc-sidebar__modal {
        inset: calc(var(--header--logoburger--height, 0px) + var(--wp-admin--admin-bar--height, 0px)) 0px 0px;
        transform: translateY(100%); 
    }
    .ftc-sidebar__modal.open {
        transform: translateY(0); 
        color: white;
    }
    
    .ftc-sidebar__event-tag {
        padding: 4px 15px;
    }
}
@media screen and (min-width: 768px) {
    
    .ftc-sidebar__modals {
        color: white;
        z-index: 20; /* puts it above the navbar */
    }
    .ftc-sidebar__modals::before {
        pointer-events: none;
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0;
        background-color: rgba(0, 0, 0, 0.7);
        transition: opacity 500ms ease-in-out;
    }
    
    
    .ftc-sidebar-container {
        position: fixed;
        inset: var(--wp-admin--admin-bar--height, 0px) auto 0px;
        
        display: flex;
        flex-direction: row;
        justify-content: stretch;
        align-items: center;
        
        pointer-events: none;
    }
    .ftc-sidebar {
        width: 90px;
        padding: 15px 5px 20px;
        border-radius: 0px 20px 20px 0px;
        
        pointer-events: all;
    }
    .ftc-sidebar[data-visible="false"] {
        transform: translateX(calc(-100% - 30px));
    }
    .ftc-sidebar__options {
        display: flex;
        flex-direction: column;
        row-gap: 20px;
        
        font-size: 12px;
        line-height: 12px;
    }
    .ftc-sidebar__option__img {
        max-width: 30px;
        max-height: 30px;
    }
    .ftc-sidebar__option__label {
        font-size: 14px;
        line-height: 13px;
    }
    .ftc-sidebar__options button:hover span {
        font-weight:600;
        transition:0.3s ease-in-out;
    }
    .ftc-sidebar__modal__title {
        font-size: 48px;
        line-height: 54px;
        margin-bottom: 20px;
    }
    .ftc-sidebar__modal__next-dates {
        font-size: 32px;
        line-height: 32px;
    }
    .ftc-sidebar__modal {
        inset: var(--wp-admin--admin-bar--height, 0px) auto 0px 0px;
        padding-top: 40px;
        
        
        transform: translateX(-101%); /* when not open */
    }
    .ftc-sidebar__modal.open {
        transform: translateX(0); 
    }

    .ftc-sidebar__event-tag {
        padding: 9px 15px;
    }
}