.tc-neos-popup-host {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.tc-neos-popup-host.tc-neos-popup-host--open {
    display: flex;
}

.tc-neos-popup-host__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.tc-neos-popup-host__panel {
    position: relative;
    z-index: 1;
    max-width: min(32rem, 100%);
    max-height: min(85vh, 100%);
    overflow: auto;
    background: #fff;
    border-radius: 0.35rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
}

.tc-neos-popup-host__toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 0.35rem 0.35rem 0;
}

.tc-neos-popup-host__close {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.tc-neos-popup-host__close:hover,
.tc-neos-popup-host__close:focus {
    background: rgba(0, 0, 0, 0.06);
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.tc-neos-popup-host .neos-contentcollection {
    padding: 0 1rem 1rem;
}
