.paripesa-popup {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10050;
    padding: 16px 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(115%);
    transition:
        opacity 0.28s ease,
        transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.paripesa-popup.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.paripesa-popup__inner {
    position: relative;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    width: min(1180px, 100%);
    min-height: 132px;
    margin: 0 auto;
    padding: 22px 76px 22px 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 22%, rgba(255, 151, 0, 0.34), transparent 34%),
        radial-gradient(circle at 17% 12%, rgba(61, 117, 255, 0.34), transparent 28%),
        linear-gradient(90deg, #00086f 0%, #0014a8 48%, #0038ff 100%);
    border: 1px solid rgba(120, 161, 255, 0.52);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 8, 111, 0.36);
    overflow: hidden;
}

.paripesa-popup__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 26%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 20px);
}

.paripesa-popup__inner::after {
    content: "";
    position: absolute;
    right: 224px;
    bottom: -44px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 38% 34%, #ffffff 0 10px, transparent 11px),
        radial-gradient(circle at 64% 52%, #ffffff 0 12px, transparent 13px),
        linear-gradient(135deg, #ff9700, #ffcb38);
    opacity: 0.34;
    transform: rotate(-14deg);
}

.paripesa-popup__brand,
.paripesa-popup__copy,
.paripesa-popup__cta,
.paripesa-popup__close {
    position: relative;
    z-index: 1;
}

.paripesa-popup__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.paripesa-popup__logo {
    display: block;
    width: 226px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

.paripesa-popup__tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    color: #101010;
    background: #ff9700;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0;
}

.paripesa-popup__copy {
    min-width: 0;
}

.paripesa-popup__kicker {
    margin: 0 0 6px;
    color: #ffcb38;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0;
}

.paripesa-popup__title {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.04;
    font-weight: 1000;
    letter-spacing: 0;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.paripesa-popup__body {
    max-width: 640px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.paripesa-popup__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-top: 12px;
}

.paripesa-popup__offer,
.paripesa-popup__timer {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: 0;
}

.paripesa-popup__offer {
    color: #071177;
    background: #ffffff;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.paripesa-popup__timer {
    gap: 7px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.paripesa-popup__timer strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 24px;
    color: #101010;
    background: #ffcb38;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}

.paripesa-popup__fineprint {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
}

.paripesa-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 60px;
    padding: 15px 26px;
    color: #101010;
    background: #ff9700;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(255, 151, 0, 0.32);
    font-size: 20px;
    font-weight: 1000;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0;
    white-space: nowrap;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.paripesa-popup__cta:hover {
    color: #101010;
    background: #ffb11f;
    transform: translateY(-1px);
    box-shadow: 0 17px 34px rgba(255, 151, 0, 0.42);
}

.paripesa-popup__close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #0014a8;
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 16px;
}

.paripesa-popup__close:hover {
    background: #ffffff;
}

.dark-mode .paripesa-popup__inner {
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.52);
}

@media (max-width: 900px) {
    .paripesa-popup__inner {
        grid-template-columns: 170px minmax(0, 1fr);
        padding-right: 58px;
    }

    .paripesa-popup__cta {
        grid-column: 1 / -1;
        width: 100%;
    }

    .paripesa-popup__logo {
        width: 176px;
    }
}

@media (max-width: 720px) {
    .paripesa-popup {
        right: 0;
        bottom: 74px;
        left: 0;
        max-height: calc(100dvh - 92px);
        padding: 0 10px 10px;
        overflow-y: auto;
        transform: translateY(calc(100% + 92px));
    }

    .paripesa-popup__inner {
        grid-template-columns: 1fr;
        gap: 13px;
        width: min(488px, 100%);
        min-height: auto;
        margin: 0 auto;
        padding: 18px 48px 18px 18px;
        border-radius: 18px 18px 14px 14px;
    }

    .paripesa-popup__logo {
        width: 188px;
    }

    .paripesa-popup__tag {
        min-height: 25px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .paripesa-popup__title {
        font-size: 21px;
    }

    .paripesa-popup__body {
        font-size: 13px;
    }

    .paripesa-popup__meta {
        gap: 7px;
    }

    .paripesa-popup__offer,
    .paripesa-popup__timer {
        font-size: 11px;
    }

    .paripesa-popup__cta {
        min-height: 50px;
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .paripesa-popup {
        transition: opacity 0.18s ease;
    }
}
