.etp-weather {
  overflow: hidden;
  border: 1px solid #d9e2ec;
  border-radius: 0.25rem;
  background: #fff;
  box-shadow: 0 0.25rem 1rem rgba(15, 51, 82, 0.08);
}

.etp-weather__header {
  padding: 0.7rem 0.9rem;
  background: var(--etp-blue-primary);
  color: #fff;
}

.etp-weather__header h2 {
  margin: 0;
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.etp-weather__current {
  padding: 1rem;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(135deg, var(--etp-blue-primary) 0%, #5da8e8 100%);
}

.etp-weather__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.etp-weather__location-control {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.4rem 0.75rem;
  gap: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.etp-weather__location-control select {
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: #fff;
  font: inherit;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}

.etp-weather__location-control option {
  color: #1d2f42;
  background: #fff;
}

.etp-weather__condition {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.8rem;
}

.etp-weather__condition-icon {
  display: inline-flex;
  width: 4.5rem;
  height: 4.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.etp-weather__condition-icon i {
  font-size: 2rem;
}

.etp-weather__condition strong {
  font-size: 2rem;
  font-weight: 700;
}

.etp-weather__description {
  margin: 0.7rem 0 1rem;
  font-weight: 600;
}

.etp-weather__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.etp-weather__metric {
  display: flex;
  min-height: 5.2rem;
  padding: 0.65rem 0.35rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.17);
}

.etp-weather__metric i {
  margin-bottom: 0.2rem;
}

.etp-weather__metric strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

.etp-weather__metric span {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.etp-weather__forecast {
  padding: 0.4rem 0.9rem;
}

.etp-weather__day {
  display: grid;
  grid-template-columns: minmax(4.8rem, 1fr) 2rem auto;
  min-height: 3.4rem;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid #e4ebf2;
  color: #44576a;
}

.etp-weather__day:last-child {
  border-bottom: 0;
}

.etp-weather__day i {
  color: #6b7b88;
  font-size: 1.35rem;
  text-align: center;
}

.etp-weather__day-temperatures {
  display: flex;
  min-width: 5rem;
  justify-content: flex-end;
  gap: 0.7rem;
}

.etp-weather__day-temperatures strong {
  color: #f06a24;
}

.etp-weather__day-temperatures span {
  color: #3aa6df;
}

.etp-weather__error {
  margin: 0;
  padding: 0.85rem;
  color: #a22525;
  text-align: center;
  background: #fff3f3;
}

.etp-weather.is-loading {
  opacity: 0.78;
}

@media (min-width: 36rem) and (max-width: 64rem) {
  .etp-weather__metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
