/* Friopar WhatsApp - Frontend Styles */

.friopar-wa-wrapper {
    margin: 14px 0;
    clear: both;
}

/* Botão base */
.friopar-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    border: none;
    line-height: 1.4;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.friopar-wa-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

.friopar-wa-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Ícone */
.friopar-wa-icon {
    flex-shrink: 0;
}

/* Botão 1 - Com preço */
.friopar-wa-btn--with-price {
    background-color: var(--friopar-wa-btn1-bg, #25D366);
    color: var(--friopar-wa-btn1-color, #fff) !important;
}

/* Botão 2 - Sem preço */
.friopar-wa-btn--no-price {
    background-color: var(--friopar-wa-btn2-bg, #128C7E);
    color: var(--friopar-wa-btn2-color, #fff) !important;
}

/* Botão na loja/arquivo */
.friopar-wa-btn--shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    background-color: var(--friopar-wa-btn1-bg, #25D366);
    color: var(--friopar-wa-btn1-color, #fff) !important;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-top: 6px;
}

.friopar-wa-btn--shop:hover {
    opacity: 0.9;
    text-decoration: none !important;
    color: var(--friopar-wa-btn1-color, #fff) !important;
}

/* Animação de pulso sutil para produtos sem preço (chama atenção do CTA) */
@keyframes friopar-wa-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(18, 140, 126, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(18, 140, 126, 0); }
}

.friopar-wa-btn--no-price {
    animation: friopar-wa-pulse 2.5s ease-in-out 3;
}

/* Compatibilidade com XStore theme */
.product-information .friopar-wa-wrapper {
    width: 100%;
}

.product-information .friopar-wa-btn {
    max-width: 100%;
}

/* Garante que o botão fique bonito ao lado do form de add-to-cart */
form.cart + .friopar-wa-wrapper {
    margin-top: 12px;
}

/* Botão flutuante */
.friopar-wa-floating {
    position: fixed;
    bottom: 24px;
    z-index: 99999;
}

.friopar-wa-floating--right {
    right: 24px;
}

.friopar-wa-floating--left {
    left: 24px;
}

.friopar-wa-btn--floating {
    border-radius: 50px;
    padding: 14px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    width: auto;
    max-width: none;
}

.friopar-wa-btn--floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    opacity: 1;
}

.friopar-wa-btn--floating:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

/* Responsivo */
@media (max-width: 768px) {
    .friopar-wa-btn {
        font-size: 14px;
        padding: 12px 20px;
    }

    .friopar-wa-btn--shop {
        font-size: 11px;
        padding: 6px 10px;
    }

    .friopar-wa-floating {
        bottom: 16px;
    }

    .friopar-wa-floating--right {
        right: 16px;
    }

    .friopar-wa-floating--left {
        left: 16px;
    }

    .friopar-wa-btn--floating {
        padding: 12px 20px;
        font-size: 14px;
    }
}
