.page-notice {
    width: min(calc(100% - 2rem), 520px);
    max-height: 85vh;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
}

.page-notice::backdrop {
    background-color: rgba(0, 0, 0, .5);
}

body:has(.page-notice[open]) {
    overflow: hidden;
}

.page-notice-inner {
    position: relative;
    max-height: 85vh;
    padding: 2.5rem 1.5rem 1.5rem;
    overflow-y: auto;
}

.page-notice-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    margin: 0;
}

.page-notice-close button {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.page-notice-close button:hover,
.page-notice-close button:focus {
    color: #71891a;
    outline: none;
}

.page-notice-text > :last-child {
    margin-bottom: 0;
}

.page-notice-actions {
    margin: 1.5rem 0 0;
    text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
    .page-notice[open] {
        animation: page-notice-in 250ms ease;
    }

    @keyframes page-notice-in {
        from {
            opacity: 0;
            transform: translateY(.5rem);
        }
    }
}
