.mcc-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(25, 25, 24, 0.6);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mcc-popup-overlay[hidden] {
    display: none;
}

.mcc-popup-overlay.is-visible {
    opacity: 1;
}

.mcc-popup {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}

.mcc-popup-overlay.is-visible .mcc-popup {
    transform: translateY(0) scale(1);
}

.mcc-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 999px;
    color: #191918;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mcc-popup__close:hover,
.mcc-popup__close:focus-visible {
    background: #a6192e;
    color: #ffffff;
}

.mcc-popup__media img {
    display: block;
    width: 100%;
    height: auto;
}

.mcc-popup__content {
    padding: 32px;
}

.mcc-popup__title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    color: #191918;
}

.mcc-popup__body {
    font-size: 16px;
    line-height: 1.6;
    color: #3a3a38;
}

.mcc-popup__body p {
    margin: 0 0 12px;
}

.mcc-popup__body p:last-child {
    margin-bottom: 0;
}

.mcc-popup__body a {
    color: #a6192e;
}

.mcc-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 12px 24px;
    background: #a6192e;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.mcc-popup__btn:hover,
.mcc-popup__btn:focus-visible {
    background: #851324;
    color: #ffffff;
}

@media (max-width: 540px) {
    .mcc-popup__content {
        padding: 24px;
    }

    .mcc-popup__title {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mcc-popup-overlay,
    .mcc-popup {
        transition: none;
    }
}
