.chatbot.v1_normal_tc::after {
    background: url('/assets/img/logos/cedd.chatbot.png') no-repeat center center/100% auto;
}

.chatbot.v1_normal_en::after {
    background: url('/assets/img/logos/cedd.chatbot.png') no-repeat center center/100% auto;
}

.chatbot.v1_normal_sc::after {
    background: url('/assets/img/logos/cedd.chatbot.png') no-repeat center center/100% auto;
}

.chatbot_iframe {
    position: fixed;
    right: 10px;
    bottom: 170px;
    width: 375px;
    border: 0;
    box-shadow: 0px -3px 8px 5px rgba(166, 166, 166, .2);
    -webkit-box-shadow: 0px -3px 8px 5px rgba(166, 166, 166, .2);
    border-radius: 4px;
    -webkit-border-radius: 4px;
    z-index: 999999;
}

@media screen and (min-height: 655px) and (min-width: 435px) {
    .chatbot_iframe {
        height: 586px;
    }
}

@media screen and (max-height: 655px) and (min-width: 435px) {
    .chatbot_iframe {
        height: 500px;
    }
}

@media screen and (max-height: 421px) and (min-width: 435px) {
    .chatbot_iframe {
        height: 352px;
    }

}

@media screen and (max-width: 435px) {
    .chatbot_iframe {
        width: 100%;
        height: 80%;
        border: none;
        margin: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

@media screen and (max-width: 376px) {
    .chatbot_iframe {
        width: 100%;
        height: 75%;
        border: none;
        margin: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.chatbot_fullscreen {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 75%;
}

.chatbot {
    width: 104px;
    height: 104px;
    right: 90px !important;
    bottom: 120px !important;
    position: fixed;
    z-index: 9998;
    cursor: pointer;
    animation: translate 1s ease-in forwards;
    -webkit-animation: translate 1s ease-in forwards;
}

/* Avoid overlapping with bottom CTAs on mobile */
@media screen and (max-width: 768px) {
    .chatbot {
        width: 70px;
        height: 70px;
        right: 15px !important;
        bottom: 80px !important;
    }
}
@media screen and (max-width: 480px) {
    .chatbot {
        width: 60px;
        height: 60px;
        right: 10px !important;
        bottom: 70px !important;
    }
}

.chatbot::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    right: 0px;
    bottom: 0px;
    cursor: pointer;
    animation: dropdown 1s linear forwards;
    -webkit-animation: dropdown 1s linear forwards;
    animation-delay: 2s;
    -webkit-animation-delay: 2s;
    animation-iteration-count: 3;
    -webkit-animation-iteration-count: 3;
}

@keyframes dropdown {
    0% {
        transform: translate(0px, 0px);
    }
    50% {
        transform: translate(0px, -10px);
    }
    100% {
        transform: translate(0px, 0px);
    }
}

@keyframes translate {
    0% {
        right: -100px;
        bottom: 20px;
    }
    100% {
        right: 30px;
        bottom: 20px;
    }
}

.chatbot_hidden {
    display: none;
    pointer-events: none;
}

.hclose {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    position: absolute;
    bottom: -10px;
    right: -80px;
    z-index: 9999;
    display: none;
}

.hclose::before {
    content: "\2715";
}

.hclose:hover {
    background-color: #147929;
}
