/**
 * Free Shipping Widget - Styles
 * 
 * Mantiene lo stile originale del widget
 * 
 * @version 1.0.0
 */

/* ============================================
   Widget Container
   ============================================ */
.etinet-free-shipping-widget {
  margin-top: 9px;
  width: 100% !important;
  box-sizing: border-box;
}

/* ============================================
   Progress Bar (stile originale)
   ============================================ */
.free-shipping-bar {
  width: 100%;
  background: rgba(181, 181, 181, 0.2);
  border-radius: 10px;
  overflow: hidden;
  height: 4px;
  margin-top: 2px;
  margin-bottom: 10px;
  position: relative;
}

.free-shipping-fill {
  background: #d4af37;
  background: linear-gradient(90deg, #d4af37, #f4d03f);
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
  position: relative;
}

/* Shimmer effect opzionale */
.free-shipping-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}

/* ============================================
   Stato Qualificato
   ============================================ */
.etinet-free-shipping-widget.qualified .free-shipping-fill {
  background: linear-gradient(90deg, #28a745, #5cb85c);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 576px) {
  .etinet-free-shipping-widget h3 {
    font-size: 22px;
  }

  .etinet-free-shipping-widget .text-s {
    font-size: 16px;
  }

  .free-shipping-bar {
    height: 18px;
  }
}

/* ============================================
   Animazioni
   ============================================ */
.etinet-free-shipping-widget.updating {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.etinet-free-shipping-widget.qualified-animation {
  animation: pulse 1s ease-in-out;
}
