/* ==========================================
   DOMINIOK POPUP
   ========================================== */

html {
    scrollbar-gutter: stable;
}

.dok-popup-overlay {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 99999;

    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.45);
}


/* Popup aperto */
.dok-popup-overlay.is-open {
    display: flex;
}


/* Finestra */
.dok-popup-window {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 700px;

    max-width: calc(100vw - 40px);
    max-height: 85vh;

    background: #fff;

    border-radius: 8px;

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25);

    overflow: hidden;
}


/* Header */
.dok-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 16px;
    padding: 8px 12px;
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
}


/* Titolo */
.dok-popup-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: pre-line;
}


/* Pulsante chiusura */
.dok-popup-close {
    width: 26px;
    height: 26px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 23px;
    line-height: 23px;
    cursor: pointer;
}


/* Hover chiusura */
.dok-popup-close:hover {
    color: #111;
}


/* Contenuto */
.dok-popup-content {
    flex: 1 1 auto;

    padding: 20px;

    font-size: 13px;
    line-height: 1.55;

    color: #222;

    overflow: auto;
    overflow-wrap: anywhere;
}


/* Caricamento */
.dok-popup-loading {
    color: #777;
}


/* Errore */
.dok-popup-error {
    color: #b42318;
}


/* Iframe */
.dok-popup-iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    background: #fff;
}


/* Blocca lo scroll della pagina sotto */
body.dok-popup-open {
    overflow: hidden;
}


/* Mobile */
@media (max-width: 700px) {

    .dok-popup-overlay {
        padding: 10px;
    }

    .dok-popup-window {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .dok-popup-header {
        padding: 13px 15px;
    }

    .dok-popup-content {
        padding: 15px;
    }

}