.weather-info {
  width: 100%;
  
  /* CSS Custom Properties for styling - can be overridden inline */
  --fmi-label-color: inherit;
  --fmi-icon-color: inherit;
  --fmi-value-color: inherit;
  --fmi-label-font-size: inherit;
  --fmi-label-font-weight: inherit;
  --fmi-value-font-size: inherit;
  --fmi-value-font-weight: inherit;
}

/* Grid Preset - Original layout with labels, icons, and values in columns */
.weather-info.fmi-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 140px);
  gap: 20px;
  justify-content: start;
}

.weather-info.fmi-preset-grid .weather-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
}

/* Simple Preset - Only icons and values in a flex row with wrap */
.weather-info.fmi-preset-simple {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 10px;
  align-items: center;
}

.weather-info.fmi-preset-simple .weather-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.fmi-weather-title {
  margin: 0 0 20px 0;
}

.weather-label {
  font-size: var(--fmi-label-font-size, 12px);
  font-weight: var(--fmi-label-font-weight, 600);
  text-transform: uppercase;
  opacity: 0.8;
  color: var(--fmi-label-color, inherit);
}

.weather-icon {
  font-size: 24px;
  color: var(--fmi-icon-color, inherit);
}

.weather-icon i {
  color: inherit;
}

.weather-value {
  font-size: var(--fmi-value-font-size, 16px);
  font-weight: var(--fmi-value-font-weight, 500);
  color: var(--fmi-value-color, inherit);
}

.wind-direction-icon {
  transition: transform 0.3s ease;
}

/* AJAX Loading and Error States */
.fmi-weather-container {
  display: block;
  transition: opacity 0.3s ease-in-out;
}

/* Grid layout specific sizing */
.fmi-weather-container:has(.fmi-preset-grid) {
  min-height: 100px;
  width: 100%;
}

.fmi-weather-container.fmi-weather-loading-state {
  opacity: 0.6;
}

.fmi-weather-container.fmi-weather-loaded {
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fmi-weather-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  font-size: 16px;
  color: #666;
  width: 100%;
}

.fmi-weather-loading i {
  font-size: 20px;
}

.fmi-weather-error {
  padding: 15px;
  background: #fff3cd;
  border-left: 3px solid #ffc107;
  color: #856404;
  border-radius: 4px;
}
