.chatbot-trigger {
    display: none
}
.chatbot-background {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .25);
    z-index: 1002
}
.chatbot-trigger:checked ~ .chatbot-background {
    display: block
}
.chatbot-outer {
    position: fixed;
    right: 111vw;
    bottom: 111vh;
    visibility: hidden;
    opacity: 0;
    width: 100vw;
    max-width: 500px;
    height: 100vh;
    max-height: 500px;
    z-index: 1003
}
.chatbot-trigger:checked ~ .chatbot-outer {
    right: 0;
    bottom: 0;
    visibility: visible;
    opacity: 1
}
.chatbot-button {
    display: block;
    position: fixed;
    right: 1em;
    bottom: 1em;
    /*
    border-radius: 50%;
    */
    width: 4em;
    height: 4em;
    cursor: pointer;
    /*
    background: #6c9 url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld0JveD0iLTUsLTUgMTAsMTAiPjxwYXRoIGQ9Ik0tMiwtMmExLDEgMCAwIDAgLTEsMXYyYTEsMSAwIDAgMCAxLDF2MWwxLC0xaDNhMSwxIDAgMCAwIDEsLTF2LTJhMSwxIDAgMCAwIC0xLC0xeiIgc3R5bGU9ImZpbGw6IzM2OTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6LjUiLz48Y2lyY2xlIHI9Ii41IiBjeD0iLTEuNSIgY3k9IjAiIHN0eWxlPSJmaWxsOndoaXRlIi8+PGNpcmNsZSByPSIuNSIgY3g9IjAiIGN5PSIwIiBzdHlsZT0iZmlsbDp3aGl0ZSIvPjxjaXJjbGUgcj0iLjUiIGN4PSIxLjUiIGN5PSIwIiBzdHlsZT0iZmlsbDp3aGl0ZSIvPjwvc3ZnPgo=) no-repeat 50% 50% / 100%;
    */
    background: transparent url(../images/chat_7269339.png) no-repeat 50% 50% / 100%;
    border-radius: .78125em;
    z-index: 1002
}
.chatbot-button.close {
    position: absolute;
    top: 0;
    right: 0;
    bottom: unset;
    width: 2em;
    height: 2em;
    background: transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld0JveD0iLTEsLTEgMiwyIj48Y2lyY2xlIHI9Ii45IiBjeD0iMCIgY3k9IjAiIHN0eWxlPSJmaWxsOndoaXRlO3N0cm9rZTpibGFjaztzdHJva2Utd2lkdGg6LjIiLz48ZyB0cmFuc2Zvcm09Im1hdHJpeCguNzA3MSwuNzA3MSwtLjcwNzEsLjcwNzEsMCwwKSI+PHBhdGggZD0iTS0uNSwwaDFNMCwtLjV2MSIgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6YmxhY2s7c3Ryb2tlLXdpZHRoOi4yIi8+PC9nPjwvc3ZnPgo=) no-repeat 50% 50% / 100%
}
.chatbot-container {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    background: white none no-repeat top left;
    border: 1px solid black;
    padding: 0;
    border-radius: 1em;
    box-sizing: border-box;
    transition: width 500ms ease 100ms, height 500ms ease 100ms;
    overflow: hidden;
    display: grid;
    grid: ". ." 3.966667em
          ". ." auto
          ". ." 4.166667em / 2em auto
}
.chatbot-trigger:checked + .chatbot-button {
    display: none
}
.chatbot-trigger:checked ~ .chatbot-outer .chatbot-container {
    width: 100%;
    height: 100%;
}
.chatbot-title {
    grid-area: 1 / 1 / 2 / 3;
    margin: 0;
    padding: 1em;
    background-color: #58a;
    color: #fff;
    font-weight: 700;
    font-size: 1.25em;
}
.chatbot-inner {
    grid-area: 2 / 2 / 3 / 3;
    position: relative;
    overflow: auto;
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column nowrap
}
.chatbot-input {
    grid-area: 3 / 1 / 4 / 3;
    padding: 1em;
    background-color: #eee;
    display: grid;
    grid: ". ." auto / auto 2.166667em;
    gap: 1em;
    box-sizing: border-box
}
.chatbot-input input {
    background-color: white;
    border: 0 none ;
    border-radius: .928571em;
    padding: .125em 1em;
    line-height: 1
}
.chatbot-input button {
    border: 0 none ;
    background: transparent none repeat top left / 100%;
    color: #999;
    padding: .25em;
    cursor: pointer
}
.chatbot-message::before {
    content: "";
    display: block;
    clear: both
}
.chatbot-message {
    border-radius: 0.5em;
    margin: 1em 4em 1em 0;
    padding: 0.5em 2em 0;
    background-color: #eee
}
.chatbot-message.user {
    display: inline-block;
    padding: 1.5em 2em;
    margin: 1em 2em 1em auto;
    width: auto;
    background-color: #def;
    border-bottom-right-radius: 0
}
.chatbot-message.has-main-menu {
    margin-bottom: 3.5em
}
.chatbot-options {
    border: 1px solid #eee;
    padding: 0.5em 2em;
    background: #fff none no-repeat top left;
    margin: 0 -2em;
    cursor: pointer;
    border-top: 0 none ;
}
.chatbot-options:last-child,
.chatbot-options.last {
    border-radius: 0 0 0.5em 0.5em;
}
.chatbot-options.main-menu {
    display: inline-block;
    margin: 0.5em auto;
    border: 0.0833333em solid #69c;
    border-radius: 0.5em;
    box-shadow: 0.0625em 0.0625em 0.25em rgba(0, 0, 0, .25);
    color: #69c;
    padding: 0.5em 1em;
    position: absolute;
    left: calc(50% - 2em);
    transform: translate(-50%, 0);
}
.chatbot-options.main-menu:last-child,
.chatbot-options.main-menu.last {
    border-radius: 0.5em;
}
