.sgce-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sgce-popup.is-visible {
    display: flex;
    opacity: 1;
}

.sgce-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.sgce-popup__dialog {
    position: relative;
    max-width: 420px;
    width: 92%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
    padding: 36px 32px 40px;
    z-index: 1;
    overflow: hidden;
    transform: translateY(12px);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.sgce-popup.is-visible .sgce-popup__dialog {
    transform: translateY(0);
}

.sgce-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    /* background: rgba(15, 23, 42, 0.05); */
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
    margin: 0;
    width: 36px;
    height: 36px;
    min-height: auto;
    border-radius: 50%;
    outline: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sgce-popup__close:hover,
.sgce-popup__close:focus {
    /* background: rgba(15, 23, 42, 0.12); */
    transform: scale(1.05);
}

.sgce-popup__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 26px;
}

.sgce-popup__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(250, 208, 196, 0.8));
    box-shadow: 0 18px 38px rgba(250, 160, 160, 0.2);
    position: relative;
    overflow: hidden;
    /* animation: sgce-popup-bounce 3.5s ease-in-out infinite; */
}

.sgce-popup__illustration {
    display: block;
    width: 120px;
    height: 120px;
}

.sgce-popup__svg {
    width: 100%;
    height: auto;
    display: block;
}

.sgce-popup__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sgce-popup__title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.sgce-popup__message {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #475569;
    font-weight: 500;
}

body.sgce-popup-open {
    overflow: hidden;
}

@keyframes sgce-popup-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 480px) {
    .sgce-popup__dialog {
        padding: 28px 24px 32px;
    }

    .sgce-popup__media {
        width: 140px;
        height: 140px;
    }

    .sgce-popup__title {
        font-size: 20px;
    }

    .sgce-popup__message {
        font-size: 16px;
    }
}
