.mi-chat-widget-instance {
position: fixed;
bottom: 2rem;
border-radius: 42%;
right: 2rem;
z-index: 1000;
font-family: Comfortaa, sans-serif;  .mi-chat-toggle {
position: relative;
z-index: 2;
display: block;
border: none;
cursor: pointer;
overflow: hidden;
padding: 0.5rem;
background: transparent;
width: 6rem;
height: 6rem;
border-radius: 50%;
img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
transition: opacity 0.3s ease, transform 0.3s ease;
}
}
} .mi-chat-channels-container {
opacity: 0;
height: 0;
position: absolute;
bottom: calc(100% + 0.7rem);
right: 0;
z-index: 10;
padding: 0.5rem;
visibility: hidden;
//transition: opacity 0.4s ease, height 0.4s ease, visibility 0.4s;
&.is-visible {
opacity: 1;
height: auto;
visibility: visible;
}
} .mi-chat-channel-btn {
display: flex;
justify-content: flex-end;
align-items: center;
min-width: 15rem;
width: max-content;
border: none;
height: 4.7rem;
box-sizing: border-box;
background: #fff;
border: 0.1rem solid #ccc;
border-radius: 2rem;
padding: 0.6rem;
margin: 0.6rem 0;
cursor: pointer;
font-size: 1.7rem;
color: #333;
text-align: left;
transition: all 0.3s ease;
margin-left: auto;
&:hover {
transform: scale(110%);
background-color: #f0f0f0;
}
.mi-chat-channel-name {
font-family: Comfortaa;
font-weight: 500;
color: rgb(20, 24, 68);
}
img {
width: 4rem;
height: 4rem;
object-fit: cover;
margin-left: 1rem;
}
} .mi-chat-overlay {
position: fixed;
top: 0;
left: 0;
width: 100dvw;
height: 200dvh;
background: rgba(0, 0, 0, 0.5);
z-index: 1900;
display: none;
} .mi-chat-iframe-container {
position: fixed;
top: 20% !important;
right: 0;
transform: translateY(0%) !important;
width: 45rem;
height: 80dvh;
background: #fff;
border-radius: 1rem;
box-shadow: 0 0.4rem 0.6rem rgba(0, 0, 0, 0.1);
z-index: 2000;
overflow: hidden;
cursor: default;
display: none;
@media (max-width: 600px) {
width: 100dvw !important;
right: 0% !important;
}
&.expanded {
width: 75% !important;
height: 95% !important;
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
border-radius: 1rem;
.iframe-header {
> div {
justify-content:center;
.expand-iframe{
margin-left: auto !important;
}
.close-iframe{
margin-right: 0rem !important;
}
}
}
@media (max-width: 600px) {
width: 100dvw !important;
height: 100dvh !important;
transform: unset !important;
top: 0% !important;
left: 0% !important;
}
}
.iframe-header {
padding: 0.5rem;
background: #f17d7d;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
font-size: 3rem;
font-weight: bold;
user-select: none;
border-top-left-radius: 1rem;
border-top-right-radius: 1rem;
> img{
width: 5rem;
height: 5rem;
object-fit: contain;
}
.title {
margin-left: 1rem;
font-size: 2rem;
margin-right: auto;
}
> div {
display: flex;
width: 10rem;
height: 100%;
margin-right: 5rem;
}
}
iframe {
width: 100%;
height: calc(100% - 6rem);
border: 0;
}
.close-iframe,
.expand-iframe,
.drag-iframe {
display: flex !important;
justify-content: center !important;
align-items: center !important;
font-size: 2rem;
background: none;
border: solid 0rem;
border-radius: 100%;
color: #fff;
cursor: pointer;
margin-right: 1rem;
transition: all 500ms ease-in-out;
@media (max-width: 600px) {
font-size: 2.5rem;
}
&:hover {
background-color: #a84f4f;
}
span {
display: flex;
align-items: center;
justify-content: center;
width: 3.5rem !important;
height: 3.5rem !important;
}
}
.close-iframe {
margin-right: 4rem !important;
}
.drag-iframe {
@media (max-width: 600px) {
display: none !important;
}
}
&.expanded .drag-iframe {
display: none !important;
}
}