.discount-campaign-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
}

.discount-campaign-popup.is-open {
    display: flex;
}

.discount-campaign-popup__dialog {
    position: relative;
    width: min(96vw, 56rem);
    max-width: 56rem;
    animation: discountCampaignFadeIn 0.25s ease-out;
}

.discount-campaign-popup__close {
    position: absolute;
    top: -0.875rem;
    right: -0.875rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 9999px;
    background: #fff;
    color: #111827;
    font-size: 1.375rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.discount-campaign-popup__close:hover {
    background: #f3f4f6;
}

.discount-campaign-popup__link {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    text-decoration: none;
    line-height: 0;
}

.discount-campaign-popup__image {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.discount-campaign-popup__caption {
    margin: 0.875rem 0 0;
    padding: 0 0.5rem;
    text-align: center;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

@keyframes discountCampaignFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .discount-campaign-popup {
        padding: 0.75rem;
        align-items: center;
    }

    .discount-campaign-popup__dialog {
        width: min(98vw, 56rem);
    }

    .discount-campaign-popup__close {
        top: -0.625rem;
        right: -0.625rem;
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.25rem;
    }

    .discount-campaign-popup__caption {
        font-size: 0.8125rem;
    }
}

@media (min-width: 1024px) {
    .discount-campaign-popup__dialog {
        width: min(90vw, 56rem);
    }

    .discount-campaign-popup__caption {
        font-size: 1rem;
    }
}
