﻿#chatplusview {
    max-width: 350px;
}

@media (max-width: 500px) {
    .tippy-box {
        display: none !important;
    }
}

#chat-launcher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: rgba(51,156,208,0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 0;
    transition: all .25s ease;
    user-select: none;
    overflow: visible;
    position: fixed;
}

    #chat-launcher:hover {
        filter: brightness(1.15);
        transform: translateY(-2px) scale(1.07);
        box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    }

    #chat-launcher button#chat-launcher-close {
        position: absolute;
        top: -6px;
        left: -6px;
        width: 20px;
        height: 20px;
        background: rgba(0,0,0,0.5);
        color: #fff;
        border: none;
        padding: 0;
        font-size: 14px;
        line-height: 16px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        #chat-launcher button#chat-launcher-close:hover {
            background: rgba(0,0,0,0.7);
        }

@keyframes launcher-bounce-in {
    0% {
        transform: scale(0.5) translateY(20px);
        opacity: 0;
    }

    60% {
        transform: scale(1.1) translateY(-5px);
        opacity: 1;
    }

    100% {
        transform: scale(1.0) translateY(0);
    }
}

@keyframes launcher-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07);
    }

    100% {
        transform: scale(1);
    }
}

/* Dialog */
#chat-dialog {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 260px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 12px 12px 14px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    z-index: 9999;
    display: none; /* hidden by default */
}

    #chat-dialog.show {
        display: block;
    }

.chat-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.chat-dialog-close {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.chat-dialog-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-dialog-text {
    font-size: 0.8rem;
    margin: 0 0 4px 0;
    color: #555;
}

.chat-option {
    width: 100%;
    padding: 7px 10px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s ease, transform 0.05s ease;
    text-align: center;
}

    .chat-option.primary {
        background: rgba(51,156,208,0.8);
        color: #fff;
    }

        .chat-option.primary:hover {
            background: rgba(51, 156, 208, 0.9);
            transform: translateY(-1px);
        }

    .chat-option.secondary {
        background: #f5f5f5;
        color: #333;
    }

        .chat-option.secondary:hover {
            background: #e5e5e5;
            transform: translateY(-1px);
        }

.chatbot-iframe {
    width: 100%;
    min-height: 600px;
    border: 0;
    border-radius: 0.5rem;
}