#ffcb-chatbot-root {
    --ffcb-yellow: #FFFF85;
    --ffcb-yellow-hover: #e6e66a;
    --ffcb-yellow-soft: #ffffc9;
    --ffcb-dark: #0a0a0a;
    --ffcb-dark-soft: #1a1a1a;
    --ffcb-text-on-yellow: #0a0a0a;
    --ffcb-text-on-dark: #ffffff;
    --ffcb-bg-chat: #f4f4f4;
    --ffcb-border: #e0e0e0;

    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

#ffcb-chatbot-root *,
#ffcb-chatbot-root *::before,
#ffcb-chatbot-root *::after {
    box-sizing: border-box;
}

#ffcb-chatbot-root .ffcb-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    background: var(--ffcb-dark);
    color: var(--ffcb-yellow);
    border: 2px solid var(--ffcb-yellow);
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#ffcb-chatbot-root .ffcb-toggle:hover {
    transform: translateY(-2px);
    background: var(--ffcb-dark-soft);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

#ffcb-chatbot-root .ffcb-toggle-icon {
    font-size: 18px;
}

#ffcb-chatbot-root .ffcb-panel {
    display: none;
    flex-direction: column;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid var(--ffcb-dark);
}

#ffcb-chatbot-root .ffcb-panel.ffcb-panel-open {
    display: flex;
}

#ffcb-chatbot-root .ffcb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--ffcb-yellow);
    color: var(--ffcb-text-on-yellow);
    flex-shrink: 0;
    border-bottom: 2px solid var(--ffcb-dark);
}

#ffcb-chatbot-root .ffcb-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

#ffcb-chatbot-root .ffcb-header-logo {
    display: block;
    height: 28px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

#ffcb-chatbot-root .ffcb-header-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--ffcb-text-on-yellow);
}

#ffcb-chatbot-root .ffcb-header-subtitle {
    font-size: 12px;
    color: var(--ffcb-text-on-yellow);
    opacity: 0.75;
    margin: 0;
}

#ffcb-chatbot-root .ffcb-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1.5px solid var(--ffcb-dark);
    border-radius: 50%;
    color: var(--ffcb-dark);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

#ffcb-chatbot-root .ffcb-close:hover {
    background: var(--ffcb-dark);
    color: var(--ffcb-yellow);
}

#ffcb-chatbot-root .ffcb-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--ffcb-bg-chat);
    overflow-anchor: auto;
    -webkit-overflow-scrolling: touch;
}

#ffcb-chatbot-root .ffcb-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 14px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

#ffcb-chatbot-root .ffcb-msg-bot {
    align-self: flex-start;
    background: #ffffff;
    color: var(--ffcb-dark);
    border: 1px solid var(--ffcb-border);
    border-bottom-left-radius: 4px;
}

#ffcb-chatbot-root .ffcb-msg-user {
    align-self: flex-end;
    background: var(--ffcb-yellow);
    color: var(--ffcb-text-on-yellow);
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

#ffcb-chatbot-root .ffcb-msg-demo {
    align-self: flex-start;
    background: var(--ffcb-yellow-soft);
    color: var(--ffcb-dark);
    border: 1px solid var(--ffcb-yellow);
    border-bottom-left-radius: 4px;
    font-size: 13px;
}

#ffcb-chatbot-root .ffcb-msg a {
    color: var(--ffcb-dark);
    font-weight: 600;
    text-decoration: underline;
}

#ffcb-chatbot-root .ffcb-msg-user a {
    color: var(--ffcb-text-on-yellow);
}

#ffcb-chatbot-root .ffcb-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 12px;
    background: var(--ffcb-bg-chat);
    flex-shrink: 0;
}

#ffcb-chatbot-root .ffcb-option-btn {
    display: block;
    width: 100%;
    padding: 11px 14px;
    background: #ffffff;
    color: var(--ffcb-dark);
    border: 1.5px solid var(--ffcb-dark);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#ffcb-chatbot-root .ffcb-option-btn:hover {
    background: var(--ffcb-yellow);
    color: var(--ffcb-text-on-yellow);
    border-color: var(--ffcb-yellow);
}

#ffcb-chatbot-root .ffcb-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #ffffff;
    border-top: 2px solid var(--ffcb-yellow);
    flex-shrink: 0;
}

#ffcb-chatbot-root .ffcb-input-area.ffcb-hidden {
    display: none;
}

#ffcb-chatbot-root .ffcb-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--ffcb-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
    color: var(--ffcb-dark);
}

#ffcb-chatbot-root .ffcb-input:focus {
    border-color: var(--ffcb-yellow);
    box-shadow: 0 0 0 2px rgba(255, 255, 133, 0.35);
}

#ffcb-chatbot-root .ffcb-send {
    padding: 10px 16px;
    background: var(--ffcb-yellow);
    color: var(--ffcb-text-on-yellow);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

#ffcb-chatbot-root .ffcb-send:hover {
    background: var(--ffcb-yellow-hover);
}

#ffcb-chatbot-root .ffcb-send:disabled {
    background: #e8e8c8;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    #ffcb-chatbot-root {
        bottom: 12px;
        right: 12px;
        left: 12px;
    }

    #ffcb-chatbot-root .ffcb-panel {
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 80px);
        max-height: calc(100vh - 80px);
        border-radius: 12px;
    }

    #ffcb-chatbot-root .ffcb-toggle {
        width: 100%;
        padding: 12px 18px;
        font-size: 14px;
    }

    #ffcb-chatbot-root .ffcb-header-logo {
        height: 24px;
        max-width: 150px;
    }
}
