.sym-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.65);
}

.sym-popup-modal {
    position: relative;
    width: fit-content;
    max-width: min(92vw, 520px);
    max-height: 90dvh;
    padding: 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.sym-popup-title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
    color: #222;
}

#sym-random-popup-link {
    display: block;
    text-align: center;
}

#sym-random-popup-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(88vw, 480px);
    max-height: 70dvh;
    margin: 0 auto;
    object-fit: contain;
}

.sym-popup-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.sym-popup-actions button {
    min-width: 140px;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.sym-popup-actions button:last-child {
    background: #666;
}

.sym-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 768px) {
    .sym-popup-overlay {
        padding: 12px;
    }

    .sym-popup-modal {
        width: 100%;
        max-width: 94vw;
        max-height: 88dvh;
        padding: 14px;
    }

    #sym-random-popup-image {
        max-width: 100%;
        max-height: 62dvh;
    }

    .sym-popup-actions {
        flex-direction: column;
    }

    .sym-popup-actions button {
        width: 100%;
        min-width: 100%;
    }
}