/* Barra full width */
#jgfpb-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    font-family: inherit;
}

#jgfpb-bar.jgfpb-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Conteúdo respeitando largura do site */
.jgfpb-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.jgfpb-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.jgfpb-thumb-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.jgfpb-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
}

.jgfpb-title-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

/* Nome do produto */
.jgfpb-title {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    letter-spacing: 0.04em;
}

.jgfpb-price {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: right;
    line-height: 1.3;
    margin-right: 50px;
}

.jgfpb-price-wrapper {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

/* ===== PREÇO PRINCIPAL: 30px, negrito (sempre) ===== */
#jgfpb-bar .jgfpb-price,
#jgfpb-bar .jgfpb-price .price,
#jgfpb-bar .jgfpb-price .price ins,
#jgfpb-bar .jgfpb-price .jgfpb-price-sale ins {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #222222 !important;
    text-decoration: none !important;
}

#jgfpb-bar .jgfpb-price-sale ins .woocommerce-Price-amount,
#jgfpb-bar .jgfpb-price-sale ins .woocommerce-Price-currencySymbol {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #222222 !important;
}

/* ===== PREÇO ANTIGO (risco): 20px, clarinho ===== */
#jgfpb-bar .jgfpb-price-regular del {
    position: relative;
    display: inline-block;
    font-size: 20px !important;
    color: #cccccc !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

#jgfpb-bar .jgfpb-price-regular del .woocommerce-Price-amount,
#jgfpb-bar .jgfpb-price-regular del .woocommerce-Price-currencySymbol {
    font-size: 20px !important;
    color: #cccccc !important;
    font-weight: 400 !important;
}

#jgfpb-bar .jgfpb-price-regular del::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: #cccccc;
    transform: translateY(-50%);
    pointer-events: none;
}

.jgfpb-right {
    flex: 0 0 auto;
    margin-left: 10px;
}

.jgfpb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background-color: var(--jgfpb-cta-bg, #00b894);
    color: var(--jgfpb-cta-text, #ffffff);
    transition: background-color 0.2s ease-out, transform 0.1s ease-out, box-shadow 0.2s ease-out;
}

.jgfpb-btn-style-filled {
    border: none;
}

.jgfpb-btn-style-filled:hover {
    filter: brightness(0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.jgfpb-btn-style-outline {
    background-color: transparent;
    color: var(--jgfpb-cta-bg, #00b894);
    border: 2px solid var(--jgfpb-cta-bg, #00b894);
}

.jgfpb-btn-style-outline:hover {
    background-color: var(--jgfpb-cta-bg, #00b894);
    color: var(--jgfpb-cta-text, #ffffff);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.jgfpb-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Mobile: aqui NÃO mexemos no font-size do preço principal,
   só podemos reduzir levemente o preço antigo se quiser. */
@media (max-width: 767px) {
    .jgfpb-bar-inner {
        max-width: 100%;
        padding: 8px 10px;
        gap: 10px;
    }

    .jgfpb-thumb-img {
        width: 50px;
        height: 50px;
    }

    .jgfpb-title {
        font-size: 12px;
    }

    .jgfpb-price {
        margin-right: 20px;
    }

    #jgfpb-bar .jgfpb-price-regular del,
    #jgfpb-bar .jgfpb-price-regular del .woocommerce-Price-amount,
    #jgfpb-bar .jgfpb-price-regular del .woocommerce-Price-currencySymbol {
        font-size: 16px !important;
    }

    .jgfpb-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}



/* ==== Ajustes para plugin de parcelamento (WSP Parcelamento) ==== */
#jgfpb-bar .jgfpb-price .wsp_parcelamento_valor {
    font-size: 12px;
    font-weight: lighter;
}

#jgfpb-bar .jgfpb-price .wsp_parcelamento_valor img,
#jgfpb-bar .jgfpb-price .wsp_parcelamento_valor svg,
#jgfpb-bar .jgfpb-price .wsp_parcelamento_valor i {
    width: 12px !important;
    height: 12px !important;
    font-size: 12px !important;
}


/* ==== MOBILE: mostrar somente o CTA na barra flutuante ==== */
@media (max-width: 767px) {
    #jgfpb-bar .jgfpb-left,
    #jgfpb-bar .jgfpb-price {
        display: none !important;
    }

    #jgfpb-bar .jgfpb-bar-inner {
        justify-content: center;
    }

    #jgfpb-bar .jgfpb-right {
        margin-left: 0;
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
    }

    #jgfpb-bar .jgfpb-btn {
        width: 100%;
        max-width: 320px;
    }
}
