﻿
.minimize-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1001;
    background: #316468;
    color: white;
    border: none;
    border-radius: 30%;
    width: 25px;
    height: 25px;
    font-size: 18px;
    cursor: pointer;
    /*display: none;*/
    /*
    width: 40px;
    height: 40px;
    font-size: 24px;
    top: 10px;
    right: 10px;*/
}

.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #316468;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1001;
    opacity: 0.7;
}

    .chat-icon.min {
        opacity: 1;
    }

    .chat-icon.new-message {
        animation: pulse 2s infinite;
        opacity: 1;
    }

        .chat-icon.new-message::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 12px;
            height: 12px;
            background-color: #ff4444;
            border-radius: 50%;
            border: 2px solid white;
        }

    .chat-icon:hover {
        background-color: #3a787c;
        opacity: 1;
    }

    .chat-icon:active {
        transform: scale(0.95);
        opacity: 1;
    }

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 0px;
    width: 30vw;
    height: 75vh;
    display: none;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1000;
    padding: 0;
    border: none;
}

    .chatbot-container.open {
        display: block;
    }

    .chatbot-container.closed {
        display: none;
    }

    .chatbot-container iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

.chat-icon-image {
    padding-top: 2px;
    width: 50%;
    height: 50%;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}


.hide {
    display: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(49, 100, 104, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(49, 100, 104, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(49, 100, 104, 0);
    }
}


/*315, 550, 600, 750, 768, 800, 870*/
/*@media only screen and (min-width: 768px) {*/
@media (max-width: 768px) {

    .chat-icon {
        /*display: none;*/
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 10px;
        right: 10px;
        z-index: 0;
    }

        .chat-icon:hover {
            opacity: 0.7; /*mobile hover style always applied*/
        }

    .chatbot-container {
        width: 100vw;
        height: 100vh;
        bottom: 0px;
        right: 0;
        left: 0vw;
        border-radius: 0;
        overflow: hidden;
    }

    .minimize-btn {
    }
}
