.mc-popup-shell {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

html.mc-popup-open,
body.mc-popup-open {
    overflow: hidden;
}

.mc-popup-shell.is-visible {
    display: block !important;
}

.mc-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 14, 0.58);
    backdrop-filter: blur(3px);
}

.mc-popup-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92vw, 720px);
    transform: translate(-50%, -50%);
    background: var(--mc-popup-bg, #111111);
    color: var(--mc-popup-text, #ffffff);
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
    overflow: hidden;
    animation: mcPopupEnter .28s ease;
}

.mc-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.54);
    color: #fff;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mc-popup-media {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.mc-popup-media picture,
.mc-popup-media img {
    display: block;
    width: 100%;
    height: auto;
}

.mc-popup-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px 22px 22px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
    transition: opacity .22s ease;
}

.mc-popup-overlay-text {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.mc-popup-dismiss-forever {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: inherit;
    font-size: .95rem;
    font-weight: 600;
    padding: 14px 18px;
}

@media (hover: hover) and (pointer: fine) {
    .mc-popup-overlay {
        opacity: 0;
    }

    .mc-popup-media:hover .mc-popup-overlay,
    .mc-popup-media:focus-visible .mc-popup-overlay {
        opacity: 1;
    }
}

@media (max-width: 767.98px) {
    .mc-popup-card {
        width: min(94vw, 430px);
        border-radius: 24px;
    }

    .mc-popup-overlay {
        opacity: 1;
        padding: 14px 16px 18px;
    }

    .mc-popup-overlay-text {
        font-size: .94rem;
    }

    .mc-popup-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
}

@keyframes mcPopupEnter {
    from {
        opacity: 0;
        transform: translate(-50%, -47%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
