/* GISSaveFeedback — badge inline di stato salvataggio (spinner / spunta / errore) */

.gis-save-feedback {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 14px;
    line-height: 1;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 3;
}

.gis-save-feedback.is-fading {
    opacity: 0;
}

.gis-save-feedback--saving {
    color: #8a97a0;
}

.gis-save-feedback--saved {
    color: #2f972f;
}

.gis-save-feedback--error {
    color: #db4b4b;
}

/* --- modalità Flash: anima il colore di sfondo dell'ancora --- */
.gis-save-flash--saving {
    animation: gis-sf-pulse 1s ease-in-out infinite;
}

.gis-save-flash--saved {
    animation: gis-sf-flash-green 1.2s ease-out;
}

.gis-save-flash--error {
    animation: gis-sf-flash-red 1.6s ease-out;
}

@keyframes gis-sf-pulse {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(138, 151, 160, 0.18); }
}

@keyframes gis-sf-flash-green {
    0% { background-color: rgba(47, 151, 47, 0.35); }
    100% { background-color: transparent; }
}

@keyframes gis-sf-flash-red {
    0% { background-color: rgba(219, 75, 75, 0.35); }
    100% { background-color: transparent; }
}
