/* chatWidget.css */

#chatIcon {
    position: fixed;
    bottom: 20px;
    right: 100px;
    width: 70px;
    height: 70px;
/*  background-color: blue; */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease, right 0.3s ease;
}

#chatIcon:hover {
    transform: scale(1.1);
}

#chatIcon #icon {
    color: #000000de;
    font-size: 24px;
    transition: color 0.3s ease;
}

#chatWindowContainer {
    position: fixed;
    bottom: 0;
    right: -420px; /* Adjusted for new window size */
    width: 500px;  /* Updated window width */
    max-width: 100%;
    height: 650px; /* Updated window height */
    display: none;
    z-index: 999;
    transition: transform 0.3s ease;
}

#chatWindowContainer.open {
    transform: translateX(-420px); /* Adjusted based on new window size */
}

#chatWindow {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

#loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid blue;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

#chatIframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Customization via CSS Variables */
:root {
    --chat-icon-bg-color: #177ec2;
    --chat-icon-color: white;
    --chat-window-bg-color: white;
    --loader-color: #177ec2;
    --icon-cross-color: white;
}

/* Apply the variables */
#chatIcon {
  /*  background-color: var(--chat-icon-bg-color); */
}

#chatIcon #icon {
   /* color: var(--chat-icon-color); */
}

#chatIcon.open #icon {
    color: var(--icon-cross-color);
}

#chatWindow {
    background-color: var(--chat-window-bg-color);
}

#loader {
    border-top-color: var(--loader-color);
}


/* Frase Icon */
#chatIconFrase {
    position: fixed;
    bottom: 20px;
    right: 130px;
    width: 192px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.3s ease, right 0.3s ease;
	overflow: hidden; /* Oculta a parte que sai da div */
}


#chatIconFrase #iconFrase {
    transition: transform 0.5s ease;
    position: relative;
}
