/* ============================================================
   BOX AVVISO - Pulsante di chiusura con countdown (Fase A)
   File isolato, non modifica box_avviso.css esistente
   ============================================================ */

#box_avviso_advanced_close {
    position: absolute;
    top: clamp(10px, 2vw, 15px);
    right: clamp(10px, 2vw, 15px);
    width: 40px;
    height: 40px;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 50%;
    font-size: 30px;
    font-family: Arial, sans-serif;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    border: 1px solid #cbd5e1;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
                transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    line-height: 1;
    z-index: 10;
}
#box_avviso_advanced_close:hover {
    background-color: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: scale(1.08) rotate(90deg);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}
#box_avviso_advanced_close.is-countdown:hover {
    background-color: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.bavv-close-face {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.35s ease;
}
.bavv-close-face.is-hidden {
    opacity: 0;
    pointer-events: none;
}

#bavv-countdown-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform: rotate(-90deg);
}
#bavv-countdown-svg circle { fill: none; }
#bavv-countdown-svg .bavv-countdown-bg {
    stroke: #e2e8f0;
    stroke-width: 3;
}
#bavv-countdown-svg .bavv-countdown-progress {
    stroke: #ef4444;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}
#bavv-countdown-number {
    position: relative;
    z-index: 1;
    font-size: 15px;
    font-weight: 700;
    color: #ef4444;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;
    margin-top: -2px;
}
