.open-button {
    background-color: linear-gradient(to top left, #09754e, #4bc857);
    position: fixed;
    bottom: 23px;
    right: 28px;
    width: 280px;
}

.chat-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 15px;
    border: 3px solid #f1f1f1;
    z-index: 9;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#widget {
    max-width: 300px;
    background-color: rgb(242, 253, 241);
}

/* Add styles to the form container */
.form-container {
    max-width: 300px;
    padding: 10px;
    background: linear-gradient(to top left, lightgreen, skyblue);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    justify-content: space-between;

}

.form-container textarea:focus {

    outline: none;
}

.form-container .btn {
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    opacity: 0.9;
}

.form-container .btn:hover,
.open-button:hover {
    opacity: 1;
}

.response {
    background-color: #f1f1f1;
    padding: 10px;
    margin: 2px 5px;
    border-radius: 5px;
    margin-top: 5px;
    max-width: 80%;
    margin-right: -15px;
    word-wrap: break-word;
    float: left;
    clear: both;
    font-size: 9px;
}

.message {
    background-color: #f1f1f1;
    padding: 10px;
    margin: 2px 5px;
    border-radius: 5px;
    margin-left: 20px;
    max-width: 80%;
    word-wrap: break-word;
    float: right;
    clear: both;
    font-size: 9px;
}

.chat-messages {
    background-image: url('/assets/images/wachat.png');
    background-repeat: no-repeat;
    background-size: 100%;
    min-height: 80px;
    max-height: 200px;
    overflow-y: scroll;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.containt {
    display: flex;
    align-items: center;
}

.form-container .btn {
    background-color: #8dbeef;
    color: white;
    border: none;
    cursor: pointer;
    width: 15%;
    margin-bottom: 17px;
    float: left;
    margin-left: 5px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container textarea {
    width: 90%;
    padding: 10px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
    resize: none;
    height: 40px;
    float: left;
}

.form-container .btn i {
    font-size: 1.5em;
}

.cs-name {
    color: rgb(255, 255, 255);
    font-size: 0.8em;
    text-align: center;
    margin-top: -15px;
    margin-bottom: 10px;
}

.footer {
    font-size: 0.8em;
    text-align: center;
    margin-top: -15px;
    color: #999;
}

#select-cs {
    background: linear-gradient(to left, lightgreen, skyblue);
    color: #ffffff;
    font-size: 1em;
    padding: 10px 15px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    width: 200px;
    text-align: center;
    position: fixed;
    bottom: 23px;
    transition: all 0.3s ease;
    right: 28px;
    z-index: 9;
}

#select-cs:hover {
    transform: scale(1.05);
    background: linear-gradient(to right, #3b90bb, #60b6e1);
    animation: gradient 1s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.select-cs-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 15px;
    border: 3px solid #f1f1f1;
    z-index: 9;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.cs-container {
    width: 300px;
    padding: 10px;
    background: linear-gradient(to top left, lightgreen, skyblue);
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.cs-row {
    display: flex;
    justify-content: center;
    gap: 5px; /* Mengurangi jarak antar tombol */
    flex-wrap: wrap; /* Supaya tetap di dalam container */
}

.cs-container .btn-cs {
    width: 45%; /* Lebih proporsional dalam container */
    max-width: 120px; /* Mencegah terlalu besar */
    padding: 8px 10px;
    margin: 0; /* Menghindari margin berlebih */
}

.cs-container .btn-cs {
    background-color: #3b90bb;
    color: #fff;
    padding: 7px 12px;
    border: none;
    cursor: pointer;
    width: 30%;
    margin-bottom: 10px;
    border-radius: 25px;
    transition: all 0.3s ease;
    flex: 1;
}

.cs-container .cancel {
    background-color: #3b90bb;
}

.cs-container .btn-cs:hover {
    background-color: #60b6e1;
    transform: scale(1.05);
}

.cs-container #cs-select {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

.cs-container label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

.cs-container input {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
}

#select-cs {
    align-items: center;
    justify-content: center;
    text-align: center;
}

#select-cs span {
    vertical-align: middle;
}

.chat-header {
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom right, rgb(67, 131, 157), rgb(114, 188, 218));
    border: none;
    color: white;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    opacity: 0.8;
    border-radius: 5px;
}

.chat-header:hover {
    background: linear-gradient(to bottom right, rgb(83, 161, 192), rgb(128, 212, 246));
    transform: scale(1.05);
}

.response {
    background-color: #f1f1f1;
    padding: 10px;
    margin: 2px 5px;
    border-radius: 5px;
    margin-top: 5px;
    max-width: 80%;
    margin-right: -15px;
    word-wrap: break-word;
    float: left;
    clear: both;
    font-size: 9px;
}

.wid-footer {
    margin-right: -60px;
    display: flex;
    align-items: center;
    justify-content: right;
}
