/* ==========================================================================
   RESET LOCALE E ISOLAMENTO (Previene le interferenze del Tema)
   ========================================================================== */

/* Racchiudiamo tutto in un wrapper per applicare regole rigide senza toccare il tema */
.wplt-isolated-wrapper,
.wplt-isolated-wrapper * {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
    box-shadow: none;
}

/* Base del contenitore globale */
.wplt-isolated-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    width: 100%;
    margin: 20px 0 !important;
    display: block !important;
}

/* ==========================================================================
   INTESTAZIONE (Countdown e Badge Live)
   ========================================================================== */
.wplt-live-match-minute {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #207747 !important;
    margin-right: 8px !important;
}
.wplt-ticker-header {
  display: flex; /* rimosso !important: permette a JS di nascondere via style inline */
  justify-content: space-between !important;
  align-items: center !important;
  background-color: #f8f9fa !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  color: #4a5568 !important;
  margin-bottom: 8px !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 500 !important;
}

.wplt-live-badge {
    background-color: #207747 !important;
    color: #ffffff !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
}

.wplt-countdown-text {
    font-size: 13px !important;
    color: #4a5568 !important;
}

.wplt-countdown-text strong {
    font-weight: 700 !important;
    color: #1a202c !important;
}

/* ==========================================================================
   BARRA DI CARICAMENTO (Loading Indicator)
   ========================================================================== */

.wplt-loading-bar-container {
    width: 100% !important;
    height: 3px !important;
    background: transparent !important;
    margin-bottom: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
}

.wplt-loading-bar-container.wplt-is-loading .wplt-loading-bar {
    width: 40% !important;
    height: 100% !important;
    background-color: #207747 !important;
    position: absolute !important;
    animation: wplt-slide 1.2s infinite linear !important;
}

@keyframes wplt-slide {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* ==========================================================================
   LISTA DEGLI EVENTI (Cronologia / Ticker)
   ========================================================================== */

.wplt-events-list,
.wplt-static-events-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.wplt-event-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 12px 8px !important;
    border-bottom: 1px solid #edf2f7 !important;
    width: 100% !important;
}

.wplt-event-item:last-child {
    border-bottom: none !important;
}

/* Colonna Minuto */
.wplt-time {
    min-width: 32px !important;
    color: #207747 !important;
    font-weight: 700 !important;
    /*font-size: 14px !important;*/
    flex-shrink: 0 !important;
    text-align: left !important;
    display: inline-block !important;
}

/* Contenitore Icona */
.wplt-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    overflow: hidden !important;
    line-height: 0 !important;
}

.wplt-icon img {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important; /* Previene forzature responsive del tema */
    display: block !important;
    margin: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: none !important; /* Uncomment to hide icons */
}

/* Colonna Descrizione dell'evento */
.wplt-description {
    /* font-size: 15px !important; */
    line-height: 1.2 !important;
    color: #2d3748 !important;
    text-align: left !important;
    flex-grow: 1 !important;
    font-weight: 400 !important;
}

/* ==========================================================================
   STATI PARTICOLARI E TITOLI
   ========================================================================== */

.wplt-static-seo-block h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 25px 0 12px 0 !important;
    color: #1a202c !important;
    display: block !important;
}

.wplt-no-events {
    padding: 20px !important;
    text-align: center !important;
    color: #718096 !important;
    font-size: 14px !important;
}

#wplt-ticker-container.wplt-is-finished-state {
    display: none !important;
}

@keyframes wplt-blink { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
