@font-face {
    font-family: "mark_book";
    src: url("/wp-content/themes/MageniumSalientChild/fonts/Mark-Book.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
#chatbot-toggle {
    position: fixed;
    bottom: 16px;
    right: 24px;
    z-index: 9998;
    background-color: #fc624a;
    color: #fff;
    border: none;
    height: 66px;
    width: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all ease-out 50ms;
}
#chatbot-toggle:not(.open) {
    animation: pulse 2s cubic-bezier(1,-0.47,.25,1) infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
#chatbot-toggle:hover {
    transform: scale(calc(60/56));
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
#chatbot-toggle:active {
    box-shadow: none;
    transform: scale(calc(52/60));
}
#chatbot-toggle:not(.open) .if-closed {
    display: inline;
    width: 48px;
    height: 48px;
}
#chatbot-toggle:not(.open) .if-open {
    display: none;
}
#chatbot-toggle.open .if-closed {
    display: none;
}
#chatbot-toggle.open .if-open {
    display: inline;
    width: 54px;
    height: 54px;
}
#chatbot-container {
    display: none;
    position: fixed;
    right: 24px;
    bottom: 86px;
    width: calc(100vw - 10px - 20px);
    height: calc(100vh - 106px - 48px);
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: height ease-out 250ms;
    max-width: 500px;
}
#chatbot-container.loading {
    height: 160px;
}
#chatbot-container.loading #chatbot-iframe {
    opacity: 0;
}
#chatbot-iframe {
    width: 100%;
    height: 100%;
    opacity: 1;
}
.chatbot__header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    background-color: #002269;
    color: #ffffff;
}
.chatbot__header h2 {
    margin: 0;
}
#chatbot-loading {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    padding-bottom: 16px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #6f6f6f;
    animation: 1.5s linear infinite loadingOpacity;
}
@keyframes loadingOpacity {
    0% {
        opacity: 100%;
    }
    20% {
        opacity: 50%;
    }
    80% {
        opacity: 100%;
    }
}
#chatbot-container.loading #chatbot-loading {
    display: flex;
}
