.airparif-widget {
  background: #f5f8fb;
  border: 1px solid #d2dbe7;
  border-radius: 8px;
  padding: 10px;
  color: #1f2f46;
  font-family: Arial, Helvetica, sans-serif;
}

.airparif-widget + .airparif-widget {
  margin-top: 10px;
}

.airparif-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

.airparif-status {
  font-size: 11px;
  color: #3c6e98;
}

.airparif-updated {
  margin-top: 8px;
  font-size: 11px;
  color: #5f738d;
}

.airparif-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.airparif-widget[data-mode="full"] .airparif-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.airparif-card {
  background: #ffffff;
  border: 1px solid #d9e3ef;
  border-radius: 6px;
  padding: 6px;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.airparif-card-title {
  font-size: 11px;
  color: inherit;
  margin-bottom: 3px;
  opacity: 0.9;
}

.airparif-card-value {
  font-size: 16px;
  font-weight: 700;
  color: inherit;
  margin-bottom: 2px;
}

.airparif-card-unit {
  font-size: 11px;
  color: inherit;
  opacity: 0.85;
}

.airparif-spark {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 4px;
}

.airparif-empty {
  font-size: 12px;
  color: #8a4b4b;
  background: #fff1f1;
  border: 1px solid #e7c9c9;
  border-radius: 6px;
  padding: 8px;
}

#photosCol .airparif-widget,
#footer_flash_content .airparif-widget,
#photosHome .airparif-widget {
  padding: 6px;
}

#photosCol .airparif-widget .airparif-cards,
#footer_flash_content .airparif-widget .airparif-cards,
#photosHome .airparif-widget .airparif-cards {
  grid-template-columns: 1fr;
  gap: 5px;
}

#photosCol .airparif-card-value,
#footer_flash_content .airparif-card-value,
#photosHome .airparif-card-value {
  font-size: 13px;
}
