html.kn-popup-otwarty,
body.kn-popup-otwarty {
    overflow: hidden !important;
}

.kn-popup-warstwa,
.kn-popup-warstwa * {
    box-sizing: border-box;
}

.kn-popup-warstwa {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: grid;
    padding: clamp(14px, 2.2vw, 32px);
    place-items: center;
    background: rgba(8, 20, 43, .76);
    backdrop-filter: blur(5px);
}

.kn-popup-warstwa[hidden] {
    display: none;
}

.kn-popup-okno {
    position: relative;
    width: min(1780px, 100%);
    height: 100%;
    min-height: 480px;
    overflow: hidden;
    background: #f4f7fb;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(3, 15, 35, .36);
}

.kn-popup-ramka {
    display: block;
    width: 100%;
    height: 100%;
    background: #f4f7fb;
    border: 0;
    border-radius: inherit;
}

.kn-popup-zamknij {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 16px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: #17345f;
    background: rgba(255, 255, 255, .94);
    border: 1px solid #d7e1ef;
    border-radius: 999px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .15);
    cursor: pointer;
}

.kn-popup-zamknij:hover {
    color: #fff;
    background: #d83b3b;
    border-color: #d83b3b;
}

.kn-cena-nadruku {
    display: block;
    margin-top: 4px;
    color: #155bc0;
    font-size: .76em;
    font-weight: 750;
    line-height: 1.35;
}

.kn-cena-nadruku span {
    color: #52667f;
    font-weight: 600;
}

@media (max-width: 720px) {
    .kn-popup-warstwa {
        padding: 0;
        place-items: stretch;
        backdrop-filter: none;
    }

    .kn-popup-okno,
    .kn-popup-ramka {
        width: 100vw;
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .kn-popup-zamknij {
        top: 8px;
        right: 8px;
    }
}

.kn-popup-zamknij:focus-visible {
    outline: 3px solid rgba(16, 185, 138, .4);
    outline-offset: 2px;
}

.kn-popup-zamknij span,
.kn-popup-zamknij span::after {
    display: block;
    width: 19px;
    height: 2px;
    content: "";
    background: currentColor;
    border-radius: 2px;
    transform: rotate(45deg);
}

.kn-popup-zamknij span::after {
    transform: rotate(90deg);
}

.kn-popup-ladowanie {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #475467;
    background: #f1f3f4;
    font: 600 14px/1.4 system-ui, sans-serif;
}

.kn-popup-ladowanie[hidden] {
    display: none;
}

.kn-popup-ladowanie i {
    width: 24px;
    height: 24px;
    border: 3px solid #d8dddf;
    border-top-color: #10b98a;
    border-radius: 50%;
    animation: kn-popup-obrot .7s linear infinite;
}

@keyframes kn-popup-obrot {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kn-popup-ladowanie i {
        animation-duration: 1.8s;
    }
}
