/* Dialog and inline notice defaults */
dialog {
    max-width: calc(100% - 32px);
    border: 0;
    border-radius: 16px;
    padding: 32px;
    background: hsl(0, 0%, 100%);
    color: hsl(0, 0%, 13%);
    box-shadow: 0 24px 80px hsl(0 0% 13% / 0.2);
}
dialog::backdrop {
    background: hsl(0 0% 13% / 0.45);
}
.emupopup {
    width: min(440px, calc(100% - 32px));
    line-height: 1.8;
}
.emunotice {
    position: fixed;
    z-index: 80;
    inset: auto 20px 24px;
    width: fit-content;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding: 14px 20px;
    border-radius: 10px;
    background: hsl(0, 0%, 13%);
    color: hsl(0, 0%, 100%);
    box-shadow: 0 8px 25px hsl(0 0% 13% / 0.18);
    font-size: 14px;
}
/* Dialog combinations and states */
.emupopup button {
    display: block;
    margin-left: auto;
    border: 1px solid hsl(218, 12%, 88%);
    background: hsl(0, 0%, 100%);
    color: hsl(0, 0%, 13%);
    border-radius: 8px;
    padding: 8px 14px;
    min-height: 40px;
}

.emupopup[open] {
    animation: emuenter 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.emupopup p {
    margin: 20px 0;
}
.emupopup button:hover {
    background: hsl(51, 100%, 55%);
}
@keyframes emuenter {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@media (max-width: 520px) {
    dialog {
        padding: 24px;
    }
    .emunotice {
        font-size: 13px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .emupopup[open] {
        animation: none;
    }
}
