/* Sitewide popup */
.dsp-sitewide-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 9999;
    font-family: inherit;
    color: #111;
}

.dsp-sitewide-popup:not([hidden]) {
    display: flex;
}

.dsp-sitewide-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.55);
    backdrop-filter: blur(2px);
}

.dsp-sitewide-popup__container {
    position: relative;
    width: min(90vw, 640px);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 1.75rem;
}

.dsp-sitewide-popup__content {
    font-size: 1rem;
    line-height: 1.6;
}

.dsp-sitewide-popup__content p {
    margin: 0 0 1rem;
}

.dsp-sitewide-popup__content p:last-child {
    margin-bottom: 0;
}

.dsp-sitewide-popup__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: 1px solid transparent;
    background: transparent;
    color: #111;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.35rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.dsp-sitewide-popup__close:hover,
.dsp-sitewide-popup__close:focus-visible {
    background: #f2f2f2;
    border-color: #ddd;
    color: #000;
    outline: none;
}

body.dsp-sitewide-popup-open {
    overflow: hidden;
}
