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

.remind-connect-popup {
    align-items: center;
    background: rgba(17, 4, 38, 0.58);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: clamp(16px, 4vw, 40px);
    position: fixed;
    transition: opacity 180ms ease;
    z-index: 999999;
}

.remind-connect-popup.is-visible {
    opacity: 1;
}

.remind-connect-popup__panel {
    background: #15004b;
    border-radius: 14px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.4);
    max-height: calc(100vh - 32px);
    max-width: min(520px, 88vw);
    overflow: visible;
    position: relative;
    transform: translateY(8px) scale(0.985);
    transition: transform 180ms ease;
    width: 100%;
}

.remind-connect-popup.is-visible .remind-connect-popup__panel {
    transform: translateY(0) scale(1);
}

.remind-connect-popup__link {
    border-radius: 14px;
    display: block;
    overflow: hidden;
}

.remind-connect-popup__link:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

.remind-connect-popup__link img {
    display: block;
    height: auto;
    max-height: calc(100vh - 32px);
    object-fit: contain;
    width: 100%;
}

.remind-connect-popup__close {
    align-items: center;
    appearance: none;
    background: #ffffff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
    color: #24005c;
    cursor: pointer;
    display: flex;
    font: 700 30px/1 Arial, sans-serif;
    height: 44px;
    justify-content: center;
    padding: 0 0 3px;
    position: absolute;
    right: -12px;
    top: -12px;
    width: 44px;
    z-index: 2;
}

.remind-connect-popup__close:hover {
    background: #f2ebff;
}

.remind-connect-popup__close:focus-visible {
    outline: 3px solid #ff3f96;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .remind-connect-popup {
        padding: 20px;
    }

    .remind-connect-popup__panel {
        max-height: calc(100vh - 40px);
        max-width: min(440px, 88vw);
    }

    .remind-connect-popup__link img {
        max-height: calc(100vh - 40px);
    }

    .remind-connect-popup__close {
        right: -10px;
        top: -10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .remind-connect-popup,
    .remind-connect-popup__panel {
        transition: none;
    }
}
