/* KLAPP Testing Popup */

.klapp-testing-popup[hidden] {
    display: none !important;
}

.klapp-testing-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.klapp-testing-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(2px);
}

.klapp-testing-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    background: #ffffff;
    animation: klappTestingPopupIn 0.25s ease-out;
}

.klapp-testing-popup__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.klapp-testing-popup__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 48px);
    object-fit: contain;
    background: #ffffff;
}

.klapp-testing-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #1f1f1f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    padding: 0;
    font: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, background 0.18s ease;
}

.klapp-testing-popup__close:hover {
    transform: scale(1.04);
    background: #ffffff;
}

.klapp-testing-popup__close-icon {
    display: none;
    font-size: 30px;
    line-height: 1;
    font-weight: 300;
    transform: translateY(-1px);
}

.klapp-testing-popup__close.is-close-visible .klapp-testing-popup__close-icon {
    display: inline-block;
}

.klapp-testing-popup__timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: transparent;
    color: #000000;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    font-weight: 600;
    box-sizing: border-box;
}

.klapp-testing-popup__timer.is-hidden {
    display: none;
}

body.klapp-testing-popup-open {
    overflow: hidden;
}

@keyframes klappTestingPopupIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 767px) {
    .klapp-testing-popup {
        padding: 16px;
    }

    .klapp-testing-popup__dialog {
        width: min(420px, 100%);
        border-radius: 16px;
        max-height: calc(100vh - 32px);
    }

    .klapp-testing-popup__image {
        max-height: calc(100vh - 32px);
    }

    .klapp-testing-popup__close {
        width: 38px;
        height: 38px;
        top: 10px;
        right: 10px;
    }

    .klapp-testing-popup__close-icon {
        font-size: 28px;
    }
}
