/* ============================================================
   GondolaMail - stella "importante" sempre visibile
   ------------------------------------------------------------
   Nel bundle il default e':
     .gm-row-star { opacity: 0 }
     .gm-msg-row.selected .gm-row-star, .gm-msg-row:hover .gm-row-star { opacity: 1 }
   quindi un messaggio marcato importante perde la stella quando
   il mouse non e' sopra la riga. Qui la stella resta sempre
   visibile (e dorata) su ogni riga "flagged".
   Flagged = svg interno con fill="#f9ab00" (impostato dal runtime).
   ============================================================ */

.gm-msg-row:has(.gm-row-star svg[fill="#f9ab00"]) .gm-row-star,
.gm-msg-row:has(.gm-row-star svg[fill="#f9ab00"]):hover .gm-row-star {
  opacity: 1 !important;
}

/* stessa cosa per le righe di thread raggruppate */
.gm-msg-row.gm-thread-row:has(.gm-row-star svg[fill="#f9ab00"]) .gm-row-star {
  opacity: 1 !important;
}

/* leggero rinforzo visivo della stella attiva (non dipende dall'hover) */
.gm-msg-row:has(.gm-row-star svg[fill="#f9ab00"]) .gm-row-star svg {
  filter: drop-shadow(0 1px 2px rgba(249, 171, 0, 0.45));
}

/* fallback per browser senza :has() - classe aggiunta via JS, se presente */
.gm-msg-row.gm-flagged .gm-row-star {
  opacity: 1 !important;
}
