.bimb-weather-bar {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #073E6F;
  color: #ffffff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(7, 62, 111, 0.18);
}

.bimb-weather-bar *,
.bimb-weather-bar *::before,
.bimb-weather-bar *::after {
  box-sizing: border-box;
}

.bimb-weather-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 7px;
}

.bimb-weather-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  overflow: visible;
}

.bimb-weather-row--tomorrow {
  opacity: 0.98;
  position: relative;
  padding-top: 11px;
}

.bimb-weather-row--tomorrow::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(216, 174, 120, 0.58);
}

.bimb-weather-row--tomorrow::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 22%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(216, 174, 120, 0) 0%,
    rgba(216, 174, 120, 0.25) 20%,
    rgba(229, 194, 148, 0.95) 50%,
    rgba(216, 174, 120, 0.25) 80%,
    rgba(216, 174, 120, 0) 100%
  );
  animation: bimbWeatherDividerRun 5.8s linear infinite;
  pointer-events: none;
}

@keyframes bimbWeatherDividerRun {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(520%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bimb-weather-row--tomorrow::after {
    animation: none;
    transform: translateX(180%);
    opacity: 0.55;
  }
}

.bimb-weather-title {
  font-weight: 700;
  color: #F7EFE4;
  white-space: nowrap;
  margin-right: 4px;
  letter-spacing: 0.01em;
}

.bimb-weather-title--tomorrow {
  color: #D8AE78;
}

.bimb-weather-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.bimb-weather-row--tomorrow .bimb-weather-item {
  background: rgba(255, 255, 255, 0.075);
}

.bimb-weather-icon {
  line-height: 1;
  flex: 0 0 auto;
}

.bimb-weather-label {
  color: #F7EFE4;
  opacity: 0.92;
}

.bimb-weather-item strong {
  color: #ffffff;
  font-weight: 700;
}

.bimb-weather-link {
  color: #073E6F;
  background: #D8AE78;
  border-radius: 999px;
  padding: 5px 12px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.bimb-weather-link:hover,
.bimb-weather-link:focus {
  color: #073E6F;
  background: #E5C294;
  text-decoration: none;
}

.bimb-weather-source,
.bimb-weather-updated {
  opacity: 0.78;
  font-size: 12px;
  white-space: nowrap;
}

.bimb-weather-bar--fallback {
  background: #F7EFE4;
  color: #073E6F;
  box-shadow: none;
  border-top: 1px solid #EAD8C2;
  border-bottom: 1px solid #EAD8C2;
}

.bimb-weather-bar--fallback .bimb-weather-title {
  color: #073E6F;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .bimb-weather-inner {
    padding: 8px 18px;
    gap: 8px;
  }

  .bimb-weather-row {
    gap: 8px;
    justify-content: center;
  }

  .bimb-weather-title {
    flex: 0 0 100%;
    text-align: center;
    margin: 0 0 1px;
  }

  .bimb-weather-item {
    padding: 5px 9px;
    font-size: 13px;
  }

  .bimb-weather-row--tomorrow {
    padding-top: 12px;
  }

  .bimb-weather-row--tomorrow::after {
    width: 30%;
    animation-duration: 6.2s;
  }

  .bimb-weather-source,
  .bimb-weather-updated {
    flex: 0 0 100%;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .bimb-weather-inner {
    padding: 8px 10px;
    gap: 8px;
  }

  .bimb-weather-row {
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
    overflow: visible;
  }

  .bimb-weather-bar {
    font-size: 12px;
    line-height: 1.18;
  }

  .bimb-weather-title {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
    margin: 0 0 1px;
    font-size: 13px;
    white-space: normal;
  }

  .bimb-weather-item {
    flex: 1 1 calc(50% - 7px);
    max-width: calc(50% - 7px);
    min-width: 0;
    min-height: 32px;
    padding: 5px 6px;
    gap: 3px;
    white-space: normal;
    text-align: center;
    line-height: 1.16;
  }

  .bimb-weather-item strong,
  .bimb-weather-label {
    display: inline;
  }

  .bimb-weather-link {
    flex: 0 1 210px;
    text-align: center;
    margin: 1px auto 0;
    font-size: 12px;
    padding: 5px 10px;
  }

  .bimb-weather-source,
  .bimb-weather-updated {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
    font-size: 11px;
    white-space: normal;
  }

  .bimb-weather-row--tomorrow {
    padding-top: 12px;
  }

  .bimb-weather-row--tomorrow::after {
    width: 42%;
    animation-duration: 6.8s;
  }
}

@media (max-width: 359px) {
  .bimb-weather-item {
    flex-basis: 100%;
    max-width: 100%;
  }
}
