﻿#chat-container-iframe {
    position: fixed;
    bottom: 140px;
    right: 20px;
    width: 100%;
    min-width: 320px;
    max-width: 600px;
    top:16px;
    /*max-height: 520px;*/
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
    transform-origin: bottom right;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
    #chat-container-iframe.active {
        transform: scale(1);
        opacity: 1;
    }
#chat-iframe {
    overflow-clip-margin: unset !important;
    border-width: unset !important;
    border-style: unset !important;
    border-color: unset !important;
    border-image: unset !important;
    width: 100%;
    height: 100%;
}
    #chat-bubble {
        position: fixed;
        bottom: 130px;
        right: 20px;
        width: 50px;
        height: 50px;
        background-color: #007bff !important;
        color: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transition: transform 0.3s ease, background-color 0.3s ease;
    }

#chat-bubble:hover {
    transform: scale(1.1);
}

#close-chat {
    opacity: .4;
    border-radius: 8px;
    position: absolute;
    top: 32px;
    right: 16px !important;
    transform: translate(0, -50%);
    width: 30px;
    height: 30px;
    clear: both;
    margin: auto;
    z-index: 999;
}
    #close-chat.bi-x {
        font-size: 30px;
        margin: 0;
        padding: 0;
        line-height: 1;
    }
    #close-chat:hover {
        background-color: #cecece;
        cursor: pointer;
    }

.close-chat-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 24px;
    padding: 0;
    cursor: pointer;
}

    .close-chat-btn:hover {
        color: #000000;
    }
#chat-bubble i.icon::after {
  width: 24px;
  height: 24px;
  background-size: 24px;
  background: url(https://chat.softvn.com/themes/default/images/chat-dots-fill.svg?t=1) no-repeat center;
  position: absolute;
  content: '';
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#close-chat::after {
  width: 30px;
  height: 30px;
  background-size: 30px;
  background: url(https://chat.softvn.com/themes/default/images/x.svg?t=3) no-repeat center;
  position: absolute;
  content: '';
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media(max-width:600px) {
    #chat-bubble {
        right: 16px;
        width: 42px;
        height: 42px;
    }
}