/* Keep the service widget within narrow pages and the chat below cookie controls. */
.gas-service-quality {
    box-sizing: border-box;
    padding: 16px;
    width: 100%;
    text-align: center;
}
.gas-service-quality iframe {
    display: block;
    width: 300px;
    max-width: 100%;
    height: 140px;
    margin: 0 auto;
    border: 0;
}
#rasa-chat-widget-container > div:first-child {
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
}
/* The bundled Rasa conversation fixes its composer to the viewport on phones.
   Keep it inside the floating panel so the send/close controls never overlap. */
#rasa-chat-widget-container > div:first-child > div > div:last-child {
    position: static;
    bottom: auto;
    flex: 0 0 auto;
    width: 100%;
}
@media (max-width: 575px) {
    #rasa-chat-widget-container textarea {
        min-height: 56px;
    }
    #rasa-chat-widget-container {
        right: 16px;
        bottom: 16px;
    }
    #rasa-chat-widget-container > div:first-child {
        max-width: calc(100vw - 32px);
    }
}

#rasa-chat-widget-container button:focus-visible,
#rasa-chat-widget-container textarea:focus-visible {
    outline: 2px solid #006499 !important;
    outline-offset: 2px;
}
