.eon-chatbot {
    position: fixed;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.eon-chatbot-bottom-right {
    bottom: 20px;
    right: 20px;
}

.eon-chatbot-bottom-left {
    bottom: 20px;
    left: 20px;
}

.eon-chat-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0066cc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eon-chat-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.eon-chat-window {
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 100px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.eon-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #fff;
    flex-shrink: 0;
}

.eon-chat-title {
    font-size: 15px;
    font-weight: 600;
}

.eon-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
}

.eon-chat-close:hover {
    opacity: 1;
}

.eon-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eon-chat-msg {
    display: flex;
    max-width: 85%;
}

.eon-chat-bot {
    align-self: flex-start;
}

.eon-chat-user {
    align-self: flex-end;
}

.eon-chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.eon-chat-bot .eon-chat-bubble {
    background: #f0f0f0;
    color: #1d2327;
    border-bottom-left-radius: 4px;
}

.eon-chat-user .eon-chat-bubble {
    color: #fff;
    border-bottom-right-radius: 4px;
}

.eon-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px;
    flex-shrink: 0;
}

.eon-chat-suggestion {
    background: #fff;
    border: 1px solid #0066cc;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.eon-chat-suggestion:hover {
    background: #f0f6fc;
}

.eon-chat-input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid #e5e5e5;
    gap: 8px;
    flex-shrink: 0;
}

#eon-chat-input {
    flex: 1;
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}

#eon-chat-input:focus {
    border-color: #0066cc;
}

#eon-chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

#eon-chat-send:hover {
    opacity: 0.85;
}

/* Typing indicator */
.eon-typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
    margin: 0 2px;
    animation: eon-typing 1.2s infinite;
}

.eon-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.eon-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes eon-typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

/* CTA styles */
.eon-cta-wrapper,
.eon-dynamic-cta-wrapper {
    margin: 24px 0;
    text-align: center;
}

.eon-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.eon-cta-primary {
    background: #0066cc;
    color: #fff;
}

.eon-cta-primary:hover {
    background: #0052a3;
    color: #fff;
}

.eon-cta-secondary {
    background: #28a745;
    color: #fff;
}

.eon-cta-secondary:hover {
    background: #218838;
    color: #fff;
}

.eon-cta-outline {
    background: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.eon-cta-outline:hover {
    background: #0066cc;
    color: #fff;
}

.eon-cta-link {
    background: transparent;
    color: #0066cc;
    padding: 12px 8px;
}

.eon-cta-link:hover {
    text-decoration: underline;
}

.eon-cta-icon {
    display: inline-flex;
    align-items: center;
}

.eon-cta-icon svg {
    width: 16px;
    height: 16px;
}

/* Score badge */
.eon-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 480px) {
    .eon-chat-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 80px);
        border-radius: 12px 12px 0 0;
    }

    .eon-chatbot-bottom-right,
    .eon-chatbot-bottom-left {
        right: 10px;
        left: 10px;
        bottom: 0;
    }
}
