html.campaign-popup-lock,
html.campaign-popup-lock body {
    overflow: hidden;
}

.campaign-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 200ms ease;
}

.campaign-popup[hidden] {
    display: none !important;
}

.campaign-popup.is-visible {
    opacity: 1;
}

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

.campaign-popup,
.campaign-popup * {
    box-sizing: border-box;
}

.campaign-popup__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(26rem, 100vw);
    max-width: 100vw;
    min-width: 0;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    color: #161616;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.campaign-popup__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #161616;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.campaign-popup__close .material-symbols-outlined {
    font-size: 1.5rem;
}

.campaign-popup__image {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    flex: 0 0 auto;
    aspect-ratio: 1254 / 719;
    object-fit: contain;
    object-position: center;
    background: #111;
}

.campaign-popup__body {
    min-width: 0;
    padding: 1.25rem 1.25rem 1.5rem;
}

.campaign-popup__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #161616;
}

.campaign-popup__description {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.45;
    color: #161616;
}

.campaign-popup__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5625rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
    border-radius: 22px;
    background: #f9b101;
    color: #292929;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.campaign-popup__cta-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.campaign-popup__cta-label {
    min-width: 0;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.campaign-popup__cta:hover,
.campaign-popup__cta:focus {
    color: #292929;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .campaign-popup {
        align-items: flex-end;
        padding: 0;
    }

    .campaign-popup__dialog {
        width: 100vw;
        max-width: 100vw;
        max-height: calc(100vh - env(safe-area-inset-top, 0px) - 0.75rem);
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 0.75rem);
        border-radius: 16px 16px 0 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .campaign-popup__image {
        max-height: min(15.5rem, 42vh);
    }
}

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