.sur_bubbles_coordinator {
    position: fixed;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 9999;
    flex-direction: row-reverse;
}

.sur_bubble_base {
    position: relative;
    width: 48px;
    height: 48px;
    transition: transform 0.15s ease-in-out;
    padding: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 15px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate;
    cursor: pointer;
}

.sur_bubble_base::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg, #f48fb1, #f9a825, #81c784, #4fc3f7, #9575cd, #f48fb1
    );
    -webkit-mask: radial-gradient(
        farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)
    );
    mask: radial-gradient(
        farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)
    );
    pointer-events: none;
    transition: cubic-bezier(0.54, 0, 0.14, 1) 1s all;
}

.sur_bubble_base:hover::before {
    transform: rotate(190deg);
}

.sur_bubble_base:hover {
    transform: scale(1.1);
}

.sur_bubble_base img {
    width: 100%;
}

.sur_chat_container {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 650px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgb(0 0 0 / 12%);
    z-index: 9999;
    transition: all 0.15s ease-in-out;
    visibility: hidden;
    transform: scale(0.95);
    opacity: 0;
    transform-origin: bottom right;
    outline: 1px solid #dadada75;
}

.sur_chat_container.active {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

.sur_chat_container.big {
    width: 950px;
    height: 80vh;
}

.sc_close_button {
    border: 1px solid #dfdfdf;
    background: white;
    width: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    padding: 0.5em;
    position: absolute;
    right: 0;
    top: -2.5em;
    cursor: pointer;
    transition: 0.15s ease-in-out all;
    box-shadow: 0 0 10px #00000033;
}

.sc_close_button:hover {
    transform: scale(1.1);
    background: #ffe8e8;
    border-color: #fdcece;
}

@media (max-width: 768px) {
	.sur_chat_container .aichat-container,
    .sur_chat_container.big .aichat-container {
        height: 100%;
    }
    .sur_bubbles_coordinator,
    .sur_chat_container {
        right: 20px;
    }
}

@media (max-width: 840px) {
	 .sur_chat_container {
        width: calc(100% - 40px);
    }
	
}

@media (max-width: 991px) {
    .sur_chat_container {
        bottom: 130px;
    }
	.sur_chat_container {
        bottom: 130px;
    }

    .sur_bubbles_coordinator {
        bottom: 70px;
    }

    .sur_chat_container.big {
        width: calc(100% - 40px);
    }
}

/* Make React root fill the container */
.sur_chat_container > div[data-mode] {
    height: 100%;
}

.sur_chat_container > iframe {
    height: 100%;
    width: 100%;
    border: none;
    display: block;
    border-radius: 20px;
}
