.tz-weather {
  --tz-border: rgba(24, 47, 72, .14);
  --tz-soft: #f4f8fb;
  --tz-text: #172433;
  --tz-muted: #66778a;
  --tz-accent: #0876c9;
  position: relative;
  border: 1px solid var(--tz-border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  color: var(--tz-text);
  box-shadow: 0 8px 24px rgba(22, 42, 61, .08);
  font-family: inherit;
}

.tz-weather__header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tz-weather__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.tz-weather__updated {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  color: var(--tz-muted);
  font-size: .72rem;
  line-height: 1.25;
  text-align: right;
}

.tz-weather__updated-label,
.tz-weather__updated-date,
.tz-weather__updated-time {
  display: block;
  white-space: nowrap;
}

.tz-weather__updated-date {
  color: var(--tz-text);
  font-weight: 700;
}

.tz-weather__select,
.tz-weather__search {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--tz-border);
  border-radius: 9px;
  padding: 8px 11px;
  background: #fff;
  color: var(--tz-text);
  font: inherit;
}

.tz-weather__select { margin-bottom: 9px; }
.tz-weather__search-wrap { position: relative; margin-bottom: 12px; }

.tz-weather__select:focus,
.tz-weather__search:focus {
  outline: 2px solid rgba(8, 118, 201, .22);
  border-color: var(--tz-accent);
}

.tz-weather__suggestions {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--tz-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 42, 61, .15);
}

.tz-weather__suggestion {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--tz-border);
  padding: 10px 12px;
  background: #fff;
  color: var(--tz-text);
  text-align: left;
  cursor: pointer;
}

.tz-weather__suggestion:last-child { border-bottom: 0; }
.tz-weather__suggestion:hover,
.tz-weather__suggestion:focus { background: var(--tz-soft); }
.tz-weather__suggestion span { color: var(--tz-muted); font-size: .82rem; }

.tz-weather__no-results,
.tz-weather__status {
  padding: 12px;
  color: var(--tz-muted);
  text-align: center;
}

.tz-weather__location {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.tz-weather__location strong { font-size: 1.15rem; }
.tz-weather__location span { color: var(--tz-muted); font-size: .8rem; }

.tz-weather__main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
}

.tz-weather__main img { width: 64px; height: 64px; }
.tz-weather__temp { font-size: 2rem; font-weight: 800; line-height: 1; }
.tz-weather__condition { margin-top: 4px; color: var(--tz-muted); }

.tz-weather__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
  padding: 11px;
  border-radius: 10px;
  background: var(--tz-soft);
  font-size: .83rem;
}

.tz-weather__forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.tz-weather__day {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--tz-border);
  border-radius: 10px;
  padding: 9px 5px;
  text-align: center;
}

.tz-weather__day img { width: 42px; height: 42px; }
.tz-weather__day span { font-weight: 700; white-space: nowrap; }
.tz-weather__day small { color: var(--tz-muted); font-size: .68rem; line-height: 1.25; }

.tz-weather__alerts { margin-bottom: 10px; }
.tz-weather__alert {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 4px solid #d83a36;
  padding: 8px 10px;
  background: #fff4f3;
  font-size: .82rem;
}

.tz-weather__source {
  margin-top: 10px;
  color: var(--tz-muted);
  font-size: .7rem;
  text-align: right;
}

.tz-weather__source a { color: inherit; text-decoration: underline; }

@media (max-width: 380px) {
  .tz-weather__facts { grid-template-columns: 1fr; }
  .tz-weather__forecast { gap: 5px; }
  .tz-weather__day { padding-inline: 3px; }
}

/* 1.0.2: pevné mobilní rozložení proti přepisům šablony a iOS zvětšování textu */
.tz-weather,
.tz-weather * {
  box-sizing: border-box;
}

.tz-weather {
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.tz-weather__select,
.tz-weather__search {
  max-width: 100%;
}

@media (max-width: 767px) {
  body .tz-weather {
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    overflow: visible !important;
  }

  body .tz-weather__header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  body .tz-weather__title {
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1.18 !important;
  }

  body .tz-weather__updated {
    font-size: 12px !important;
    line-height: 1.22 !important;
  }

  body .tz-weather__select-label,
  body .tz-weather__search-wrap {
    display: block !important;
    width: 100% !important;
  }

  body .tz-weather__select,
  body .tz-weather__search {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    border: 1px solid var(--tz-border) !important;
    border-radius: 9px !important;
    background-color: #fff !important;
    color: var(--tz-text) !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    overflow: visible !important;
  }

  body .tz-weather__select {
    margin-bottom: 9px !important;
    padding: 0 42px 0 14px !important;
    -webkit-appearance: menulist !important;
    appearance: auto !important;
  }

  body .tz-weather__search {
    padding: 0 14px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  body .tz-weather__search-wrap {
    margin-bottom: 12px !important;
  }

  body .tz-weather__location {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: baseline !important;
    gap: 8px !important;
    width: 100% !important;
  }

  body .tz-weather__location strong {
    min-width: 0 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  body .tz-weather__location span {
    font-size: 13px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  body .tz-weather__main {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 8px 0 12px !important;
  }

  body .tz-weather__main img {
    display: block !important;
    width: 64px !important;
    min-width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
  }

  body .tz-weather__temp {
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body .tz-weather__condition {
    margin-top: 5px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  body .tz-weather__facts {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 12px !important;
    width: 100% !important;
    padding: 11px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  body .tz-weather__facts span,
  body .tz-weather__facts b {
    display: inline !important;
    min-width: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
  }

  body .tz-weather__forecast {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 13px !important;
  }

  body .tz-weather__day {
    display: flex !important;
    min-width: 0 !important;
    width: auto !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1px !important;
    padding: 8px 3px !important;
    text-align: center !important;
  }

  body .tz-weather__day strong {
    display: block !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  body .tz-weather__day img {
    display: block !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    margin: 0 auto !important;
  }

  body .tz-weather__day span {
    display: block !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  body .tz-weather__day small {
    display: block !important;
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
  }

  body .tz-weather__alerts,
  body .tz-weather__alert {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  body .tz-weather__source {
    margin-top: 10px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    text-align: right !important;
  }
}

@media (max-width: 360px) {
  body .tz-weather {
    padding: 13px !important;
  }

  body .tz-weather__title {
    font-size: 20px !important;
  }

  body .tz-weather__facts {
    gap: 7px 8px !important;
    font-size: 12px !important;
  }

  body .tz-weather__forecast {
    gap: 4px !important;
  }

  body .tz-weather__day strong,
  body .tz-weather__day span {
    font-size: 12px !important;
  }

  body .tz-weather__day small {
    font-size: 10px !important;
  }
}
