#floating-coupon-widget {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    gap: 8px;
    align-items: center;
    pointer-events: auto;
}

#floating-coupon-widget button {
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    background: #20BA5A;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

#fcw-close {
    background: rgba(0, 0, 0, 0.6);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    font-size: 16px;
}

#floating-coupon-widget.minimized #fcw-open {
    width: 56px;
    height: 56px;
    padding: 0;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#floating-coupon-widget.minimized #fcw-open .fcw-icon,
#floating-coupon-widget #fcw-open .fcw-text {
    display: block;
}

#floating-coupon-widget.minimized #fcw-open .fcw-text,
#floating-coupon-widget #fcw-open .fcw-icon {
    display: none;
}

#floating-coupon-widget.minimized #fcw-close {
    display: none;
}

/* popover de texto */
#floating-coupon-widget.minimized #fcw-open:hover::before {
    content: attr(aria-label);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: calc(100% + 8px);
    background: #20BA5A;
    color: white;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    padding: 12px 16px;
    border-radius: 999px;
    animation: fcw-pulse 2s infinite;
}

#floating-coupon-widget:not(.minimized) #fcw-open {
    animation: fcw-pulse 2s infinite;
}

@keyframes fcw-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width:420px) {
    #floating-coupon-widget {
        right: 12px;
        bottom: 18px;
    }

    #floating-coupon-widget button {
        padding: 10px 12px;
        font-size: 13px;
    }

    #floating-coupon-widget.minimized #fcw-open {
        width: 52px;
        height: 52px;
    }
}




#floating-coupon-widget-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999999;
}
#floating-coupon-widget-modal #fcw-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    font-size: 36px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

#floating-coupon-widget-modal img{
    max-width: 90%;
    height: auto;
    max-height: 90%;
    cursor: pointer;
}