/* Breev chatbot embed: chat button and chat window (see chatbot-script.js) */

.chat-icon {
    all: unset;
    box-sizing: border-box;
    z-index: 2147483000;
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    cursor: pointer;
    background-color: #0d6efd;
    color: #ffffff;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35);
    transition: transform .2s ease;
}

.chat-icon:hover {
    transform: scale(1.06);
}

.chat-icon:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.chat-icon svg {
    width: 25px;
    height: 25px;
    pointer-events: none;
}

.chat-iframe-container {
    box-sizing: border-box;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    max-width: calc(100vw - 60px);
    height: min(600px, calc(100vh - 130px));
    display: none; /* the script shows it through style.display */
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    z-index: 2147483000;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06);
}

.chat-icon.chat-left,
.chat-iframe-container.chat-left {
    right: auto;
    left: 30px;
}

.chat-iframe-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 480px) {
    .chat-icon {
        bottom: 16px;
        right: 16px;
    }

    .chat-icon.chat-left {
        left: 16px;
    }

    .chat-iframe-container,
    .chat-iframe-container.chat-left {
        left: auto;
        right: 16px;
        bottom: 88px;
        width: calc(100vw - 32px);
        max-width: none;
        height: calc(100vh - 108px);
        height: calc(100dvh - 108px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-icon {
        transition: none;
    }
}

@media print {
    .chat-icon,
    .chat-iframe-container {
        display: none;
    }
}
