/* Front‑end styles for the Chedo Tech Chatbot plugin */
.ctc-chatbot-container {
    /* Container is now just for the iframe, launcher is positioned separately */
    position: fixed;
    z-index: 1;
    font-size: 0;
}

.ctc-chat-launcher {
    /* The launcher styles (size, colour, position) are applied inline from PHP */
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ctc-chat-launcher i,
.ctc-chat-launcher img {
    pointer-events: none;
}

.ctc-chat-launcher:hover {
    transform: scale(1.1);
}

/* Hide launcher when chat is open */
.ctc-chatbot-container.ctc-chat-open .ctc-chat-launcher {
    display: none;
}

.ctc-chat-frame-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: 600px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    z-index: 1;
}

@media (max-width: 767px) {
    .ctc-chat-frame-container {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
}

.ctc-chat-frame-container.ctc-open {
    display: block;
}

.ctc-chat-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}