/*
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author    VEKIA PL MILOSZ MYSZCZUK VATEU: PL9730945634
* @copyright 2010-2025 VEKIA
* @license   This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER
* support@mypresta.eu
*/


#loylalty_cart_parent {
    margin-bottom: 40px;
}

/* Bloc panier : style discret "info panel", icône à gauche, texte aligné gauche */
#loyalty_cart {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    margin-top: 16px;
    background: #f7f7f9;
    border: 0;
    border-left: 3px solid #c0c0c0;
    border-radius: 2px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}
#loyalty_cart .loyalty-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #888;
}
#loyalty_cart .loyalty-cart-text {
    flex: 1;
    min-width: 0;
}
#loyalty_cart b {
    color: #222;
    font-weight: 600;
}

/* Bloc fiche produit : bouton compact + tooltip superposé */
#loyalty_product {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    float: inline-end;
    background: transparent;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    margin-top: 8px;
    color: inherit;
    font: inherit;
    cursor: pointer;
    line-height: 1;
}
#loyalty_product:hover,
#loyalty_product:focus-visible {
    background: white;
}
#loyalty_product .loyalty-icon {
    width: 18px;
    height: 18px;
}
#loyalty_product .loyalty-points-label {
    margin-left: -3px;
}
@media (max-width: 767.98px) {
    #loyalty_product {
        margin-top: 2px;
    }
}
#loyalty_product .loyalty-product-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    /* Ancrage à droite du bouton : le bouton est float: inline-end (bord droit),
     * la tooltip s'étend donc vers la gauche et reste dans le viewport. */
    right: 0;
    left: auto;
    width: 280px;
    max-width: calc(100vw - 24px);
    padding: 10px 12px;
    background: #fff;
    color: #333;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    z-index: 20;
}