/* START BUTTON */
:root {
    --bgc_color: var(--apo_btn);
}

#tyOnlineWidgetButton {
    display: none;
    height: 83px;
    width: 83px;
    border-radius: 50%;
    background-color: rgba(var(--bgc_color), 0.7);
    position: fixed;
    right: 60px;
    bottom: 45px;
    border: none;
    z-index: 1000;
    cursor: pointer;
}
#tyOnlineWidgetButton.hidden {
    display: none !important;
}

#tyOnlineWidgetButton.active span::before {
    display: block;
    opacity: 1;
    transform: scale(1);
    animation: fadeInOut 30s forwards;
}

#tyOnlineWidgetButton span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#tyOnlineWidgetButton span::after {
    content: '';
    display: inline-block;
    -webkit-mask-image: url('../images/clarity_calendar-solid.svg');
    mask-image: url('../images/clarity_calendar-solid.svg');
    -webkit-mask-size: auto 100%;
    mask-size: auto 100%;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    background-color: var(--second_color);
    width: 48px;
    height: 48px;
}

#tyOnlineWidgetButton span::before {
    display: none;
    content: '';
    position: absolute;
    top: -50px;
    left: -185px;
    background-image: url('../images/make-apo.png');
    background-size: contain;
    width: 215px;
    height: 75px;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease, transform 1s ease;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    20% {
        transform: scale(1.1);
    }

    30% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }

    80% {
        transform: scale(1.1);
    }

    90% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
        visibility: hidden;
    }
}

#tyOnlineWidgetButton.animated::before,
#tyOnlineWidgetButton.animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    z-index: -1;
    animation: breathe 3s infinite;
    mix-blend-mode: multiply;
}

#tyOnlineWidgetButton.animated::before {
    background-color: rgba(var(--bgc_color), 0.5);
    animation-delay: 1s;
}

#tyOnlineWidgetButton.animated::after {
    background-color: rgba(var(--bgc_color), 0.3);
    animation-delay: 2s;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* END BUTTON */
/* START MODAL */
#tyonlineModal {
    display: flex;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: flex-start;
    padding-top: 5%;
}

#tyonlineModal .modal-content {
    background-color: #fff;
    border: 1px solid #888;
    width: 90%;
    height: 90%;
    position: relative;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

#tyonlineModal .modal-content iframe {
    width: 100%;
    height: 100%;
}

#tyonlineModal .modal-content .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* END MODAL */