﻿.textarea-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    line-height: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    transition: border-color 0.3s ease-in-out;
}

    .textarea-input:focus {
        outline: none;
        border-color: #075e54;
    }


.open-chat-btn {
    width: 50px;
    height: 50px;
    background-color: rgb(102, 153, 51);
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.open-chat-div {
    position: fixed;
    top: -50px;
    z-index: 99999;
    right: 20px;
    text-align: center;
    cursor: move;
}

.open-chat-text {
    color: rgb(102, 153, 51);
    font-size: 12px;
    text-align: center;
}

.open-chat-btn .icon {
    display: block;
}

@keyframes fallFromTop {
    0% {
        top: -50px;
        opacity: 0;
    }

    100% {
        top: calc(100vh - 130px);
        opacity: 1;
    }
}

.open-chat-div.animated {
    animation: fallFromTop 1s forwards;
}

.chatbutton {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #075e54;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

    .chatbutton:focus,
    .chatbutton:hover {
        outline: none;
        background-color: #128c7e;
    }



.chat-container {
    position: fixed;
    bottom: 0;
    z-index: 99999;
    right: 20px;
    width: 350px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: none
}

.chat-header {
    background-color: #075e54;
    color: #fff;
    padding: 10px;
    border-radius: 5px 5px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .chat-header h3 {
        margin: 0;
    }

.minimize-chat-btn,
.close-chat-btn {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.header-chatbuttons {
    display: flex;
    gap: 5px;
}

.form-body input[type="text"],
.form-body input[type="email"] {
    padding: 5px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: none !important;
}

    .form-body input[type="text"]:focus,
    .form-body input[type="email"]:focus {
        outline: none;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }


.form-body button {
    padding: 10px 20px;
    font-size: 16px;
    width: 100%;
    background-color: #075e54;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

    .form-body button[disabled] {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .form-body button:focus,
    .form-body button:hover {
        outline: none;
        background-color: #128c7e;
    }


.form-body:before {
    content: "Welcome to Live Chat";
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.chat-body {
    height: 250px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.form-body {
    display: block
}


.message {
    position: relative;
    max-width: 70%;
    margin-bottom: 10px;
    padding: 1px;
    border-radius: 8px; /*for rectangle change to 1px*/
    font-size: 14px;
    line-height: 18px;
    word-wrap: break-word;
}

.notification-icon {
    position: relative;
}




    .notification-icon.enabled {
        color: #ffc107; /* Set the color for the enabled state */
    }

    .notification-icon.disabled {
        color: #aaa; /* Set the color for the disabled state */
    }



.notification {
    background-color: #dcf8c6;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}



.message p {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 18px;
    word-wrap: break-word;
}

.sent {
    background-color: #DCF8C6;
    align-self: flex-end;
}

.not-sent-icon {
    position: absolute;
    top: 50%;
    left: -25px;
    transform: translateY(-50%);
    color: red;
    font-size: 18px;
}

.received {
    background-color: #ECE5DD;
    align-self: flex-start;
}

    .sent p,
    .received p {
        margin: 0;
    }


.message .time {
    font-size: 11px;
    color: #888888;
    position: relative;
    bottom: 0;
    right: 6px;
    padding-left: 10px;
    float: right;
}

.chat-footer {
    padding: 10px;
    display: flex;
}

    .chat-footer textarea {
        flex-grow: 1;
        padding: 5px;
        border: 1px solid #ccc;
        border-radius: 5px;
        resize: vertical;
    }

    .chat-footer chatbutton {
        padding: 5px 10px;
        margin-left: 10px;
        background-color: #075e54;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }




::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-track {
    background-color: #fff;
}
