﻿:root {
    --border-color: #7e42ff;
    --shadow-color: #6238bd;
    --close-background-color: #ff4d4d;
    --mic-icon-color: #ffffff;
    --close-icon-color: #ffffff;
}

#chat-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#chat-icon {
    position: fixed;
    bottom: 52px;
    right: 60px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#chat-iframe-container {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    position: fixed;
    bottom: 10px;
    right: 20px;
    width: 500px;
    top: 10px;
    display: none;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 5px 50px var(--shadow-color);
    z-index: 98;
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
}

#chat-iframe-container.visible {
    display: block;
    opacity: 1;
}

.chat-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-circle {
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 10px 5px var(--shadow-color);
}

.chat-circle img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.chat-circle svg-icon {
    width: 30px;
    height: 30px;
    fill: var(--mic-icon-color);
    position: absolute;
}

#chat-icon.visible {
    display: none;
}

.chat-close-button {
    position: fixed !important;
    top: 30px !important;
    right: 40px !important;
    width: 30px !important;
    height: 30px !important;
    background-color: var(--close-background-color) !important;
    border: none !important;
    border-radius: 50% !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 99 !important;
    padding: 0px !important;
}

.chat-close-button svg {
    width: 24px;
    height: 24px;
    fill: var(--close-icon-color);
}

@media (max-width: 1000px) {
    #chat-iframe-container {
        top: 0px;
        width: 100%;
        height: 100%;
        left: 0px;
        border: none;
        border-radius: 0px;
    }

    #chat-icon {
        bottom: 40px;
        left: 38px;
    }

    .chat-close-button {
        top: 10px !important;
        right: 20px !important;
    }

    body.hidden-overflow {
        overflow: hidden;
    }
}
