.site-popup-stage {
    position: fixed;
    inset: 0;
    z-index: 3000;
    pointer-events: none;
}

.site-popup-stage[hidden],
.site-popup-card[hidden] {
    display: none;
}

.site-popup-stage__list {
    position: absolute;
    top: 96px;
    left: 50%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    width: min(calc(100% - 32px), 1540px);
    transform: translateX(-50%);
    pointer-events: none;
}

.site-popup-card {
    display: flex;
    flex: 0 1 500px;
    flex-direction: column;
    width: min(100%, 500px);
    max-height: calc(100vh - 124px);
    overflow: hidden;
    border: 1px solid #aeb4bc;
    background: #eaf1ff;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.site-popup-card__image-link {
    display: block;
    overflow: auto;
    line-height: 0;
}

.site-popup-card__image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #fff;
}

.site-popup-card--image-only .site-popup-card__image {
    max-height: calc(100vh - 178px);
}

.site-popup-card__content {
    overflow-y: auto;
    padding: 34px 22px 36px;
    text-align: center;
}

.site-popup-card__title {
    margin: 0 0 18px;
    color: #204d91;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.35;
    word-break: keep-all;
}

.site-popup-card__body {
    margin: 0;
    padding: 24px 22px;
    border-radius: 10px;
    background: #fff;
    color: #333b48;
    font-size: 15px;
    line-height: 1.75;
    text-align: left;
    white-space: pre-line;
    word-break: keep-all;
}

.site-popup-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 142px;
    min-height: 44px;
    margin-top: 22px;
    padding: 10px 24px;
    border-radius: 4px;
    background: #ed4938;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.site-popup-card__link::after {
    margin-left: 8px;
    content: ">";
}

.site-popup-card__link:hover,
.site-popup-card__link:focus-visible {
    background: #cf3326;
}

.site-popup-card__footer {
    display: flex;
    flex: 0 0 52px;
    align-items: stretch;
    min-height: 52px;
    border-top: 1px solid #d1d5db;
    background: #fff;
}

.site-popup-card__today-close {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: #1f2937;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.site-popup-card__checkbox {
    display: block;
    width: 20px;
    height: 20px;
    border: 1px solid #c7cdd5;
    border-radius: 4px;
    background: #fff;
}

.site-popup-card__close {
    display: grid;
    flex: 0 0 58px;
    place-items: center;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.site-popup-card__close:hover,
.site-popup-card__close:focus-visible,
.site-popup-card__today-close:hover,
.site-popup-card__today-close:focus-visible {
    background: #f3f4f6;
}

.site-popup-card__close span,
.site-popup-card__close span::after {
    display: block;
    width: 27px;
    height: 3px;
    border-radius: 2px;
    background: #858b92;
    content: "";
    transform: rotate(45deg);
}

.site-popup-card__close span::after {
    transform: rotate(90deg);
}

@media (max-width: 1080px) {
    .site-popup-stage__list {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .site-popup-stage__list {
        top: 16px;
        display: block;
        width: calc(100% - 24px);
        max-height: calc(100vh - 28px);
        overflow-y: auto;
        pointer-events: auto;
    }

    .site-popup-card {
        width: 100%;
        max-height: calc(100vh - 28px);
        margin-bottom: 14px;
    }

    .site-popup-card:last-child {
        margin-bottom: 0;
    }

    .site-popup-card__image,
    .site-popup-card--image-only .site-popup-card__image {
        max-height: calc(100vh - 80px);
    }

    .site-popup-card__content {
        padding: 28px 18px 30px;
    }

    .site-popup-card__title {
        font-size: 22px;
    }

    .site-popup-card__body {
        padding: 20px 18px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .site-popup-card {
        animation: site-popup-enter 160ms ease-out both;
    }

    @keyframes site-popup-enter {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
