/* Digitis Bourse Popup Safe — volontairement isolé du thème. */
#dsp-safe-popup,
#dsp-safe-popup * {
    box-sizing: border-box;
}

#dsp-safe-popup {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2147483000;
    width: min(420px, calc(100vw - 32px));
    margin: 0;
    padding: 0;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.98);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

#dsp-safe-popup.dsp-is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#dsp-safe-popup .dsp-safe-card {
    position: relative;
    pointer-events: auto;
    width: 100%;
    max-height: calc(100vh - 44px);
    overflow: auto;
    overscroll-behavior: contain;
    background: #ffffff;
    border: 1px solid rgba(10,31,68,.10);
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(7,22,48,.24);
}

#dsp-safe-popup .dsp-safe-top {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 86px;
    padding: 17px 52px 17px 18px;
    background: linear-gradient(135deg, #0a1f44 0%, #102f63 100%);
    color: #fff;
}

#dsp-safe-popup .dsp-safe-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    padding: 7px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    color: #0a1f44;
    font-size: 18px;
    font-weight: 800;
}

#dsp-safe-popup .dsp-safe-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

#dsp-safe-popup .dsp-safe-heading {
    min-width: 0;
}

#dsp-safe-popup .dsp-safe-kicker {
    display: block;
    margin: 0 0 2px;
    color: #7ee1ac;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

#dsp-safe-popup .dsp-safe-heading strong {
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: .10em;
}

#dsp-safe-popup .dsp-safe-heading em {
    color: #52cf90;
    font-style: normal;
}

#dsp-safe-popup .dsp-safe-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    font: 400 25px/1 Arial, sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

#dsp-safe-popup .dsp-safe-close:hover,
#dsp-safe-popup .dsp-safe-close:focus-visible {
    background: rgba(255,255,255,.24);
    outline: none;
}

#dsp-safe-popup .dsp-safe-content {
    padding: 21px 20px 20px;
    background: #fff;
}

#dsp-safe-popup h2 {
    margin: 0 0 13px;
    padding: 0;
    color: #0a1f44;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.25;
    text-transform: none;
    letter-spacing: 0;
}

#dsp-safe-popup .dsp-safe-offer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
}

#dsp-safe-popup .dsp-safe-offer strong {
    flex: 0 0 auto;
    color: #22a06b;
    font-size: 27px;
    line-height: 1;
}

#dsp-safe-popup .dsp-safe-offer span {
    color: #5c6576;
    font-size: 12.5px;
    line-height: 1.35;
}

#dsp-safe-popup p {
    margin: 0 0 17px;
    padding: 0;
    color: #465063;
    font-size: 13.5px;
    line-height: 1.6;
}

#dsp-safe-popup .dsp-safe-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 9px;
    background: #22a06b;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
}

#dsp-safe-popup .dsp-safe-cta:hover,
#dsp-safe-popup .dsp-safe-cta:focus-visible {
    background: #1b8659;
    color: #fff;
    text-decoration: none;
}

#dsp-safe-popup small {
    display: block;
    margin-top: 11px;
    color: #8991a0;
    font-size: 10.5px;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 600px) {
    #dsp-safe-popup {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    #dsp-safe-popup .dsp-safe-card {
        max-height: calc(100vh - 24px);
        border-radius: 15px;
    }

    #dsp-safe-popup .dsp-safe-top {
        min-height: 72px;
        padding: 12px 48px 12px 14px;
    }

    #dsp-safe-popup .dsp-safe-logo {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    #dsp-safe-popup .dsp-safe-content {
        padding: 17px 16px 16px;
    }

    #dsp-safe-popup h2 {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #dsp-safe-popup {
        transition: none;
    }
}
