.site-popup {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.site-popup.is-open {
    display: flex;
}

.site-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.site-popup__dialog {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.site-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.site-popup__media,
.site-popup__media img {
    display: block;
    width: 100%;
}

.site-popup__media img {
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: #f6f6f6;
}

.site-popup__body {
    padding: 16px 18px 18px;
    text-align: center;
}

.site-popup__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.site-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.site-popup__btn:hover,
.site-popup__btn:focus {
    color: #fff;
    opacity: 0.9;
}

.site-popup__once {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    padding-left: 0 !important;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.site-popup__once::before,
.site-popup__once::after {
    content: none !important;
    display: none !important;
}

.site-popup__once input {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    pointer-events: none;
}

.site-popup__once-box {
    position: relative;
    display: inline-block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1.5px solid #888;
    border-radius: 3px;
    background: #fff;
}

.site-popup__once-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.site-popup__once input:checked + .site-popup__once-box {
    background: #111;
    border-color: #111;
}

.site-popup__once input:checked + .site-popup__once-box::after {
    opacity: 1;
}

body.site-popup-open {
    overflow: hidden;
}
