/* TrendyChic header styling; existing menu and action modules remain in place. */
.trendychic-header {
  color: #595757;
  background: #fff;
}

.trendychic-header .beautys-header__logo {
  width: 280px;
  height: auto;
}

.trendychic-header .beautys-header__main,
.trendychic-header .beautys-header__nav-inner {
  width: min(100%, 1368px);
  padding-right: 50px;
  padding-left: 50px;
}

.trendychic-header .beautys-header__main {
  min-height: 120px;
}

.trendychic-header .beautys-header__nav {
  min-height: 50px;
  border-bottom: 1px solid #f5eef0;
}

.trendychic-header .beautys-header__nav::before {
  display: none;
}

.trendychic-header .beautys-header__nav-inner {
  min-height: 50px;
}

.trendychic-header .ps-mainmenu__tree {
  gap: 26px;
}

.trendychic-header .ps-mainmenu__tree-item-wrapper {
  min-height: 50px;
}

.trendychic-header .ps-mainmenu__tree-link {
  padding: 14px 0;
  color: #595757;
  font-weight: 700;
  text-transform: none;
}

.trendychic-header .ps-mainmenu__tree-link:hover,
.trendychic-header .current > .ps-mainmenu__tree-item-wrapper .ps-mainmenu__tree-link {
  color: #c34f67;
}

.trendychic-header .beautys-menu-badge {
  top: -3px;
}

/* Match the links' height instead of inheriting the parent's tall arrow padding. */
@media (min-width: 1200px) {
  #header:not(.beautys-header--compact) .trendychic-header .beautys-header__main {
    min-height: 130px;
  }

  #header:not(.beautys-header--compact) .trendychic-header .beautys-header__brand {
    transform: translateY(5px);
  }

  #header:not(.beautys-header--compact) .trendychic-header .ps-mainmenu__tree-dropdown-toggle {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

/* Keep the native search field visible; retain icon search in the sticky header. */
.trendychic-header .beautys-header__compact-search-icon {
  display: block;
  width: 19px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("../img/search-kylie.svg") center / contain no-repeat;
  mask: url("../img/search-kylie.svg") center / contain no-repeat;
}

@media (min-width: 768px) {
  #header:not(.beautys-header--compact) .trendychic-header .beautys-header__search {
    position: relative;
    width: 220px;
    z-index: 6;
  }

  #header:not(.beautys-header--compact) .trendychic-header #_desktop_ps_searchbar {
    position: static;
    display: flex !important;
    width: 100%;
    height: auto;
    overflow: visible;
    visibility: visible;
    pointer-events: auto;
  }

  #header:not(.beautys-header--compact) .trendychic-header .beautys-header__compact-search-toggle {
    display: none;
  }

  .trendychic-header .beautys-header__compact-search-toggle:hover {
    color: #c34f67;
    background: #fff1f5;
  }

  .trendychic-header .beautys-header__compact-search-toggle:focus-visible {
    outline: 2px solid #c34f67;
    outline-offset: 2px;
  }

  #header:not(.beautys-header--compact) .trendychic-header .ps-searchbar__form {
    height: 38px;
    padding: 0 12px 0 14px;
  }

  #header:not(.beautys-header--compact) .trendychic-header .ps-searchbar__input {
    height: 36px;
    font-size: 13px;
  }

  #header:not(.beautys-header--compact) .trendychic-header .ps-searchbar__magnifier {
    width: 18px;
    height: 19px;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .trendychic-header .beautys-header__main {
    grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
    min-height: 116px;
  }

  .trendychic-header .beautys-header__logo {
    width: 240px;
  }
}

@media (max-width: 767.98px) {
  .trendychic-header .beautys-header__main {
    min-height: 76px;
    padding-right: 16px;
    padding-left: 16px;
    border-bottom-color: #f5eef0;
  }

  .trendychic-header .beautys-header__logo {
    width: 152px;
    max-width: 100%;
  }

  .trendychic-header .beautys-header__brand {
    min-width: 0;
  }

  .trendychic-header .beautys-header__nav,
  .trendychic-header .beautys-header__nav-inner {
    min-height: 76px;
    border: 0;
  }

  .trendychic-header .beautys-header__nav-inner {
    width: 42px;
    padding: 0;
  }
}

@media (max-width: 420px) {
  .trendychic-header .beautys-header__main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .trendychic-header .beautys-header__logo {
    width: 130px;
  }

  .trendychic-header .beautys-header__nav-inner {
    width: 36px;
  }
}

/* Align the logo row and locale controls to the shared 1600px content width. */
@media (min-width:768px) {
  .trendychic-header .beautys-header__main {
    width:min(1600px, calc(100% - 48px));
    padding-left:0;
    padding-right:0;
  }
}
@media (min-width:1200px) {
  .beautys-announcement .beautys-locale--desktop {
    right:max(24px, calc((100vw - 1600px) / 2));
  }
}
