/**
 * @author    PrestaChamps <support@prestachamps.com>
 * @copyright PrestaChamps
 * @license   Proprietary
 */

/* opacity step Bootstrap doesn't ship (it has 0/25/50/75/100). */
.opacity-10 {
    opacity: .1 !important;
}

/* Miniature wishlist button: faint by default (opacity-10 via $pchw_miniature_action_class), shown in
   full when the miniature is hovered/focused. Hover-visibility isn't expressible with a utility. */
.pchw-miniature-action {
    transition: opacity .15s ease-in-out;
}

.product-miniature:hover .pchw-miniature-action,
.product-miniature:focus-within .pchw-miniature-action {
    opacity: 1 !important;
}

/* Wishlist toggle: outline (untagged) / filled (tagged). Both icons ship in the markup;
   only the .pchw-tagged class flips which one shows — no JS icon swapping. */
.js-pchw-toggle .pchw-icon--filled,
.js-pchw-toggle .pchw-icon--remove {
    display: none;
}

.js-pchw-toggle.pchw-tagged .pchw-icon--outline {
    display: none;
}

.js-pchw-toggle.pchw-tagged .pchw-icon--filled {
    display: inline-block;
    color: var(--bs-danger);
}

/* Miniature only: hovering a tagged heart swaps it for a remove icon (no Bootstrap
   utility covers hover-visibility, so this small rule is unavoidable). */
.pchw-miniature-btn.pchw-tagged:hover .pchw-icon--filled {
    display: none;
}

.pchw-miniature-btn.pchw-tagged:hover .pchw-icon--remove {
    display: inline-block;
}

/* Wishlist view: selection mode swaps each miniature's remove button for a checkbox
   (page-state driven, so it can't be expressed with Bootstrap utilities alone). */
.pchw-view-page:not(.pchw-selecting) .pchw-select {
    display: none;
}

.pchw-view-page.pchw-selecting .pchw-miniature-btn {
    display: none;
}
