/* DZ PGŽ Pop-up */
.dzp[hidden] { display: none !important; }

.dzp {
    --dzp-accent: #0067b1;
    --dzp-width: 560px;
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    font-size: 16px;
    line-height: 1.55;
}
.dzp--bottom-right { align-items: flex-end; justify-content: flex-end; }
.dzp--bottom-left  { align-items: flex-end; justify-content: flex-start; }

html.dzp-lock { overflow: hidden; }

.dzp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 35, .6);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: auto;
}

.dzp-box {
    position: relative;
    width: 100%;
    max-width: var(--dzp-width);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    color: #1d2733;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(16px) scale(.98);
    transition: opacity .25s ease, transform .25s ease;
    outline: none;
}
.dzp--bottom-right .dzp-box,
.dzp--bottom-left .dzp-box { max-width: min(var(--dzp-width), 400px); box-shadow: 0 8px 32px rgba(0, 0, 0, .22); }

.dzp.is-open .dzp-overlay { opacity: 1; }
.dzp.is-open .dzp-box { opacity: 1; transform: none; }

.dzp-box:focus-visible { box-shadow: 0 0 0 3px var(--dzp-accent), 0 20px 60px rgba(0, 0, 0, .3); }

#dz-popup .dzp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    font-size: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1d2733;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    transition: background .15s;
    line-height: 1;
}
#dz-popup .dzp-close:hover { background: #eef1f4; }
.dzp-close:focus-visible { outline: 3px solid var(--dzp-accent); outline-offset: 2px; }

.dzp-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 45vh;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin: 0;
}

.dzp-body { padding: 28px 28px 24px; }
.dzp-body > :first-child { margin-top: 0; }
.dzp-image + .dzp-body { padding-top: 22px; }

.dzp-title {
    margin: 0 36px 12px 0;
    font-size: 1.45em;
    line-height: 1.25;
    color: inherit;
}
.dzp-image + .dzp-body .dzp-title { margin-right: 0; }

.dzp-content > :last-child { margin-bottom: 0; }
.dzp-content p { margin: 0 0 .8em; }
.dzp-content img { max-width: 100%; height: auto; }

.dzp-actions { margin: 18px 0 0; }

/* Gumb – #dz-popup prefiks da stilovi teme (npr. The7) ne mijenjaju veličinu */
#dz-popup a.dzp-btn,
#dz-popup a.dzp-btn:visited {
    --dzp-btn-pad: 8px 16px;
    display: inline-block;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: var(--dzp-btn-pad);
    border: 0;
    border-radius: 6px;
    background: var(--dzp-accent);
    box-shadow: none;
    color: #fff !important;
    font-family: inherit;
    font-size: var(--dzp-btn-font, 14px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none !important;
    transition: filter .15s;
}
#dz-popup.dzp-btn--medium a.dzp-btn { --dzp-btn-pad: 11px 22px; border-radius: 7px; }
#dz-popup.dzp-btn--large a.dzp-btn  { --dzp-btn-pad: 14px 30px; border-radius: 8px; }
#dz-popup a.dzp-btn:hover { filter: brightness(1.1); }
.dzp-btn:focus-visible { outline: 3px solid var(--dzp-accent); outline-offset: 3px; }

.dzp-dont { margin: 16px 0 0; }
#dz-popup .dzp-dont button {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    color: #5b6672;
    font: inherit;
    font-size: .85em;
    text-decoration: underline;
    cursor: pointer;
}
#dz-popup .dzp-dont button:hover { color: #1d2733; }

@media (max-width: 600px) {
    .dzp-body { padding: 22px 20px 20px; }
    .dzp-title { font-size: 1.25em; }
    .dzp--bottom-right, .dzp--bottom-left { padding: 10px; justify-content: center; }
    .dzp--bottom-right .dzp-box, .dzp--bottom-left .dzp-box { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .dzp-overlay, .dzp-box { transition: none; }
}
