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

.indoscan-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.indoscan-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 9, 30, 0.72);
    backdrop-filter: blur(3px);
}

.indoscan-popup__dialog {
    position: relative;
    width: min(440px, 94vw);
    max-height: 94vh;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    animation: indoscanPopupIn 0.22s ease-out;
}

.indoscan-popup__title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.indoscan-popup__image-wrap {
    max-height: calc(94vh - 92px);
    overflow: auto;
    background: #06132f;
}

.indoscan-popup__image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 260px;
    object-fit: cover;
}

.indoscan-popup__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 16px;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.indoscan-popup__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #0f1f3d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    user-select: none;
}

.indoscan-popup__check input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #f01721;
}

.indoscan-popup__button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    background: #f01721;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(240, 23, 33, 0.28);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.indoscan-popup__button:hover,
.indoscan-popup__button:focus {
    background: #d9111b;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(240, 23, 33, 0.34);
    outline: none;
}

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

@media (max-width: 480px) {
    .indoscan-popup {
        padding: 10px;
    }

    .indoscan-popup__dialog {
        width: min(420px, 96vw);
        border-radius: 14px;
    }

    .indoscan-popup__image-wrap {
        max-height: calc(94vh - 105px);
    }

    .indoscan-popup__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .indoscan-popup__check {
        justify-content: center;
        font-size: 12.5px;
    }

    .indoscan-popup__button {
        width: 100%;
        padding: 13px 16px;
    }
}
