/* Popup contenedor: pegado al borde inferior derecho */
.pe-popup-overlay {
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    top: auto !important;
    z-index: 999999 !important;
    width: 320px !important;
    max-width: 100% !important;
    opacity: 0;
    transform: translateX(100%) !important;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease !important;
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.pe-popup-overlay.is-visible {
    opacity: 1;
    transform: translateX(0) !important;
    pointer-events: auto;
}

/* Imagen pegada, sin bordes redondeados ni sombra */
.pe-popup-image {
    display: block;
    width: 100% !important;
    height: auto;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Icono de cierre: solo SVG blanco, sin botón ni fondo */
.pe-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: none !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
    z-index: 10;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pe-popup-close svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.pe-popup-close:hover,
.pe-popup-close:focus {
    opacity: 0.75;
}

/* Ajustes móviles */
@media (max-width: 480px) {
    .pe-popup-overlay {
        width: 260px !important;
        bottom: 0 !important;
        right: 0 !important;
    }

    .pe-popup-close {
        width: 22px;
        height: 22px;
        top: 8px;
        right: 8px;
    }

    .pe-popup-close svg {
        width: 18px;
        height: 18px;
    }
}
