/* Shared weather temperature-unit toggle. */

.hg-temp-unit-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}

.hg-temp-unit-label{
  font-size:11px;
  font-weight:700;
  line-height:1;
  color:#777;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.hg-temp-unit-options{
  display:inline-flex;
  align-items:center;
  padding:2px;
  border:1px solid #dce3e8;
  border-radius:999px;
  background:#f7f9fb;
}

.hg-temp-unit-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:28px;
  padding:0;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#617080;
  cursor:pointer;
  font-family:inherit;
  line-height:1;
  -webkit-appearance:none;
  appearance:none;
}

.hg-temp-unit-btn i{
  font-size:17px;
  line-height:1;
}

.hg-temp-unit-btn:hover{
  color:#1866B4;
  background:#e8f0f7;
}

.hg-temp-unit-btn:focus{
  outline:2px solid #1866B4;
  outline-offset:2px;
}

.hg-temp-unit-btn.is-active{
  color:#fff;
  background:#1866B4;
  box-shadow:0 1px 3px rgba(0,0,0,.15);
}

.hg-temp-unit-toggle--modal{
  margin:2px auto;
}

.hg-temp-unit-toggle--forecast{
  justify-content:flex-end;
  margin:10px 0 0;
}

@media (max-width:520px){
  .hg-temp-unit-toggle--forecast{
    justify-content:flex-start;
  }
  .hg-temp-unit-label{
    font-size:10px;
  }
  .hg-temp-unit-btn{
    width:32px;
    height:26px;
  }
}

@media print{
  .hg-temp-unit-toggle{display:none !important}
}
