﻿@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 30px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: -7px 9px 22px -8px rgba(0,0,0,0.73);
}

body.show-chatbot #chatbot-toggler {
    transform: rotate(90deg) !important;
    z-index: 9999;
}

#chatbot-toggler span {
    color: #fff;
    position: absolute;
}

    #chatbot-toggler span:last-child,
    body.show-chatbot #chatbot-toggler span:first-child {
        opacity: 0;
    }

body.show-chatbot #chatbot-toggler span:last-child {
    opacity: 1;
}

#chatbot-frame {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    border: none;
    border-radius: 12px;
    box-shadow: -7px 9px 22px -8px rgba(0,0,0,0.73);
    display: none;
    z-index: 9998;
}

button {
    transition: transform 100ms ease-in-out;
    background-color: rgb(178, 69, 146) !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*.chat-teaser {
    position: fixed;
    bottom: 100px;
    right: 35px;
    border: solid 5px springgreen;
}*/




.chat-teaser-card {
    position: fixed;
    bottom: 100px;
    right: 35px;
    border: 3px solid rgb(178, 69, 146);
    border-radius: 30px;
    padding: 10px 20px;
    display: block;
    font-size: 12px;
    max-width: 250px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.chat-teaser-close-btn {
    position: absolute;
    top: -32px;
    right: 0px;
    height: 24px;
    width: 24px;
    border-radius: 20px;
    border: 1px solid rgb(124, 152, 182);
    background-color: transparent;
    cursor: pointer;
    padding: 1px 6px;
}

.chat-close-icon {
    scale: 2.5;
    fill: white;
}

.chat-teaser-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

















/*
    button:hover {
        transform: scale(1.15);
    }*/
/*#chatbot-toggler:hover {
    transform: scale(1.15);
}

#chatbot-toggler:active {
    transition: transform 0.16s linear, opacity 0.06s linear;
    opacity: 0;
    transform: rotate(-25deg) scale(0.5);
}*/
/*.button-container {
    transition: transform 0.16s linear, opacity 0.06s linear;
    opacity: 0;
    transform: rotate(-25deg) scale(0.5);
}*/
#chatbot-toggler {
    transition: transform 0.16s linear, opacity 0.06s linear;
}

    #chatbot-toggler:hover {
        transform: scale(1.15);
    }

    #chatbot-toggler.clicked {
        opacity: 0;
        transform: rotate(-25deg) scale(0.5);
    }


.launcher-icon {
    height: 35px;
    width: 35px;
}
/* the button */
#chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    border: none;
    width: 60px;
    height: 60px;
    display: flex;
    padding: 1px 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #00abb1;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 9999;
}

body.show-chatbot .chatbot-popup {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.chat-header #close-chatbot {
    border: none;
    color: #fff;
    height: 60px;
    width: 60px;
    font-size: 1.9rem;
    margin-right: -10px;
    padding-top: 2px;
    cursor: pointer;
    border-radius: 50%;
    background: none;
    transition: 0.2s ease;
}



.open-icon {
    height: 30px;
    width: 30px;
    filter: brightness(0) saturate(100%) invert(99%) sepia(1%) saturate(574%) hue-rotate(155deg) brightness(110%) contrast(84%);
}

.close-icon {
    height: 30px;
    width: 30px;
    filter: brightness(0) saturate(100%) invert(99%) sepia(1%) saturate(574%) hue-rotate(155deg) brightness(110%) contrast(84%);
}

.iframe-container {
    width: 400px;
    height: 620px;
    box-shadow: -7px 9px 22px -8px rgba(0,0,0,0.73);
    border-radius: 5px;
    overflow: hidden;
    border: none;
    display: block;
    bottom: 100px;
    right: 30px;
}


/* ===== Responsive Chatbot Layout for Mobile ===== */
@media (max-width: 768px) {
    /* Button positioning and sizing */
    #chatbot-toggle {
        width: 30px;
        height: 30px;
        font-size: 22px;
        bottom: 20px;
        right: 20px;
        padding: 0;
    }

    #chatbot-toggler {
        width: 50px;
        height: 50px;
    }

    .open-icon,
    .close-icon {
        width: 22px;
        height: 22px;
    }

    /* Responsive iframe container */
    #chatbot-frame,
    .iframe-container {
        width: 90vw !important;
        height: 75vh !important;
        right: 5vw !important;
        bottom: 90px !important;
        border-radius: 10px !important;
        max-width: 100%;
    }

    /* Optional: Improve stacking if needed */
    .button-container {
        bottom: 20px;
        right: 20px;
    }

    /* Optional: Prevent content from overflowing */
    body.show-chatbot {
        overflow: hidden;
    }

    .chat-teaser-card {
        max-width: 190px;
    }
    .chat-teaser-text {
        font-size: 9px;
    }

}
