.configuration-card-chatbot:before {
    background: #00a4a6;
}

.configuration-card-chatbot .configuration-card-icon,
.configuration-section-icon-chatbot {
    color: #008b8d;
    background: #e7f7f7;
}

.configuration-chatbot-heading {
    position: relative;
    padding-right: 180px;
}

.configuration-chatbot-kicker {
    display: block;
    margin-bottom: 4px;
    color: #008b8d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.configuration-chatbot-access {
    position: absolute;
    top: 50%;
    right: 22px;
    padding: 7px 11px;
    color: #31506e;
    font-size: 11px;
    font-weight: 600;
    background: #edf3f8;
    border-radius: 20px;
    transform: translateY(-50%);
}

.configuration-chatbot-access i {
    margin-right: 5px;
    color: #008b8d;
}

.configuration-chatbot-app {
    position: relative;
    display: flex;
    height: 680px;
    min-height: 620px;
    margin-bottom: 28px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe6ed;
    border-radius: 13px;
    box-shadow: 0 12px 34px rgba(23, 54, 93, .11);
}

.configuration-chatbot-sidebar {
    display: flex;
    flex: 0 0 260px;
    flex-direction: column;
    width: 260px;
    padding: 18px 14px 15px;
    color: #dbe7f0;
    background: linear-gradient(180deg, #173b5d 0%, #112e4b 100%);
}

.configuration-chatbot-new {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 45px;
    padding: 10px 13px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    background: #00a4a6;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 7px 18px rgba(0, 164, 166, .24);
    transition: background .18s ease, transform .18s ease;
}

.configuration-chatbot-new:hover,
.configuration-chatbot-new:focus {
    color: #fff;
    background: #00b1b3;
    outline: 0;
    transform: translateY(-1px);
}

.configuration-chatbot-new i {
    margin-right: 9px;
}

.configuration-chatbot-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 22px 3px 9px;
    color: rgba(255, 255, 255, .55);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
}

.configuration-chatbot-history-heading button {
    padding: 3px 5px;
    color: rgba(255, 255, 255, .48);
    background: transparent;
    border: 0;
}

.configuration-chatbot-history-heading button:hover {
    color: #fff;
}

.configuration-chatbot-history {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.configuration-chatbot-history::-webkit-scrollbar,
.configuration-chatbot-thread::-webkit-scrollbar {
    width: 6px;
}

.configuration-chatbot-history::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 6px;
}

.configuration-chatbot-thread::-webkit-scrollbar-thumb {
    background: #dbe2e9;
    border-radius: 6px;
}

.configuration-chatbot-history-item {
    position: relative;
    display: flex;
    margin-bottom: 4px;
    border-radius: 7px;
}

.configuration-chatbot-history-item:hover,
.configuration-chatbot-history-item.active {
    background: rgba(255, 255, 255, .09);
}

.configuration-chatbot-history-open {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    padding: 10px 27px 10px 9px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    text-align: left;
    background: transparent;
    border: 0;
}

.configuration-chatbot-history-item.active .configuration-chatbot-history-open {
    color: #fff;
}

.configuration-chatbot-history-open i {
    flex: 0 0 20px;
    color: #70d4d1;
}

.configuration-chatbot-history-open span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.configuration-chatbot-history-remove {
    position: absolute;
    top: 7px;
    right: 5px;
    display: none;
    padding: 4px 6px;
    color: rgba(255, 255, 255, .48);
    background: transparent;
    border: 0;
}

.configuration-chatbot-history-item:hover .configuration-chatbot-history-remove {
    display: block;
}

.configuration-chatbot-history-remove:hover {
    color: #fff;
}

.configuration-chatbot-history-empty {
    padding: 22px 12px;
    color: rgba(255, 255, 255, .42);
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}

.configuration-chatbot-history-empty i {
    margin-bottom: 6px;
    font-size: 21px;
}

.configuration-chatbot-history-empty p {
    margin: 0;
}

.configuration-chatbot-scope {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 8px;
}

.configuration-chatbot-scope > i {
    margin-right: 10px;
    color: #70d4d1;
    font-size: 16px;
}

.configuration-chatbot-scope strong,
.configuration-chatbot-scope span {
    display: block;
}

.configuration-chatbot-scope strong {
    color: rgba(255, 255, 255, .85);
    font-size: 10px;
}

.configuration-chatbot-scope span {
    margin-top: 2px;
    font-size: 9px;
}

.configuration-chatbot-conversation {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    background: #f8fafc;
}

.configuration-chatbot-conversation-header {
    display: flex;
    flex: 0 0 64px;
    align-items: center;
    min-height: 64px;
    padding: 11px 20px;
    background: #fff;
    border-bottom: 1px solid #e8edf2;
}

.configuration-chatbot-avatar {
    display: flex;
    flex: 0 0 39px;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    margin-right: 11px;
    color: #fff;
    font-size: 16px;
    background: linear-gradient(135deg, #00a4a6, #087b88);
    border-radius: 10px;
}

.configuration-chatbot-conversation-header strong,
.configuration-chatbot-conversation-header span {
    display: block;
}

.configuration-chatbot-conversation-header strong {
    color: #17365d;
    font-size: 13px;
}

.configuration-chatbot-conversation-header span {
    margin-top: 3px;
    color: #8090a2;
    font-size: 9px;
}

.configuration-chatbot-conversation-header span i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 4px;
    background: #36b86b;
    border-radius: 50%;
}

.configuration-chatbot-mobile-history {
    display: none;
    margin-left: auto;
    color: #315b88;
    background: #edf3f8;
    border: 0;
    border-radius: 7px;
}

.configuration-chatbot-thread {
    position: relative;
    flex: 1;
    min-height: 0;
    padding: 27px 30px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 100% 0, rgba(0, 164, 166, .045), transparent 26%),
        #f8fafc;
}

.configuration-chatbot-welcome {
    width: 100%;
    max-width: 690px;
    margin: 35px auto 0;
    text-align: center;
}

.configuration-chatbot-welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    color: #008b8d;
    font-size: 23px;
    background: #e3f5f5;
    border: 1px solid #cbeaea;
    border-radius: 17px;
}

.configuration-chatbot-welcome h3 {
    margin: 0 0 7px;
    color: #17365d;
    font-size: 23px;
    font-weight: 600;
}

.configuration-chatbot-welcome > p {
    max-width: 590px;
    margin: 0 auto;
    color: #718092;
    font-size: 12px;
    line-height: 1.65;
}

.configuration-chatbot-suggestions {
    display: flex;
    margin: 25px -5px 0;
}

.configuration-chatbot-suggestions button {
    display: flex;
    flex: 1;
    align-items: flex-start;
    min-width: 0;
    margin: 0 5px;
    padding: 14px;
    color: #68788b;
    font-size: 10px;
    line-height: 1.4;
    text-align: left;
    background: #fff;
    border: 1px solid #e1e7ed;
    border-radius: 9px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.configuration-chatbot-suggestions button:hover,
.configuration-chatbot-suggestions button:focus {
    border-color: #9cd6d6;
    box-shadow: 0 7px 18px rgba(23, 54, 93, .08);
    outline: 0;
    transform: translateY(-2px);
}

.configuration-chatbot-suggestions button > i {
    flex: 0 0 28px;
    margin-top: 2px;
    color: #008b8d;
    font-size: 15px;
}

.configuration-chatbot-suggestions strong {
    display: block;
    margin-bottom: 3px;
    color: #31506e;
    font-size: 10px;
}

.configuration-chatbot-bubble {
    display: flex;
    max-width: 83%;
    margin-bottom: 22px;
}

.configuration-chatbot-bubble.is-user {
    flex-direction: row-reverse;
    margin-left: auto;
}

.configuration-chatbot-bubble-avatar {
    display: flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    color: #fff;
    font-size: 12px;
    background: #00a4a6;
    border-radius: 9px;
}

.configuration-chatbot-bubble.is-user .configuration-chatbot-bubble-avatar {
    margin-right: 0;
    margin-left: 10px;
    background: #315b88;
}

.configuration-chatbot-bubble-body {
    min-width: 0;
}

.configuration-chatbot-bubble-content {
    padding: 13px 16px;
    color: #44566b;
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-wrap;
    background: #fff;
    border: 1px solid #e1e7ed;
    border-radius: 4px 12px 12px 12px;
    box-shadow: 0 4px 13px rgba(23, 54, 93, .05);
}

.configuration-chatbot-bubble.is-user .configuration-chatbot-bubble-content {
    color: #fff;
    background: #315b88;
    border-color: #315b88;
    border-radius: 12px 4px 12px 12px;
    white-space: pre-wrap;
}

.configuration-chatbot-bubble-content p {
    margin: 0 0 10px;
}

.configuration-chatbot-bubble-content p:last-child {
    margin-bottom: 0;
}

.configuration-chatbot-bubble-content h1,
.configuration-chatbot-bubble-content h2,
.configuration-chatbot-bubble-content h3,
.configuration-chatbot-bubble-content h4 {
    margin: 12px 0 6px;
    color: #17365d;
    font-weight: 600;
}

.configuration-chatbot-bubble-content h1:first-child,
.configuration-chatbot-bubble-content h2:first-child,
.configuration-chatbot-bubble-content h3:first-child,
.configuration-chatbot-bubble-content h4:first-child {
    margin-top: 0;
}

.chatbot-list-item {
    position: relative;
    display: block;
    padding-left: 14px;
}

.chatbot-list-item > i {
    position: absolute;
    top: 8px;
    left: 1px;
    width: 4px;
    height: 4px;
    background: #00a4a6;
    border-radius: 50%;
}

.configuration-chatbot-bubble-body > small {
    display: block;
    margin-top: 5px;
    color: #a0aab5;
    font-size: 8px;
}

.configuration-chatbot-bubble.is-user .configuration-chatbot-bubble-body > small {
    text-align: right;
}

.configuration-chatbot-bubble-files {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.configuration-chatbot-bubble-files span {
    display: inline-block;
    margin: 3px 5px 0 0;
    font-size: 9px;
}

.configuration-chatbot-bubble-files i {
    margin-right: 4px;
}

.configuration-chatbot-bubble.is-new {
    animation: chatbotBubbleIn .2s ease both;
}

@keyframes chatbotBubbleIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.configuration-chatbot-typing {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.configuration-chatbot-typing > div {
    min-width: 155px;
    padding: 12px 15px 9px;
    background: #fff;
    border: 1px solid #e1e7ed;
    border-radius: 4px 12px 12px 12px;
}

.configuration-chatbot-typing > div > i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 3px;
    background: #8da0b2;
    border-radius: 50%;
    animation: chatbotTyping 1.1s infinite ease-in-out;
}

.configuration-chatbot-typing > div > i:nth-child(2) { animation-delay: .15s; }
.configuration-chatbot-typing > div > i:nth-child(3) { animation-delay: .3s; }

.configuration-chatbot-typing small {
    display: block;
    margin-top: 5px;
    color: #9aa6b3;
    font-size: 8px;
}

@keyframes chatbotTyping {
    0%, 60%, 100% { opacity: .35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

.configuration-chatbot-error {
    display: none;
    margin: 0 20px 8px;
    padding: 9px 12px;
    color: #9a3040;
    font-size: 10px;
    background: #fff0f2;
    border: 1px solid #f3ccd2;
    border-radius: 7px;
}

.configuration-chatbot-attachment-list {
    display: none;
    padding: 8px 20px 0;
    background: #fff;
}

.configuration-chatbot-attachment {
    display: inline-flex;
    align-items: center;
    max-width: 220px;
    margin: 0 6px 5px 0;
    padding: 6px 7px 6px 9px;
    color: #4c6075;
    font-size: 9px;
    background: #eef5f6;
    border: 1px solid #d8e9ea;
    border-radius: 20px;
}

.configuration-chatbot-attachment > i {
    margin-right: 5px;
    color: #008b8d;
}

.configuration-chatbot-attachment b {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.configuration-chatbot-attachment button {
    margin-left: 5px;
    padding: 0 2px;
    color: #738497;
    background: transparent;
    border: 0;
}

.configuration-chatbot-composer {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    margin: 0 20px 7px;
    padding: 8px;
    background: #fff;
    border: 1px solid #d9e2e9;
    border-radius: 11px;
    box-shadow: 0 5px 17px rgba(23, 54, 93, .08);
}

.configuration-chatbot-composer:focus-within {
    border-color: #83c9ca;
    box-shadow: 0 0 0 3px rgba(0, 164, 166, .08);
}

.configuration-chatbot-attach {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 6px 0 0;
    color: #71849a;
    font-size: 15px;
    cursor: pointer;
    background: #f0f4f7;
    border-radius: 8px;
}

.configuration-chatbot-attach:hover {
    color: #008b8d;
    background: #e7f7f7;
}

.configuration-chatbot-attach input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.configuration-chatbot-composer textarea {
    flex: 1;
    min-height: 34px;
    max-height: 140px;
    padding: 8px 6px 5px;
    resize: none;
    color: #394c61;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.45;
    background: transparent;
    border: 0;
    outline: 0;
}

.configuration-chatbot-send {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 7px;
    color: #fff;
    background: #00a4a6;
    border: 0;
    border-radius: 9px;
}

.configuration-chatbot-send:hover,
.configuration-chatbot-send:focus {
    color: #fff;
    background: #008f91;
    outline: 0;
}

.configuration-chatbot-send:disabled {
    cursor: wait;
    opacity: .65;
}

.configuration-chatbot-composer-note {
    display: flex;
    justify-content: space-between;
    padding: 0 21px 10px;
    color: #9aa5b1;
    font-size: 8px;
}

.configuration-chatbot-mobile-backdrop {
    display: none;
}

@media (max-width: 991px) {
    .configuration-chatbot-app {
        height: 650px;
    }

    .configuration-chatbot-sidebar {
        flex-basis: 225px;
        width: 225px;
    }

    .configuration-chatbot-suggestions {
        display: block;
    }

    .configuration-chatbot-suggestions button {
        width: 100%;
        margin: 0 0 8px;
    }
}

@media (max-width: 767px) {
    .configuration-chatbot-heading {
        display: block;
        padding-right: 18px;
    }

    .configuration-chatbot-heading .configuration-section-icon {
        float: left;
    }

    .configuration-chatbot-access {
        position: static;
        display: inline-block;
        margin: 14px 0 0 64px;
        transform: none;
    }

    .configuration-chatbot-app {
        height: calc(100vh - 185px);
        min-height: 560px;
        overflow: visible;
    }

    .configuration-chatbot-sidebar {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 12;
        width: 260px;
        border-radius: 12px 0 0 12px;
        box-shadow: 12px 0 30px rgba(10, 34, 56, .22);
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    .configuration-chatbot-app.history-open .configuration-chatbot-sidebar {
        transform: translateX(0);
    }

    .configuration-chatbot-mobile-history {
        display: block;
        width: 36px;
        height: 36px;
    }

    .configuration-chatbot-thread {
        padding: 22px 14px 16px;
    }

    .configuration-chatbot-welcome {
        margin-top: 17px;
    }

    .configuration-chatbot-welcome h3 {
        font-size: 20px;
    }

    .configuration-chatbot-bubble {
        max-width: 94%;
    }

    .configuration-chatbot-composer {
        margin-right: 10px;
        margin-left: 10px;
    }

    .configuration-chatbot-composer-note {
        display: block;
        padding-right: 12px;
        padding-left: 12px;
    }

    .configuration-chatbot-composer-note span {
        display: block;
        margin-bottom: 2px;
    }

    .configuration-chatbot-mobile-backdrop.visible {
        position: fixed;
        z-index: 11;
        display: block;
        inset: 0;
        background: rgba(12, 34, 54, .38);
    }
}

/* Enhanced readability */
.configuration-chatbot-kicker,
.configuration-chatbot-history-heading {
    font-size: 11px;
}

.configuration-chatbot-access,
.configuration-chatbot-new {
    font-size: 13px;
}

.configuration-chatbot-history-open,
.configuration-chatbot-scope strong {
    font-size: 12px;
}

.configuration-chatbot-scope span,
.configuration-chatbot-history-empty,
.configuration-chatbot-conversation-header span {
    font-size: 11px;
}

.configuration-chatbot-conversation-header strong {
    font-size: 15px;
}

.configuration-chatbot-welcome h3 {
    font-size: 26px;
}

.configuration-chatbot-welcome > p {
    font-size: 14px;
    line-height: 1.7;
}

.configuration-chatbot-suggestions button,
.configuration-chatbot-suggestions strong {
    font-size: 12px;
}

.configuration-chatbot-bubble-content {
    font-size: 14px;
    line-height: 1.7;
}

.configuration-chatbot-bubble-content h1 {
    font-size: 19px;
}

.configuration-chatbot-bubble-content h2 {
    font-size: 17px;
}

.configuration-chatbot-bubble-content h3 {
    font-size: 15px;
}

.configuration-chatbot-bubble-content h4 {
    font-size: 14px;
}

.configuration-chatbot-bubble-body > small,
.configuration-chatbot-typing small,
.configuration-chatbot-composer-note {
    font-size: 12px;
}

.configuration-chatbot-bubble-files span,
.configuration-chatbot-attachment {
    font-size: 11px;
}

.configuration-chatbot-error {
    font-size: 12px;
}

.configuration-chatbot-composer textarea {
    font-size: 14px;
}

.configuration-chatbot-bubble-content.is-typing-answer:after {
    display: inline-block;
    width: 2px;
    height: 1.15em;
    margin-left: 3px;
    vertical-align: -2px;
    content: "";
    background: #00a4a6;
    animation: chatbotTypingCursor .75s steps(1) infinite;
}

@keyframes chatbotTypingCursor {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}

/* Compact assistant answers. */
.configuration-chatbot-bubble:not(.is-user) .configuration-chatbot-bubble-content {
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
}
.configuration-chatbot-bubble:not(.is-user) .configuration-chatbot-bubble-content p {
    margin-bottom: 6px;
    font-size: inherit;
    line-height: inherit;
}
.configuration-chatbot-bubble:not(.is-user) .configuration-chatbot-bubble-content p:last-child { margin-bottom: 0; }
.configuration-chatbot-bubble:not(.is-user) .configuration-chatbot-bubble-content :is(h1, h2, h3, h4) {
    margin: 8px 0 4px;
    line-height: 1.35;
}
.configuration-chatbot-bubble:not(.is-user) .configuration-chatbot-bubble-content :is(h1, h2, h3, h4):first-child { margin-top: 0; }
.configuration-chatbot-bubble:not(.is-user) .configuration-chatbot-bubble-content h1 { font-size: 17px; }
.configuration-chatbot-bubble:not(.is-user) .configuration-chatbot-bubble-content h2 { font-size: 15px; }
.configuration-chatbot-bubble:not(.is-user) .configuration-chatbot-bubble-content h3 { font-size: 14px; }
.configuration-chatbot-bubble:not(.is-user) .configuration-chatbot-bubble-content h4 { font-size: 13px; }
.configuration-chatbot-bubble-content .chatbot-list-item { margin: 3px 0; }