/**
 * Copyright since 2026 Imaginis
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 *
 * @author    Imaginis
 * @copyright 2026 Imaginis
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
 *
 * Styles de base du module. Les couleurs de chaque règle sont injectées en ligne
 * (<style id="dibcategorystyle-css">) par le hook displayHeader.
 */

/* ------------------------------------------------------------------
 * Mode "flag" : étiquettes déplacées dans un coin de l'image par front.js.
 * Le conteneur reprend les classes du <ul> de flags du thème (ex. Akira : .label-flags),
 * il hérite donc de sa mise en forme ; seule la position est forcée ici.
 * ------------------------------------------------------------------ */
.dibcategorystyle-flags {
    position: absolute !important;
    z-index: 3;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}

.dibcategorystyle-flags-tl {
    top: 15px !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    align-items: flex-start !important;
}

.dibcategorystyle-flags-tr {
    top: 15px !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    align-items: flex-end !important;
}

.dibcategorystyle-flags-bl {
    bottom: 15px !important;
    left: 0 !important;
    top: auto !important;
    right: auto !important;
    align-items: flex-start !important;
}

.dibcategorystyle-flags-br {
    bottom: 15px !important;
    right: 0 !important;
    top: auto !important;
    left: auto !important;
    align-items: flex-end !important;
}

/* ------------------------------------------------------------------
 * Mention de l'étiquette au-dessus du prix (fiche produit).
 * La couleur vient du CSS en ligne (.dibcategorystyle-mention-N).
 * ------------------------------------------------------------------ */
.dibcategorystyle-price-mention {
    display: block;
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------
 * Mode "overlay" : étiquette rendue près du prix, masquée jusqu'à son placement.
 * ------------------------------------------------------------------ */
.dibcategorystyle-overlay-src {
    display: none !important;
}

.dibcategorystyle-host {
    position: relative;
}

.dibcategorystyle-overlay {
    position: absolute;
    z-index: 3;
    display: inline-block;
    max-width: 80%;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    pointer-events: none;
}

.dibcategorystyle-overlay.dibcategorystyle-pos-theme,
.dibcategorystyle-overlay.dibcategorystyle-pos-tl {
    top: 10px;
    left: 10px;
}

.dibcategorystyle-overlay.dibcategorystyle-pos-tr {
    top: 10px;
    right: 10px;
}

.dibcategorystyle-overlay.dibcategorystyle-pos-bl {
    bottom: 10px;
    left: 10px;
}

.dibcategorystyle-overlay.dibcategorystyle-pos-br {
    bottom: 10px;
    right: 10px;
}
