@use "sass:color";
@use '../../../styles/variables.scss';

global-bar {
  display: flex;
  flex-direction: column;
}

global-bar #globalBar {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1px;
  white-space: nowrap;
  min-height: 40px;
}

global-bar .leftContainer {
  color: white;
  display: flex;
  padding-left: 5px;
  flex-basis: 25%;
}

global-bar .midContainer {
  display: flex;
  flex-basis: 50%;
}

global-bar .flexContainer {
  display: flex;
  flex-grow: 1;
}

global-bar .rightContainer {
  display: flex;
  flex-basis: 25%;
  justify-content: flex-end;
  max-width: 300px;
}

global-bar #globalBar .company {
  display: flex;
  align-items: center;
  padding-left: 15px;
  padding-right: 0;
}

global-bar #globalBar .homeImage {
  display: flex;
  align-items: center;
}

global-bar .searchContainer {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-basis: 800px;
  justify-content: center;
}

global-bar .searchContainer>.k-autocomplete:focus-within {
  box-shadow: 0 0 2px 3px #ffa500;
}

global-bar .searchContainer>.k-autocomplete.k-input {
  border-color: transparent;
  background-color: transparent;
}

global-bar .searchContainer>.k-autocomplete.k-input .k-input-inner {
  background-color: transparent;
  color: white;
}

global-bar .searchContainer>.k-autocomplete.k-input .k-input-inner::placeholder {
  color: rgba($color: white, $alpha: 0.5)
}

global-bar .mainMenu {
  margin: 0 5px 0 0;
  font-size: 22px;
  display: flex;
  align-self: center;
  border-radius: 3px;
  padding: 0;
}

global-bar .mainMenu .k-menu {
  padding: 0;
  margin: 0;
  background-color: transparent;
}

global-bar .mainMenu .k-menu .k-menu-link {
  margin: 0;
  padding: 0;
}

global-bar .mainMenu .k-menu .k-svg-icon.k-svg-i-menu {
  font-size: 22px;
  color: white;
  width: 22px;
  height: 22px;
  margin: 5px 15px 5px 15px;
}

global-bar .mainMenu:hover {
  box-shadow: 0 0 0 3px #ffa500;
}

global-bar .mainMenu .k-menu:hover .k-svg-icon.k-svg-i-menu {
  color: gray;
}

global-bar .mainMenu .k-menu:focus-within {
  box-shadow: none;
}

global-bar .mainMenu .k-menu .k-item.k-menu-item:focus {
  box-shadow: none;
}

global-bar .signOut {
  display: flex;
  align-items: center;
  padding-left: 5px;
  padding-right: 5px;
  color: white;
  text-decoration: none;
}

global-bar a.signOut,
global-bar a.signOut:visited {
  color: white;
}

global-bar .signOut:hover,
global-bar .signOut:visited:hover {
  color: variables.$highlight-color;
}

global-bar a.signOut:active,
global-bar a.signOut:visited:active {
  color: color.adjust(variables.$highlight-color, $lightness: -20%);
}

.global-bar.fakeLink {
  line-height: 26px;
}

global-bar .favoritesStar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
}

global-bar .favoritesStar .k-svg-icon.k-svg-i-star {
  margin-right: 0;
  color: white;
  padding: 8px 20px 10px 20px;
}

global-bar .favoritesStar .k-svg-icon.k-svg-i-star:hover {
  color: variables.$highlight-color;
  box-shadow: 0 0 2px 3px #ffa500;
}

global-bar .favoritesStar .k-svg-icon.k-svg-i-star:active {
  color: color.adjust(variables.$highlight-color, $lightness: -20%);
}

global-bar .favoritesContainer {
  display: flex;
}

global-bar .favoritesContainer.areOpen global-favorites {
  visibility: visible;
  opacity: 1;
  transition: none;
}

global-bar .favoritesContainer:not(.areOpen) global-favorites {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s, opacity 0.25s;
}

global-bar .mainMenu .k-menu:active .k-svg-icon.k-svg-i-menu {
  color: variables.$highlight-color;
}

global-bar .mainMenu .k-menu.k-menu-horizontal {
  padding: 0;
}

global-bar .homeImage:hover {
  filter: drop-shadow(0 0 4px variables.$highlight-color) drop-shadow(0 0 4px variables.$highlight-color) drop-shadow(0 0 4px variables.$highlight-color);
}

global-bar .homeImage:hover:active {
  filter: drop-shadow(0 0 4px variables.$highlight-color) drop-shadow(0 0 4px variables.$highlight-color) drop-shadow(0 0 4px variables.$highlight-color) blur(1px);
}

global-bar .searchTipAnchor {
  width: 0;
  height: 40px;
  position: absolute;
}

.global-bar-item {
  display: flex;
  align-items: center;
  padding: 3px calc(3rem + 16px) 3px 1.5rem;
  height: 48px;
  cursor: pointer;
}

.global-bar-category {
  flex-grow: 1;
  cursor: default;
}

.global-bar-category .k-menu-expand-arrow {
  position: absolute;
  right: 40px;
}

.palettePlaceholder {
  margin-left: 3px;
  min-width: 36px;
  height: 40px;
}