/**
 * Stili frontend per i pulsanti del plugin Herbalife One Redirect
 */
 .herbalife-one-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.herbalife-one-button:hover {
    background-color: #005177;
    color: #ffffff;
}

.herbalife-one-button.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.herbalife-redirect-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #0073aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
}

.herbalife-redirect-button:hover {
    background-color: #005177;
    color: #ffffff;
}

/* Eliminazione degli spazi indesiderati nei widget Elementor */
.elementor-widget.herbalife-one-button-wrapper,
.elementor-widget .herbalife-one-button-wrapper {
    margin: 0;
    line-height: 0;
}

.elementor-widget.herbalife-redirect-button-wrapper,
.elementor-widget .herbalife-redirect-button-wrapper {
    margin: 0;
    line-height: 0;
}

/* Correzione per la visualizzazione in Elementor */
.elementor-widget-herbalife_one_button .elementor-widget-container,
.elementor-widget-herbalife_redirect_button .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal;
}

/* Mantenere stili specifici per l'uso fuori da Elementor */
.woocommerce-product-details .herbalife-one-button-wrapper {
    margin: 1.5em 0;
}

.entry-content .herbalife-redirect-button-wrapper:not(.elementor-widget) {
    margin: 2em 0;
}