.site-chatbot-root {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2147483000;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.site-chatbot-toggle {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: linear-gradient(145deg, #f7d86f, #c79e2f 55%, #9b7318);
    color: #161616;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.site-chatbot-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
}

.site-chatbot-panel {
    width: 330px;
    max-width: calc(100vw - 24px);
    max-height: min(78vh, 620px);
    margin-bottom: 12px;
    display: none;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(8, 11, 19, 0.98), rgba(16, 21, 33, 0.95));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(9px);
}

.site-chatbot-panel.is-open {
    display: flex;
}

.site-chatbot-head {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.site-chatbot-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.site-chatbot-close {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: #fff;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    line-height: 1;
    cursor: pointer;
}

.site-chatbot-body {
    padding: 10px;
    overflow-y: auto;
    min-height: 210px;
    max-height: 330px;
}

.site-chatbot-msg {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.42;
    padding: 8px 10px;
    border-radius: 10px;
    word-wrap: break-word;
}

.site-chatbot-msg.user {
    margin-left: 24px;
    color: #141414;
    background: linear-gradient(145deg, #f7d86f, #c79e2f 55%, #9b7318);
}

.site-chatbot-msg.bot {
    margin-right: 24px;
    color: #dfe6f7;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-chatbot-msg.bot a {
    color: #f7d86f;
    text-decoration: underline;
}

.site-chatbot-msg.typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 52px;
}

.site-chatbot-msg.typing span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(230, 235, 247, 0.75);
    animation: site-chatbot-dot 1.1s infinite ease-in-out;
}

.site-chatbot-msg.typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.site-chatbot-msg.typing span:nth-child(3) {
    animation-delay: 0.3s;
}

.site-chatbot-quick {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-chatbot-chip {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: #d6ddf1;
    border-radius: 999px;
    font-size: 12px;
    padding: 5px 9px;
    cursor: pointer;
}

.site-chatbot-chip:hover {
    border-color: rgba(247, 216, 111, 0.7);
    color: #f7d86f;
}

.site-chatbot-input-wrap {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.site-chatbot-input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 9px 10px;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 13px;
}

.site-chatbot-input:focus {
    outline: none;
    border-color: rgba(247, 216, 111, 0.75);
    box-shadow: 0 0 0 2px rgba(247, 216, 111, 0.2);
}

.site-chatbot-send {
    border: 1px solid rgba(247, 216, 111, 0.55);
    border-radius: 10px;
    background: linear-gradient(145deg, #f7d86f, #c79e2f 55%, #9b7318);
    color: #131313;
    font-weight: 700;
    padding: 0 12px;
    cursor: pointer;
}

.site-chatbot-send:hover {
    filter: brightness(1.05);
}

@keyframes site-chatbot-dot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
    40% { transform: translateY(-2px); opacity: 1; }
}

@media (max-width: 576px) {
    .site-chatbot-root {
        right: 10px;
        bottom: 10px;
    }

    .site-chatbot-panel {
        width: min(360px, calc(100vw - 14px));
        max-height: 70vh;
    }

    .site-chatbot-body {
        max-height: 260px;
    }
}
