[data-display="false"]{
    display: none !important;
}

/* Ripped from QGDS doco site - add to global styles */
.qld__loading_spinner-wheel {
    animation: rotation 1s linear infinite;
    border: 0.1875rem solid red;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    height: 2rem;
    margin: 1rem;
    width: 2rem;
}
@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* positions chatbot on page */
.tourism-chatbot {
    /*bottom: 1rem;*/
    bottom: env(safe-area-inset-bottom, 0rem);
    display: flex;
    flex-direction: column;
    
    position: fixed;
    right: 0rem;
    z-index: 1000;
    width: auto;
    margin: 1rem;
}
.tourism-chatbot:has(.chat-window[data-display='true']){
    width: calc(100% - 2rem);
}



@media all and (min-width: 30rem){
    .tourism-chatbot {
        margin: 1rem;
        
    }
    .tourism-chatbot:has(.chat-window[data-display='true']){
        width: 22.5rem;
    }
    .tourism-chatbot .chat-window {
        /*aspect-ratio: 3 / 5;*/
        aspect-ratio: 3 / 5;
    }
}
.tourism-chatbot .expand-chat-button {
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    font-size: 1.75rem;
    margin-left: auto;
    width: 4rem;
}
.tourism-chatbot .collapse-chat-button {
    align-items: center;
    background: #011e26;
    border: none;
    color: #fff;
    display: flex;
    font-size: 0.875rem;
    font-weight: 600;
    justify-content: space-between;
    /*line-height: 2.625rem;*/
    padding: 0.75rem 1rem;
    text-align: left;
}
.tourism-chatbot .start-chat-button {
    width: 100%;
}
.tourism-chatbot .chat-start-screen {
    background: #fff;
    display: flex;
    flex: 1;
    flex-direction: column;
    font-size: 0.875rem;
    justify-content: space-between;
    overflow-y: auto;
    padding: 1rem;
}
.tourism-chatbot .chat-window {
    
    background: #dedede;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /*width: 22.5rem;*/
    min-height: 70dvh;
    max-height: 90dvh;
}

/* user prompt */

    .chatbot-user-prompt {
        align-items: center;
        font-size: 0.875rem;
        border-radius: 0.25rem;
        background-color: #fff;
        border: 1px solid var(--brand-light-border);
        box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.4);
        display: flex;
        gap: 1rem;
        max-width: 24rem;
        margin-bottom: 1rem;
        margin-left: 1rem;
        opacity: 1.0;
        z-index: 200;
        padding: 0.75rem 1rem 0.75rem 1rem;
        position: relative;
        /*transition: opacity 0.25s ease, display 0.25s ease allow-discrete;*/
    }
    .chatbot-user-prompt::after {
        position: absolute;
        right: 1.25rem;
        bottom: -1.75rem;
        z-index: -1;
        border-top: 15px solid #fff;
        border-right: 13px solid transparent;
        border-bottom: 15px solid transparent;
        border-left: 11px solid transparent;
        content: '';
        filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, 0.4));
    }
    .chatbot-user-prompt>p:last-child {
        margin-bottom: 0;
    }
    
    .chat-icon {
        aspect-ratio: 1;
        background-color: #ffe733;/*var(--brand-light-background-shade);*/
        border-radius: 50%;
        width: 3.5rem;
        height: 3.5rem;
        text-align: center;
    }
    .chat-icon i {
        font-size: 2rem;
        line-height: 3.5rem;
    }
    
    button.close-prompt-button {
        background-color: transparent;
        height: 40px;
        width: 40px;
        position: absolute;
        right: 0;
        top: 0.25rem;
        border: none;
    }
    button.close-prompt-button span {
        font-size: 1.25rem;
    }
    
/* user prompt */