layer-popup {
    border-radius: 4px;
    border: solid 1px hsl(var(--color-primary));
    background: hsl(var(--color-background));
    display: block;
    overflow: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100vw - 2rem);
    margin: 2rem 1rem;
    max-height: calc(100vh - 4rem);
    max-width: 480px;
    transform: translate(calc(-50% - 1rem), calc(-50% - 2rem));
    z-index: 1000;
}
layer-popup div {
    position: sticky;
    bottom: 0;
    display: flex;

}
layer-popup label {
    flex: 1;
    display: block;
    background: hsl(var(--color-primary));
    color: hsl(var(--color-text));
    padding: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}
layer-popup label:first-child {
    border-right: solid 1px hsl(var(--color-background));
}
layer-popup label::after {
    content: '';
    position: fixed;
}
label[aria-hidden] {
    position: fixed;
    inset: 0;
    display: block;
    background: hsl(0, 0%, 0%, .75);
    z-index: 999;
}
body:has(input#popup:not(:checked)) {
    overflow: hidden;
}
input#popup:checked ~ label[aria-hidden],
input#popup:checked ~ layer-popup {
    display: none;
}
