/* Shared modal motion for the 9443 site. */
.modernModalOverlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .32s ease, visibility .32s ease;
}

.modernModalOverlay[hidden] {
    display: grid;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modernModalShell {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity .32s cubic-bezier(.22, .8, .25, 1), transform .38s cubic-bezier(.22, .8, .25, 1);
}

.modernModalOverlay[hidden] .modernModalShell {
    opacity: 0;
    transform: translateY(18px) scale(.965);
}

.modernModalClose {
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.modernModalClose:hover,
.modernModalClose:focus-visible {
    transform: rotate(8deg) scale(1.04);
}

.accessNoticeOverlay {
    transition: opacity .32s ease, visibility .32s ease;
}

.accessNoticeDialog {
    transition: transform .38s cubic-bezier(.22, .8, .25, 1), opacity .32s ease;
}

.accessNoticeIcon {
    animation: modalIconIn .55s .08s cubic-bezier(.22, .8, .25, 1) both;
}

/* Compatibility for any remaining legacy Colorbox modal. */
#cboxOverlay {
    transition: opacity .3s ease;
}

#colorbox {
    transform: translateY(14px) scale(.97);
    opacity: .01;
    transition: transform .35s cubic-bezier(.22, .8, .25, 1), opacity .3s ease;
}

#colorbox[style*="display: block"] {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@keyframes modalIconIn {
    from { opacity: 0; transform: scale(.72) rotate(-8deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
    .modernModalOverlay,
    .modernModalShell,
    .modernModalClose,
    .accessNoticeOverlay,
    .accessNoticeDialog,
    #cboxOverlay,
    #colorbox {
        animation: none !important;
        transition: none !important;
    }
}
