#gk-chatbot {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
}

#gk-chatbot-panel {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 380px;
    height: 560px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 100px);
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    background: #fff;
    display: flex;
    flex-direction: column;
    transform-origin: bottom right;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        visibility 0.25s;
    pointer-events: none;
}

#gk-chatbot-panel.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#gk-chatbot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ff7f00;
    color: #fff;
}

#gk-chatbot-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    overflow: visible;
    flex-shrink: 0;
}

#gk-chatbot-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

#gk-chatbot-online {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2ecc40;
    border: 2px solid #fff;
    flex-shrink: 0;
}

#gk-chatbot-header-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

#gk-chatbot-name {
    font-weight: 600;
    font-size: 15px;
}

#gk-chatbot-subline {
    font-size: 12px;
    opacity: 0.9;
}

#gk-chatbot-frame {
    flex: 1;
    position: relative;
}

#gk-chatbot-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

#gk-chatbot-toggle {
    padding: 0;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    background: #ff7f00;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 127, 0, 0.5);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

#gk-chatbot-toggle:hover {
    background: #e67200;
    transform: scale(1.08);
}

#gk-chatbot-toggle:active {
    transform: scale(0.95);
}
