/* General Chat Label Style */
.chat-label {
    position: fixed;
    right: 80px;
    bottom: 19px;
    height: 52px;
    width: 52px;
    background: #c09900;
    text-align: center;
    line-height: 55px;
    border-radius: 50%;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 16000160;
}

.chat-label i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.chat-label i.fas {
    opacity: 0;
    pointer-events: none;
}

/* Chat Wrapper Styles */
.wrapper {
    position: fixed;
    bottom: 85px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 16000160;
}


@media (max-width: 575.98px) {
    .wrapper{
    right: 15px;
    left: 15px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .wrapper{
        right: 15px;
        left: 15px;
      }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .wrapper {
        right: 30px;
        width: 450px;

    }
}

@media (min-width: 1200px) {
    .wrapper {
        right: 30px;
        width: 450px;

    }
}
.wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

.wrapper .head-text {
    line-height: 60px;
    color: #fff;
    border-radius: 15px 15px 0 0;
    padding: 0 20px;
    font-weight: 500;
    font-size: 20px;
    background: #c09900;
}



.chat-box .desc-text {
    color: #515365;
    text-align: center;
    font-size: 17px;
    font-weight: 500;
}

/* Chat Form Styles */
.chat-box form {
    padding: 10px 15px;
    margin: 20px 0;
    border-radius: 25px;
    border: 1px solid lightgrey;
}

.chat-box form .field {
    height: 50px;
    margin-top: 20px;
}

.chat-box form .field input,
.chat-box form .textarea textarea,
.chat-box form .field button {
    width: 100%;
    height: 100%;
    padding-left: 20px;
    border: 1px solid lightgrey;
    outline: none;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.chat-box form .field input:focus,
.chat-box form .textarea textarea:focus {
    border-color: #c09900;
}

.chat-box form .textarea {
    height: 70px;
}

.chat-box form .textarea textarea {
    border-radius: 50px;
    resize: none;
    padding: 15px 20px;
}

.chat-box form .field button {
    background: #c09900;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.select-form {
    width: 100%;
    height: 100%;
    padding: 15px 20px;
    border: 1px solid lightgrey;
    outline: none;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.chat-box form .field button:active {
    transform: scale(0.97);
}

/* Chat Container Styles */
#chatContainer {
    flex-direction: column;
    height: 400px;
    overflow: hidden;
}

.messages {
    height: 500px;
    overflow: scroll;
    padding: 10px;
    border-bottom: 1px solid lightgrey;
}

.message {
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 100%;
}

.message.bot,
.message.user {
    background-color: #ececec;
    position: relative;
}

.message:last-child {
    margin-bottom: 80px;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message-input {
    display: flex;
    padding: 10px;
}

.message-input input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid lightgrey;
    border-radius: 15px;
    margin-right: 10px;
}

.message-input button {
    padding: 8px 15px;
    border: none;
    background: #a445b2;
    color: white;
    border-radius: 15px;
    cursor: pointer;
}

.chat-input {
    width: 100%;
    /* height: 100%; */
    padding-left: 20px;
    border: 1px solid lightgrey;
    outline: none;
    border-radius: 25px;
    font-size: 16px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}
.send-button {
    width: 60px;
    height: 50px;
    border-radius: 50%;
    margin-left: 5px;
}
.chat-footer {
    z-index: 1;
    bottom: 3px;
    padding: 10px;
    display: flex;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}


.my-message:after {
    bottom: 100%;
    left: 30px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-bottom-color: #efefef;
    border-width: 10px;
    margin-left: -10px;
}
.fw-semibold {
    font-size: 1.125rem;
}
.dot-label {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 100%;
    margin-inline-end: 5px;
}

.bg-success { 
    
    background: #09ad95 !important;
}

.card-footer textarea {
    resize: none;
}



/* Style for audio element */
audio {
    width: 100%; /* Make audio player fill the width of the container */
    max-width: 300px; /* Set a max width for the audio player */
    background-color: #f7f7f7;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 0;
}

/* Style for duration text */
.audio-duration {
    font-size: 12px;
    color: #555;
}
.record-button {
    width: 60px;
    height: 50px;
    border-radius: 50%;
    margin-left: 5px;
}


#chatContainer {
    background-image: url(/build/frontend/assets/images/bg-chat.png);
    background-size: contain;
}
   

.admin-style-chat {
    background: #c09900 !important;
    color: #fff;
}
.admin-style-chat:after {

    border-bottom-color: #c09900;
  
}