/* Section Background Default Colors */

.container-content-basic .h_editor_section {
    background-color: aqua;
}

.container-content-inbound .h_editor_section {
    background-color: rgb(26, 255, 0);
}


/* Back to top button */
.stack-top {
    position: relative;
    right: 1.25rem;
    float: right;
    margin-top: -8.5rem;
    width: auto;
}

.stack-top .to-top-button {
    width: 3rem;
    height: 3rem;
    border-style: none;
    border-radius: 50%;
    border-color: var(--bs-white);
    box-shadow: 0 0 0.313rem rgba(0, 0, 0, 0.17);
    background-color: var(--bs-white);
    font-size: 1.25rem;
}

/* Docbot Modal CSS */
.docbot-modal .modal-body {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.docbot-modal .modal-body .docbot-modal-body-wrapper {
    display: flex;
    height: 100%;
}

.docbot-modal .modal-body .docbot-modal-body-wrapper .docbot-conversations-wrapper {
    min-width: 260px;
    height: 100%;
    background: #f9f9f9;
    padding: 2rem 1rem;
}

.docbot-modal .modal-body .docbot-modal-body-wrapper .docbot-conversations-list {
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
    padding-bottom: 2rem;
    gap: 0.5rem;
}

.docbot-modal .modal-body .docbot-modal-body-wrapper .docbot-conversations-wrapper .conversation-wrapper {
    border: 1px solid #dbdfe9;
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.docbot-modal .modal-body .docbot-modal-body-wrapper .docbot-conversations-wrapper .conversation-wrapper:hover {
    border: 1px solid #ececec;
    background-color: #ececec;
}

.docbot-modal .modal-body .docbot-modal-body-wrapper .docbot-conversations-wrapper .conversation-title {
    display: -webkit-box;
    width: 200px;
    /* Set a width to see the effect */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.docbot-modal .modal-body .docbot-modal-body-wrapper .docbot-thread-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 6rem;
}

.docbot-thread-container {
    width: 100%;
    max-width: 1140px;
}

.docbot-modal .modal-body #docbotMessage {
    display: flex;
    flex-direction: column;
    min-height: 460px;
    max-height: 460px;
    padding-right: 1.5rem;
    overflow: auto;
    gap: 2rem;
}

.docbot-user-message-wrapper {
    --tw-bg-opacity: 1;
    align-self: end;
    max-width: 65%;
    border-radius: 1rem;
    background-color: #f4f4f4;
    padding: 1rem 1.25rem;
    text-align: right;
}

.docbot-user-name {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.docbot-user-message {
    line-height: 1.8;
}

.docbot-assistant-message-wrapper {
    display: flex;
    gap: 1.5rem;
}

.docbot-assistant-message {
    line-height: 1.8;
}

.docbot-textarea textarea {
    border-radius: 1rem;
    background: #f4f4f4;
    padding-right: 4rem;
    line-height: 1.8;
    font-size: 16px;
}

.docbot-send-button {
    display: flex;
    position: absolute;
    right: 4rem;
    bottom: 5rem;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6rem;
    background: #d7d7d7;
}

/* Loader CSS */
#loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 60px;
    height: 60px;
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}