/* CHATBOX
=============== */
.chatbox {
    position: fixed;
    bottom: 30px;
    right: 30px;
}

/* CONTENT IS CLOSE */
.chatbox__support {
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 350px;
    z-index: -123456;
    opacity: 0;
    transition: all .5s ease-in-out;
}

/* CONTENT ISOPEN */
.chatbox--active {
    transform: translateY(-40px);
    z-index: 123456;
    opacity: 1;
    

}

/* BUTTON */
.chatbox__button {
    text-align: right;
}

.send__button {
    padding: 6px;
    background: orange;
    border: none;
    outline: none;
    cursor: pointer;
    color: black !important;
}


/* HEADER */
.chatbox__header {
    /* position: sticky; */
    top: 0;
    background: orange;
}

/* MESSAGES */
.chatbox__messages {
    margin-top: auto;
    display: flex;
    overflow-y: scroll;
    flex-direction: column-reverse;

}

.messages__item {
    /* background: orange; */
    max-width: 60.6%;
    width: fit-content;
}

.messages__item--operator {
    margin-left: auto;
}

.messages__item--visitor {
    margin-right: auto;
}

/* FOOTER */
.chatbox__footer {
    position: sticky;
    bottom: 0;
}

.chatbox__support {
    background: white;
    height: 450px;
    width: 350px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* HEADER */
.chatbox__header {
    position: sticky;
    background-image: linear-gradient(
    315deg,
    hsl(293deg 94% 60%) 0%,
    hsl(310deg 100% 54%) 11%,
    hsl(317deg 100% 50%) 23%,
    hsl(328deg 100% 57%) 34%,
    hsl(343deg 100% 64%) 46%,
    hsl(1deg 100% 69%) 57%,
    hsl(18deg 100% 65%) 68%,
    hsl(29deg 100% 62%) 79%,
    hsl(37deg 100% 61%) 90%,
    hsl(43deg 99% 61%) 100%
    );
    display: flex;
    align-items: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    
}

.chatbox__image--header {
    margin-right: 10px;
}

.chatbox__heading--header {
    font-size: 1.2rem;
    color: white;
}

.chatbox__description--header {
    font-size: .9rem;
    color: white;
}

/* Messages */
.chatbox__messages {
    padding: 0 20px;
}

.messages__item {
    margin-top: 10px;
    background: #eee;
    padding: 8px 12px;
    max-width: 70%;
    color: black;
}

.messages__item--visitor,
.messages__item--typing {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.messages__item--operator {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    background: var(--primary);
    color: rgb(10, 10, 10);
    background: gold;
}

/* FOOTER */
.chatbox__footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    background: var(--secondaryGradient);
    box-shadow: var(--secondaryBoxShadow);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-top: 20px;
}

.chatbox__footer textarea {
    width: 80%;
    border: none;
    padding: 10px 10px;
    border-radius: 10px;
    text-align: left;
    white-space: wrap;
    max-width: 100%; /* Allow wrapping at a certain width */
    outline: none;
    overflow-y: auto;
    resize: none;
}

textarea::-webkit-scrollbar{
    width: 6px;
}

textarea::-webkit-scrollbar-thumb{
    background-color: rgba(156, 141, 141, 0.2); 
    border-radius: 3px;
}

.chatbox__send--footer {
    color: white;
}

.chatbox__button button,
.chatbox__button button:focus,
.chatbox__button button:visited {
    padding: 10px;
    background: rgb(167, 165, 165);
    border: none;
    outline: none;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Adjust styles for smaller devices */
@media (max-width: 768px) {
    .chatbox {
        position: fixed;
        bottom: 15px;
        right: 15px;
    }
  

    .chatbox__support {
        width: 250px;
        height: 350px;
        
    }
}

/*Alert*/

.alert {
    position: fixed;
    bottom: 105px;
    left: 700px;
    width: 500px;
    height: auto;
    background-color: rgb(247, 243, 243);
    font-size: 18px;
    border-radius: 10px;
    margin-right: 60px;
    align-items: center;
    padding: 5px;
     /* Defina um valor alto para o z-index para garantir que fique por cima do chatbox */
}
  
  .alert img {
    margin-bottom:30px ;
    height: 75px;
    width: 75px;
    border-radius: 50%;
  }

  .alert-msg{
    display: flex;
    align-items: center;
    height: 97px;
  }

  .message-cami{
    margin-left:20px;
    margin-bottom: 22px;
    margin-right: 20px;

  }
  
.message-cami h5, p{
    margin-top: 5px;
    margin-bottom: 5px;

}
.converse-T{
    margin-top: 5px;
    margin-bottom: 5px;
}
.title{ 
    display: flex;
    align-items: center;
}
hr {
    border: none;
    height: 2px;
    background-color: red; /* Change the color to any color you want */
  }
  
  /* If you want a bolder horizontal rule, you can adjust the height value */
  hr.bolder {
    height: 4px;
  }

@media only screen and (max-width: 480px) {
    .alert {
        width: 90%; /* Adjust width for even smaller screens */
        margin-right: 5px; /* Adjust margins for better alignment */
    }

    .alert-img {
        display: none;

    }

    .message-cami {
        margin-left: 5px; /* Adjust margins for better alignment */
        margin-right: 5px; /* Adjust margins for better alignment */
    }

    .converse {
        font-size: 14px; /* Adjust font size for even smaller screens */
    }
    
    
}

.message-timestamp {
    font-size: 9px;
    float: right;
    padding-top: 15px;
    opacity: 70%;
    padding-left: 10px;
}

/* Ensure proper formatting and layout of message and timestamp */
.messages__item {
    clear: both;
    padding: 5px;
}

.messages__item--visitor .message-content {
    background-color: #f5f5f5;
    border-radius: 5px;
}

.messages__item--operator .message-content {
    color: white;
    border-radius: 5px;
}

.messages__item--visitor .message-timestamp {
    text-align: right;
}

.messages__item--operator .message-timestamp {
    text-align: right;
    color: white
}