.emw-widget[hidden] {
    display: none !important;
}

.emw-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    max-width: 320px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
}

.emw-widget.emw-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.emw-widget__link {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6f2bff, #ff2f74);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(111, 43, 255, .35);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    border: 10px solid #c4c4c426;
}

.emw-widget__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(0, 0, 0, .24);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    z-index: 2;
}

.emw-widget__close:hover {
    background: rgba(0, 0, 0, .4);
}

.emp-popup__text {
    display: block;
    font-size: 18px;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 500;
    font-family: Ubuntu, sans-serif;
}

.emp-popup__content {
    flex: 1;
    min-width: 0;
}

.emp-popup__subtext {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.35;
    color: rgba(255, 255, 255, .94);
    font-weight: 400;
    font-family: Arial, sans-serif;
}

.emp-popup__subtext b,
.emp-popup__subtext strong {
    font-weight: 600;
    color: #fff;
}

.emp-popup__cta {
    width: 100%;
    flex-shrink: 0;
    white-space: nowrap;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 16px;
    font-weight: 400;
    background: rgba(0, 0, 0, .17);
    border-radius: 8px;
    padding: 6px 8px;
}

.emp-popup__cta:hover {
    background: rgba(0, 0, 0, .3);
}

.emw-widget.emw-attention .emw-widget__link {
    animation: empPulse 0.9s ease-in-out;
}

@keyframes empPulse {
    0%,
    100% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.04);
    }

    60% {
        transform: scale(0.99);
    }
}

@media (max-width: 500px) {
    .emw-widget {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
    }
}
