#top {
  height: auto;
  min-height: 44px;
  color: #22262a;
}

#top #t {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

#top #languages {
  order: 1;
  flex: 0 0 auto;
  margin: 0 0 0 auto;
}

#top #top-contact { min-width: 0; }

#top #infolinia.top-cont {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
  color: #22262a;
  font: 500 14px/1.35 Ubuntu, Arial, sans-serif;
  text-align: start;
  text-shadow: none;
}

#top .kc-top-phone-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 14px;
}

#top #top-contact .kc-top-phone-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #22262a;
  font: 700 16px/1.2 Signika, Ubuntu, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#top #top-contact .kc-top-phone-links a:hover { text-decoration: underline; }

#header { height: auto; }
#header > .wrapper { background: #fff; }

#header #h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  height: auto;
  margin: 0;
  padding-block: 10px;
}

#h #logo {
  flex: 0 0 100%;
  overflow: visible;
  height: auto;
  margin: 0;
}

#h #logo a { width: fit-content; max-width: 100%; margin-inline: auto; }
#h #logo img { max-width: 100%; vertical-align: middle; }

#h .kc-header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

#h .kc-header-actions #tCart {
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 4px;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  background: none;
  line-height: normal;
}

#h #tCart :is(a.quantity, a.value) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: #54595d;
  font: 500 13px/1.3 Ubuntu, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
  white-space: nowrap;
}

#h #tCart :is(a.quantity, a.value):hover { color: #22262a; text-decoration: underline; }

#h #topLinks {
  height: auto;
  margin: 0;
}

#h #topLinks .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

#h #topLinks .links li {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  background: none;
}

#h #topLinks .links a,
#h #tCart .cartBtn,
#h #favorites-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  float: none;
  width: auto;
  min-height: 44px;
  height: auto;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: var(--kc-radius, 4px);
  color: #22262a;
  font: 700 15px/1.2 Signika, Ubuntu, Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

#h #topLinks .links a { border-color: #bdbfc1; background: #fff; }
#h #topLinks .links a:hover { border-color: #9c9fa1; background: #f3f3f3; color: #22262a; }
#h #tCart .cartBtn { margin: 0 0 0 7px; border-color: #e4c00a; background: #f4cf0d; }
#h #tCart .cartBtn:hover { background: #ffdd28; opacity: 1; }

#h #favorites-link {
  flex: 0 0 auto;
  gap: 6px;
  min-width: 44px;
  padding-inline: 8px;
}

#h #favorites-link:hover, #h #favorites-link[aria-current="page"] { background: #fff4bb; }

#h #favorites-link .heart-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

#h #favorites-link .favorites-count {
  box-sizing: border-box;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 12px;
  background: #f4cf0d;
  color: #22262a;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

#h #search { height: 44px; margin: 2px 0 0; }

#h #search .searchinput {
  height: 44px;
  padding-right: 50px;
  color: #22262a;
  font: 400 16px/1.3 Ubuntu, Arial, sans-serif;
}

#h #search .search_button {
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: var(--kc-radius, 4px);
  background: url(../img/ico/loop.png) center / 16px no-repeat;
  cursor: pointer;
}

#kc-main-navigation #search-m .searchinput {
  color: #22262a;
  font: 400 14px/1.3 Ubuntu, Arial, sans-serif;
}

#h #search .searchinput::placeholder,
#kc-main-navigation #search-m .searchinput::placeholder {
  color: #565a5e;
  font-style: normal;
  opacity: 1;
}

#top #top-contact .kc-top-phone-links a:focus-visible,
#h :is(#logo a, #topLinks .links a, #tCart a, #favorites-link, #search input):focus-visible,
#kc-main-navigation #search-m input:focus-visible {
  outline: 2px solid #725400;
  outline-offset: -2px;
}

@media (min-width: 600px) {
  #header #h { justify-content: space-between; }
}

@media (min-width: 768px) {
  #header #h { padding-block: 0 8px; }
  #h #logo { flex: 1 1 0; min-width: 0; width: auto; }
  #h #logo a { margin-inline: 0; }
}

@media (min-width: 1024px) {
  #header #h { min-height: 93px; padding-block: 0; }
}

@media (max-width: 1023px) {
  #h #favorites-link .favorites-label { display: none; }
  #h #favorites-link .favorites-count { position: absolute; top: 1px; right: 0; font-size: 11px; }
}

@media (max-width: 599px) {
  #top > .wrapper { box-sizing: border-box; width: 100%; min-width: 0; padding-inline: 12px; }
  #h #topLinks, #h .kc-header-actions { flex-basis: 100%; }
}

@media (max-width: 420px) {
  #top .kc-top-phone-label { flex-basis: 100%; padding-top: 6px; }
}
