.new-header__info-nav {
  white-space: nowrap;
}

.new-header__top {
  position: relative;
  z-index: 2;
  height: 47px;
  margin-top: 0;
  padding-top: 4px;
  opacity: 1;
  transform: translateY(0);
  transition:
    height 500ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 500ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 400ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height, opacity, transform;
}

.new-header__desktop-shell {
  transition: height 500ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height;
}

.new-header .new-header__main {
  position: relative;
  z-index: 1;
  height: 60px;
  margin-top: 4px;
  padding: 0 !important;
  transition: margin-top 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.new-header__categories {
  z-index: 0;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.new-header.is-compact .new-header__main {
  margin-top: 0;
}

.new-header.is-compact .new-header__top {
  display: block;
  height: 0;
  overflow: hidden;
  padding-top: 0;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .new-header__desktop-shell,
  .new-header__top,
  .new-header .new-header__main {
    transition: none;
  }
}

@media (min-width: 1280px) {
  .new-header .new-header__main-grid {
    grid-template-columns: 180px 122px minmax(260px, 561px) 280px 98px;
    justify-content: space-between;
    gap: 0;
    padding-right: 16px;
    padding-left: 16px;
  }

  .new-header .new-header__catalog-search {
    display: contents !important;
  }

  .new-header .new-header__catalog-search > .kea-searchbox-result-wrapper {
    top: 66px !important;
  }

  .new-header .new-header__actions {
    width: 280px;
    height: 40px;
  }
}

.wrapper > .new-header-spacer ~ main,
.wrapper > .new-header-spacer ~ footer {
  top: 0;
}

@media (min-width: 1536px) {
  .new-header .new-header__main-grid {
    grid-template-columns: 180px 28px 122px 16px 561px 50px 280px 79px 98px;
    justify-content: start;
    padding-right: 0;
    padding-left: 0;
  }

  .new-header__logo {
    grid-column: 1;
  }

  .new-header .new-header__catalog-button {
    grid-column: 3;
  }

  .new-header .new-header__search {
    grid-column: 5;
  }

  .new-header .new-header__actions {
    grid-column: 7;
  }

  .new-header .new-header__login {
    grid-column: 9;
  }
}

.new-header .new-header__actions > li {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: #4a5f6d;
}

.new-header .new-header__actions > li.header__user-menu-item--disabled {
  color: #b2c1cc;
}

.new-header .new-header__actions > li > a {
  position: relative;
  width: 40px;
  height: 40px;
  gap: 0;
  transition: color 150ms;
}

.new-header .new-header__actions > li:not(.header__user-menu-item--disabled) > a:hover {
  color: #001e34;
}

.new-header .new-header__actions > li > a > span:last-child {
  position: absolute;
  top: 32px;
  left: 50%;
  line-height: 16px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.new-header .new-header__action-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.new-header .new-header__action-icon svg {
  width: 32px;
  height: 32px;
}

.new-header .new-header__actions > [data-header-preview] {
  z-index: 1;
}

.new-header-popover {
  position: absolute;
  z-index: 90;
  top: 100%;
  left: 50%;
  width: 255px;
  padding-top: 8px;
  color: #001e34;
  transform: translateX(-50%);
  animation: new-header-popover-in 150ms ease-out;
}

.new-header-popover[hidden] {
  display: none !important;
}

.new-header-popover--cart {
  right: 0;
  left: auto;
  width: 320px;
  transform: none;
}

@keyframes new-header-popover-in {
  from {
    margin-top: 4px;
    opacity: 0;
  }

  to {
    margin-top: 0;
    opacity: 1;
  }
}

.new-header-popover__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.24);
}

.new-header-popover__panel--cart {
  gap: 0;
  overflow: hidden;
  padding: 16px 0;
}

.new-header-popover__heading {
  text-align: center;
}

.new-header-popover__title,
.new-header-popover__summary,
.new-header-popover__amount {
  margin: 0;
}

.new-header-popover__title {
  font-size: 16px;
  line-height: 20px;
}

.new-header-popover__summary {
  margin-top: 4px;
  color: #5e5e5e;
  font-size: 14px;
  line-height: 18px;
}

.new-header-popover__content,
.new-header-popover__status {
  min-height: 135px;
}

.new-header-popover__status {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  color: #4a5f6d;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
}

.new-header-popover__status--error {
  color: #ff3055;
}

.new-header-popover__spinner {
  width: 28px;
  height: 28px;
  border: 2px solid #f4f5f6;
  border-top-color: #ffdd00;
  border-radius: 50%;
  animation: new-header-popover-spin 700ms linear infinite;
}

@keyframes new-header-popover-spin {
  to {
    transform: rotate(360deg);
  }
}

.new-header-popover__list {
  max-height: 288px;
  min-height: 135px;
  margin: 0;
  padding: 0 4px 0 0;
  overflow-y: auto;
  list-style: none;
}

.new-header-popover__list::-webkit-scrollbar {
  width: 4px;
}

.new-header-popover__list::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #b2c1cc;
}

.new-header-popover__panel--cart .new-header-popover__list {
  padding: 0 16px;
}

.new-header-popover__list li {
  width: auto;
  height: auto;
  margin: 0 0 8px;
  color: inherit;
}

.new-header-popover__list li:last-child {
  margin-bottom: 0;
}

.new-header .new-header__actions .new-header-popover__product {
  display: grid;
  min-height: 64px;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 8px;
  padding: 4px;
  border-radius: 6px;
  color: #001e34;
  text-decoration: none !important;
  transition: background-color 150ms;
}

.new-header .new-header__actions .new-header-popover__product:hover {
  background: #f4f5f6;
}

.new-header .new-header__actions .new-header-popover__product--cart {
  min-height: 72px;
  grid-template-columns: 64px 1fr;
}

.new-header-popover__image {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: contain;
}

.new-header-popover__product--cart .new-header-popover__image {
  width: 64px;
  height: 64px;
}

.new-header-popover__image--empty {
  background: #f4f5f6;
}

.new-header-popover__description,
.new-header-popover__product-title,
.new-header-popover__product-total {
  display: block;
}

.new-header-popover__product-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.new-header-popover__product--cart .new-header-popover__product-title {
  font-size: 14px;
  line-height: 18px;
}

.new-header-popover__product-total {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.new-header-popover__footer {
  display: grid;
  align-items: center;
}

.new-header-popover__footer--cart {
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-top: 4px;
  padding: 16px 16px 0;
  border-top: 1px solid #f4f5f6;
}

.new-header-popover__amount {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
}

.new-header-popover__action {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #ffdd00;
  color: #001e34;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none !important;
  transition: background-color 150ms;
}

.new-header-popover__footer--cart .new-header-popover__action {
  width: auto;
  height: 48px;
  padding: 0 24px;
}

.new-header-popover__action:hover {
  background: #ffe81d;
}

@media (prefers-reduced-motion: reduce) {
  .new-header-popover,
  .new-header-popover__spinner {
    animation: none;
  }
}

.new-header .new-header__visual-search-slot {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: calc(52px + 0.75rem);
  display: flex;
  width: 32px;
  height: 32px;
  font-size: inherit;
  line-height: normal;
}

.new-header .new-header__visual-search-slot > label,
.new-header .new-header__visual-search-slot .kealabs-visual-search {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.new-header .new-header__visual-search-slot .kealabs-visual-search {
  position: static !important;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.new-header__search-field input:focus,
.new-header__mobile-search-row input:focus {
  outline: none;
}

.new-header a.new-header__partner:hover,
.new-header a.new-header__callback:hover,
.new-header .new-header__actions a:hover,
.new-header a.new-header__login:hover {
  text-decoration: none !important;
}

.new-header a.new-header__partner {
  color: #67859b;
  transition: background-color 150ms, color 150ms;
}

.new-header a.new-header__partner:hover {
  background-color: #e2e2e2;
  color: #001e34;
}

.new-header a.new-header__login {
  transition: background-color 150ms;
}

.new-header a.new-header__login:hover {
  background-color: #e2e2e2;
}

.new-header__action-icon .badge {
  display: none;
  top: -2px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border-radius: 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.new-header-mobile-nav [data-header-counter-item] {
  position: relative;
}

.new-header-mobile-nav [data-header-counter-item] .badge {
  position: absolute;
  top: -7px;
  left: calc(50% + 4px);
  display: none;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}

.new-header__info-nav > a:not(.new-header__partner) {
  padding-right: 2px;
  padding-left: 2px;
}

.new-header__dropdown {
  position: relative;
  display: flex;
  height: 32px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.new-header__dropdown > button {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  line-height: 20px;
}

.new-header__dropdown > button svg {
  display: block;
  width: 10px;
  height: 6px;
  flex: 0 0 10px;
  margin: 0;
  transition: transform 0.2s;
}

.new-header__dropdown.is-open > button svg {
  transform: rotate(180deg);
}

.new-header__dropdown-menu {
  position: absolute;
  z-index: 90;
  top: 32px;
  left: 0;
  display: flex;
  min-width: 243px;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  color: #000;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 150ms ease-out, transform 150ms ease-out, visibility 0s linear 150ms;
  pointer-events: none;
}

.new-header__dropdown.is-open .new-header__dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
  pointer-events: auto;
}

.new-header__partner {
  margin: 0;
}

@media (max-width: 1279px) {
  .new-header {
    right: auto;
    width: 100vw !important;
    max-width: none !important;
  }

  .new-header__ribbon,
  .new-header__mobile-top,
  .new-header__mobile-info,
  .new-header__mobile-search-row {
    width: 100vw;
    max-width: none;
  }
}
