.dpi-popup-open {
    overflow: hidden;
}

.dpi-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpi-popup-modal {
    background: #ffffff;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 24px;
    border-radius: 16px; /* kulaté rohy */
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

/* Křížek pro zavření – vykreslený přes ::before, aby ho nic nepřebilo */
.dpi-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    text-indent: 0;
    overflow: visible;
}

.dpi-popup-close::before {
    content: "×";
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 32px;
    font-size: 20px;
    color: #3B4F68;
    font-family: Arial, sans-serif;
}

.dpi-popup-close:hover::before {
    background: rgba(0,0,0,0.06);
    border-radius: 50%;
}

/* Základní vzhled tlačítka – transparentní pozadí, aby ho šlo snadno doladit v Elementoru */
.dpi-popup-button {
    cursor: pointer;
    background-color: transparent;
    color: inherit;
    border: none;
    border-radius: 4px;
    padding: 0;
    font-size: inherit;
    line-height: 1.4;
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

/* Žádný speciální hover – necháme to na Elementoru */
.dpi-popup-button:hover {
    background-color: transparent;
    color: inherit;
}

.dpi-popup-link {
    cursor: pointer;
    text-decoration: underline;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}
