/**
 * aw_customproductfield - styles FO
 * @author Alexandre MERY - ACMP-WEB
 *
 * Styles par défaut. Pour une personnalisation poussée, surcharger les
 * templates zone_*.tpl dans le thème.
 */

.aw-cpf-zone {
    margin: 16px 0;
}

/* Masquer les nodes vides (au chargement initial ET après rafraîchissement JS) */
.aw-cpf-empty {
    display: none !important;
}

.aw-cpf-shared-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 12px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.aw-cpf-shared-list dt {
    font-weight: 600;
    color: #444;
    margin: 0;
}

.aw-cpf-shared-list dd {
    margin: 0;
    color: #222;
}

.aw-cpf-isolated {
    margin: 12px 0;
    padding: 12px 14px;
    background: #f8f8f8;
    border-radius: 6px;
    border-left: 3px solid #f5b400;
}

.aw-cpf-isolated-label {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #333;
}

.aw-cpf-isolated-value {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    white-space: pre-line;
}

/* Zone-specific tweaks (optionnel, à surcharger dans le thème) */
.aw-cpf-zone-blocTopRight {
    /* colonne droite, compact */
}

.aw-cpf-zone-blocTopCenter .aw-cpf-isolated {
    /* zone centrale, plus visible */
    background: #fff8e1;
    border-left-color: #ff9800;
}

.aw-cpf-zone-blocTabCol .aw-cpf-isolated {
    /* zone onglet, espacement plus généreux */
    margin: 16px 0;
    padding: 14px 18px;
}

/* ============================================================
 * Puces en miniature produit (hook displayAwCpfMiniature)
 * ============================================================ */

.aw-cpf-mini {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.aw-cpf-mini-item {
    position: relative;
    padding-left: 14px;
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.35;
    color: #555;
}

.aw-cpf-mini-item::before {
    content: "";
    position: absolute;
    top: .5em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
}

.aw-cpf-mini-item:last-child {
    margin-bottom: 0;
}
