#knowbot-container {
    inset: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    display: block;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    z-index: 2147483646;
    pointer-events: none;
}

#knowbot-iframe-wrapper {
    width: 100%;
    height: 80%;
    max-width: 570px;
    margin-right: 1rem;
    margin-bottom: 1rem;
    align-self: end;
    justify-self: end;
    display: none;
    position: relative;
    transition: opacity 0.25s ease;
    pointer-events: auto;
}

#knowbot-iframe {
    width: 100%;
    height: 99%;
    background: white;
    border-radius: var(--knowbot-iframe-border-radius);
    box-shadow: var(--knowbot-iframe-box-shadow);
    border: 1px solid var(--knowbot-iframe-border-color);
    padding-bottom: 1%;
}

#knowbot-button {
    font-family: var(--knowbot-button-font-family);
    font-size: var(--knowbot-button-font-size);
    padding: var(--knowbot-button-padding);
    font-weight: var(--knowbot-button-font-weight);
    border-radius: var(--knowbot-button-border-radius);
    border: 1px solid var(--knowbot-button-border-color);
    box-shadow: var(--knowbot-button-box-shadow);
    background-color: var(--knowbot-button-bg-color);
    color: var(--knowbot-button-text-color);
    transition:
        opacity 250ms,
        transform 250ms,
        background 250ms;
    text-wrap: nowrap;
    display: flex;
    gap: 0.5rem;
    cursor: pointer;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 100001;
    opacity: 0;
    pointer-events: none;
}

body.knowbot-active #knowbot-button {
    opacity: 1;
    pointer-events: auto;
}

#knowbot-button:hover,
#knowbot-button:focus-within {
    background-color: var(--knowbot-button-bg-color-hover);
    color: var(--knowbot-button-text-color-hover);
    border: 1px solid var(--knowbot-button-border-color-hover);
}

#knowbot-close {
    right: 1rem;
    top: 1rem;
    position: absolute;
    color: #444;
    line-height: 1;
    z-index: 2147483647;
    cursor: pointer;
}

#knowbot-close svg {
    width: 22px;
    height: 22px;
}

#knowbot-close:hover {
    color: black;
}

/* Mobile */
@media (max-width: 590px) {
    #knowbot-iframe-wrapper {
        height: 100%;
        margin-right: 0;
        margin-bottom: 0;
        justify-self: center;
        background: white;
    }

    #knowbot-iframe {
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    #knowbot-close {
        top: 1.5rem;
    }
}

/* Desktop */
@media (min-width: 1300px) {
    #knowbot-button {
        font-size: var(--knowbot-button-font-size-large);
    }
}
