/* Bulles « payable avec … » en overlay haut-droite de la carte produit :
   une pastille ronde par moyen de paiement (picto carte cadeau / cagnotte),
   infobulle au survol. Même habillage que le tooltip global .form-control-lock. */
.product-miniature__image-container {
    position: relative;
}

.product-payable {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.product-payable__flag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #000000;
    cursor: help;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Fond blanc à 80 % pour les deux bulles (carte cadeau et cagnotte). */
.product-payable__flag--carte,
.product-payable__flag--cagnotte {
    background: rgba(255, 255, 255, 0.8);
}

.product-payable__flag svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

/* Mobile : pastilles plus compactes (30 px), picto réduit d'autant. */
@media (max-width: 767.98px) {
    .product-payable {
        gap: 6px;
    }

    .product-payable__flag {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .product-payable__flag svg {
        width: 18px;
        height: 18px;
    }
}

.product-payable__tip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: max-content;
    max-width: 200px;
    padding: 0.5rem 0.75rem;
    background: #898d90;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    color: #ffffff;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 10;
}

/* Petite flèche vers la bulle */
.product-payable__tip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 10px;
    border: 5px solid transparent;
    border-bottom-color: #898d90;
}

.product-payable__flag.is-open .product-payable__tip {
    opacity: 1;
    visibility: visible;
}

/* Survol réservé aux pointeurs réels : sur tactile le hover « colle » après
   un tap et empêcherait le 2e tap de refermer l'infobulle. */
@media (hover: hover) {
    .product-payable__flag:hover .product-payable__tip {
        opacity: 1;
        visibility: visible;
    }
}
