body.dsgn-popup-lock {
    overflow: hidden;
}

.dsgn-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    padding: clamp(16px, 4vw, 44px);
    box-sizing: border-box;
}

.dsgn-popup-overlay.is-visible {
    display: flex;
}

.dsgn-popup-overlay.placement-center {
    align-items: center;
    justify-content: center;
}

.dsgn-popup-overlay.placement-bottom {
    align-items: flex-end;
    justify-content: center;
}

.dsgn-popup-overlay.placement-bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
}

.dsgn-popup-overlay.placement-bottom-left {
    align-items: flex-end;
    justify-content: flex-start;
}

.dsgn-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(3px);
}

.dsgn-popup-card {
    --dsgn-popup-radius: 24px;
    --dsgn-popup-border-width: 1px;
    --dsgn-popup-border-color: #e2e8f0;
    --dsgn-popup-max-width: 920px;
    --dsgn-popup-image-position: center center;
    --dsgn-popup-image-fit: contain;
    --dsgn-popup-content-padding-desktop: 40px;
    --dsgn-popup-content-padding-mobile: 22px;
    --dsgn-popup-card-bg: #ffffff;
    --dsgn-popup-heading-color: #111111;
    --dsgn-popup-text-color: #222222;
    --dsgn-popup-button-bg: #1450F6;
    --dsgn-popup-button-color: #ffffff;
    --dsgn-popup-close-size: 42px;
    --dsgn-popup-close-icon-size: 24px;
    --dsgn-popup-close-bg: #ffffff;
    --dsgn-popup-close-color: #111111;
    position: relative;
    box-sizing: border-box;
    width: min(var(--dsgn-popup-max-width), calc(100vw - 32px));
    max-height: min(88vh, 820px);
    overflow: auto;
    border: var(--dsgn-popup-border-width) solid var(--dsgn-popup-border-color);
    border-radius: var(--dsgn-popup-radius);
    background: var(--dsgn-popup-card-bg);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
}

.dsgn-popup-overlay.is-visible .dsgn-popup-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.dsgn-popup-inner {
    display: block;
}

.dsgn-popup-card.has-image .dsgn-popup-inner {
    display: grid;
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    min-height: 360px;
}

.dsgn-popup-media {
    position: relative;
    height: 100%;
    min-height: 360px;
    overflow: hidden;
    background: transparent;
}

.dsgn-popup-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--dsgn-popup-image-fit);
    object-position: var(--dsgn-popup-image-position);
}

#dsgn-popup-okno .dsgn-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--dsgn-popup-close-size);
    height: var(--dsgn-popup-close-size);
    padding: 0;
    border: 1px solid var(--dsgn-popup-border-color) !important;
    border-radius: 999px;
    background: var(--dsgn-popup-close-bg) !important;
    color: var(--dsgn-popup-close-color) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    font-family: inherit;
    font-size: var(--dsgn-popup-close-icon-size);
    font-weight: 400;
    line-height: 1;
    letter-spacing: normal;
    text-decoration: none;
    text-transform: none;
    text-align: center;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

#dsgn-popup-okno .dsgn-popup-close:hover,
#dsgn-popup-okno .dsgn-popup-close:focus-visible {
    border-color: var(--dsgn-popup-border-color) !important;
    background: var(--dsgn-popup-close-bg) !important;
    color: var(--dsgn-popup-close-color) !important;
    filter: brightness(0.96);
    transform: scale(1.04);
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.dsgn-popup-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--dsgn-popup-content-padding-desktop);
}

.dsgn-popup-card.align-center .dsgn-popup-content {
    text-align: center;
}

.dsgn-popup-card.align-center .dsgn-popup-title,
.dsgn-popup-card.align-center .dsgn-popup-text {
    margin-left: auto;
    margin-right: auto;
}

.dsgn-popup-title {
    margin-top: 0;
    margin-bottom: 18px;
    max-width: 760px;
    color: var(--dsgn-popup-heading-color);
}

.dsgn-popup-text {
    max-width: 720px;
    color: var(--dsgn-popup-text-color);
}

.dsgn-popup-text p:first-child {
    margin-top: 0;
}

.dsgn-popup-text p:last-child {
    margin-bottom: 0;
}

.dsgn-popup-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dsgn-popup-text ul,
.dsgn-popup-text ol {
    padding-left: 1.2em;
}

.dsgn-popup-actions {
    margin-top: 28px;
}

.dsgn-popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--dsgn-popup-button-bg);
    color: var(--dsgn-popup-button-color) !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 12px 30px rgba(20, 80, 246, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.dsgn-popup-button:hover,
.dsgn-popup-button:focus-visible {
    opacity: 0.94;
    transform: translateY(-1px);
    box-shadow: 0 16px 38px rgba(20, 80, 246, 0.28);
    outline: none;
}

@media (max-width: 1024px) {
    .dsgn-popup-card {
        width: min(var(--dsgn-popup-max-width), calc(100vw - 28px));
        max-height: 88vh;
    }

    .dsgn-popup-card.has-image .dsgn-popup-inner {
        grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    }

    .dsgn-popup-content {
        padding: var(--dsgn-popup-content-padding-desktop);
    }
}

@media (max-width: 767px) {
    .dsgn-popup-overlay {
        padding: 12px;
    }

    .dsgn-popup-overlay.placement-center {
        align-items: center;
        justify-content: center;
    }

    .dsgn-popup-overlay.placement-bottom,
    .dsgn-popup-overlay.placement-bottom-right,
    .dsgn-popup-overlay.placement-bottom-left {
        align-items: flex-end;
        justify-content: center;
    }

    .dsgn-popup-card {
        width: 100%;
        max-height: 88vh;
        border-radius: min(var(--dsgn-popup-radius), 26px);
    }

    .dsgn-popup-card.has-image .dsgn-popup-inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .dsgn-popup-card.has-image .dsgn-popup-media {
        order: -1;
        height: clamp(135px, 27vh, 210px);
        min-height: 0;
        max-height: 210px;
        padding: 8px 8px 0;
    }

    .dsgn-popup-content {
        justify-content: flex-start;
        padding: var(--dsgn-popup-content-padding-mobile);
    }

    .dsgn-popup-title {
        padding-right: calc(var(--dsgn-popup-close-size) + 10px);
    }

    .dsgn-popup-card.align-center .dsgn-popup-title {
        padding-left: calc(var(--dsgn-popup-close-size) + 10px);
    }

    .dsgn-popup-button {
        width: 100%;
        min-height: 50px;
        padding: 14px 18px;
    }

    #dsgn-popup-okno .dsgn-popup-close {
        top: 12px;
        right: 12px;
    }
}
