.custom-header-2 {
  display: block;
  background-color: var(--secondary-color);
}

.custom-header-2__container {
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-desktop {
  display: none;
}

.logo-mobile {
  display: block;
}

[dir] a.custom-header-2__logo {
  border: none;
}

[dir] a.custom-header-2__link {
  display: block;
  position: relative;
  border-color: transparent;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.custom-header-2__search {
  flex: 1 1 10px;
  max-width: 336px;
  margin-left: 24px;
}

.search-2-container form {
  display: block;
  position: relative;
}

.search-2-container form [type="search"] {
  display: block;
  width: 100%;
  height: 48px;
  border-radius: var(--border-radius-base);
  border: 2px solid var(--border-color);
  background-color: transparent;
  padding-left: 48px;
  padding-right: 48px;
  transition: all .3s ease;
}

.search-2-container form [type="search"]:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: var(--border-color);
  box-shadow: none;
}

.search-2-container form [type="search"]:focus:active {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: var(--border-color);
  box-shadow: none;
}

.search-2-container form [type="search"]:focus {
  background-color: transparent;
  border-color: #0460CC;
  box-shadow: 0 0 0 4px #0460CC4D;
}

.search-2-container form [type="search"]::placeholder {
  color: var(--primary-text-color);
}

.search-2-container form [type="search"]:focus::placeholder {
  opacity: 0;
}

.search-2-container .search-icon {
  display: block;
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}

.search-2-container .search-clear-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

@media (min-width: 768px) {
  .logo-desktop {
    display: block;
  }

  .logo-mobile {
    display: none;
  }

  .custom-header-2__left {
    border: none;
    display: flex;
    align-items: center;
    font-size: 18px;
    column-gap: 33px;
    color: var(--primary-text-color);
  }

  .custom-header-2__left > * + * {
    display: block;
    position: relative;
  }

  .custom-header-2__left > * + *::before {
    content: '';
    display: block;
    width: 1px;
    height: 32px;
    position: absolute;
    top: 50%;
    left: -17px;
    transform: translateY(-50%);
    background-color: var(--primary-text-color);
  }

  [dir] a.custom-header-2__link {
    font-size: 18px;
    line-height: 24px;
    transition: all .3s ease;
  }

  [dir] a.custom-header-2__link span {
    display: block;
    position: relative;
  }

  [dir] a.custom-header-2__link span::before {
    content: '';
    display: block;
    width: calc(100% + 8px);
    height: calc(100% + 4px);
    border-radius: 4px;
    background-color: transparent;
    position: absolute;
    top: -2px;
    left: -4px;
    box-sizing: content-box;
    transition: all .3s ease;
  }

  [dir] a.custom-header-2__link:hover {
    border-color: currentColor;
  }

  [dir] a.custom-header-2__link:active:focus span::before {
    background-color: rgba(0, 0, 0, .05);
    box-shadow: none;
  }

  [dir] a.custom-header-2__link:focus span::before {
    background-color: rgba(0, 0, 0, .05);
    box-shadow: 0 0 0 2px #0460CC inset, 0 0 0 2px #0000004D inset, 0 0 0 4px #0460CC4D;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .custom-header-2__container {
    padding: 12px 40px;
  }
}

@media (min-width: 992px) {
  .custom-header-2__container {
    padding: 16px 48px;
  }
}
