﻿.mdc-site-chatbot {
    position: fixed;
    right: 22px;
    bottom: 148px;
    z-index: 1042;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mdc-site-chatbot-launcher {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 48px;
    padding: .7rem 1rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #053d76, #0b67b2);
    box-shadow: 0 14px 34px rgba(5, 61, 118, .28);
    font-weight: 700;
}

.mdc-site-chatbot-launcher:hover {
    transform: translateY(-2px);
}

.mdc-site-chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 62px;
    width: min(380px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid rgba(5, 61, 118, .13);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(5, 31, 58, .24);
}

.mdc-site-chatbot-header {
    display: grid;
    grid-template-columns: 42px 1fr 34px;
    align-items: center;
    gap: .65rem;
    padding: .9rem 1rem;
    color: #fff;
    background: linear-gradient(135deg, #052f58, #07599d);
}

.mdc-site-chatbot-header strong,
.mdc-site-chatbot-header small {
    display: block;
}

.mdc-site-chatbot-header small {
    margin-top: .12rem;
    color: rgba(255,255,255,.78);
    font-size: .72rem;
}

.mdc-site-chatbot-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    font-size: 1.15rem;
}

.mdc-site-chatbot-header button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.12);
}

.mdc-site-chatbot-messages {
    height: 310px;
    overflow-y: auto;
    padding: 1rem;
    background: #f6f9fd;
}

.mdc-site-chatbot-message {
    display: flex;
    margin-bottom: .75rem;
}

.mdc-site-chatbot-message > div {
    max-width: 88%;
    padding: .7rem .8rem;
    border-radius: 14px;
    font-size: .88rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.mdc-site-chatbot-message.bot > div {
    border: 1px solid #e1e9f2;
    color: #18324d;
    background: #fff;
    border-bottom-left-radius: 5px;
}

.mdc-site-chatbot-message.user {
    justify-content: flex-end;
}

.mdc-site-chatbot-message.user > div {
    color: #fff;
    background: #07599d;
    border-bottom-right-radius: 5px;
}

.mdc-site-chatbot-message.error > div {
    border: 1px solid #f5c2c7;
    color: #842029;
    background: #f8d7da;
}

.mdc-site-chatbot-action {
    display: inline-flex;
    margin-top: .55rem;
    padding: .45rem .65rem;
    border-radius: 9px;
    color: #fff !important;
    background: #ff5b43;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.mdc-site-chatbot-quick {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding: .65rem .8rem;
    border-top: 1px solid #edf2f7;
    background: #fff;
}

.mdc-site-chatbot-quick button {
    flex: 0 0 auto;
    padding: .38rem .62rem;
    border: 1px solid #cbd9e8;
    border-radius: 999px;
    color: #053d76;
    background: #fff;
    font-size: .75rem;
    font-weight: 700;
}

.mdc-site-chatbot-form {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: .45rem;
    padding: .75rem .8rem;
    border-top: 1px solid #edf2f7;
    background: #fff;
}

.mdc-site-chatbot-form input {
    min-width: 0;
    height: 42px;
    padding: 0 .8rem;
    border: 1px solid #cfdae6;
    border-radius: 11px;
    outline: none;
}

.mdc-site-chatbot-form input:focus {
    border-color: #0b67b2;
    box-shadow: 0 0 0 3px rgba(11,103,178,.1);
}

.mdc-site-chatbot-form button {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: #053d76;
}

.mdc-site-chatbot-form button:disabled,
.mdc-site-chatbot-form input:disabled {
    opacity: .65;
}

.mdc-site-chatbot-footnote {
    padding: 0 .8rem .7rem;
    color: #75879a;
    background: #fff;
    font-size: .67rem;
    text-align: center;
}

@media (max-width: 575.98px) {
    .mdc-site-chatbot {
        right: 14px;
        bottom: 142px;
    }

    .mdc-site-chatbot-launcher span {
        display: none;
    }

    .mdc-site-chatbot-launcher {
        width: 50px;
        height: 50px;
        min-height: 50px;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }

    .mdc-site-chatbot-panel {
        position: fixed;
        right: 10px;
        bottom: 82px;
        left: 10px;
        width: auto;
    }

    .mdc-site-chatbot-messages {
        height: min(320px, 44vh);
    }
}
