.weather-intro, .weather-search, .weather-search-primary { min-width: 0; max-width: 100%; }
.weather-recents[hidden] { display: none; }
.weather-recents { min-width: 0; max-width: 100%; margin-top: 12px; }
.weather-recents-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #50636e; font-size: .8125rem; font-weight: 700; }
.weather-recents-heading > span { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border: 1px solid rgba(151, 45, 59, .24); border-radius: 999px; background: linear-gradient(145deg, #fff8f5 0%, #f8dfe0 100%); box-shadow: inset 0 1px rgba(255, 255, 255, .78), 0 2px 5px rgba(128, 35, 49, .10); color: #862c3a; font-size: .8125rem; font-weight: 800; letter-spacing: .01em; line-height: 1; }
.weather-recents-heading button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; margin: -8px -8px -8px 0; border: 0; border-radius: 10px; color: #50636e; background: transparent; font-size: 1.3rem; cursor: pointer; }
.weather-recents-list { display: flex; gap: 6px; max-width: 100%; min-width: 0; padding: 5px 2px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #b7cbd2 transparent; }
.weather-recents .weather-recent-place { display: inline-flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; max-width: min(160px, 45vw); min-height: 44px; padding: 8px 11px; border: 1px solid #cfdfe5; border-radius: 999px; background: #f1f7f9; color: #234958; font: inherit; font-size: .875rem; cursor: pointer; }
.weather-recent-icon { flex: none; font-size: 1rem; }
.weather-recent-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weather-recents .weather-recent-place:hover, .weather-recents .weather-recent-place[aria-pressed="true"] { border-color: #4e8499; background: #dfedf2; transform: none; }
.weather-recents button:focus-visible { outline: 2px solid #216c89; outline-offset: 2px; }
@media (min-width: 641px) {
  .weather-recents {
    margin-top: 10px;
    padding: 8px 10px 9px;
    border: 1px solid #afd9b9;
    border-radius: 15px;
    background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .82), transparent 38%), linear-gradient(135deg, #edf8ef 0%, #e1f3e5 100%);
    box-shadow: inset 0 1px rgba(255, 255, 255, .88), 0 7px 16px rgba(35, 112, 59, .08);
  }
  .weather-recents-list { padding: 14px 2px 5px; }
  .weather-recents .weather-recent-place { border-color: #c2ddc9; background: rgba(255, 255, 255, .76); }
  .weather-recents .weather-recent-place:hover, .weather-recents .weather-recent-place[aria-pressed="true"] { border-color: #76b98a; background: #f8fdf9; }
}
@media (max-width: 640px) {
  .weather-recents { margin-top: 8px; }
  .weather-recents-list { padding: 7px 2px; }
  .weather-recents .weather-recent-place:nth-child(n + 4) { display: none; }
  .weather-search > .location-button { margin-top: 0; }
  .weather-search:has(.weather-recents[hidden]) > .location-button { margin-top: 8px; }
  .weather-recents .weather-recent-place { flex-shrink: 0; max-width: min(160px, 48vw); }
}
