.header-h-full {
  height: 100%;
}

.header-flex {
  display: flex;
}

.header-flex-row {
  flex-direction: row;
}

.header-justify-between {
  justify-content: space-between;
}

.header-items-center {
  align-items: center;
}

.header-float-right {
  float: right;
}

@media (max-width: 1023px) {
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .desktop-header {
    display: none;
  }
}

@media (min-width: 1024px) {
  .mobile-header {
    display: none;
  }

  .desktop-header {
    display: block;
  }
}

.desktop-header {
  position: sticky;
  height: var(--desktop-header-height);
  background-color: var(--white-color);
  border-bottom: 1px solid var(--border-light-gray-color);
}

.desktop-header__wrapper {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .desktop-header__wrapper {
    max-width: 48rem;
  }
}

@media (min-width: 1024px) {
  .desktop-header__wrapper {
    max-width: 64rem;
  }
}

@media (min-width: 1280px) {
  .desktop-header__wrapper {
    max-width: 72rem;
  }
}

.desktop-header__wrapper__logo {
  height: 29px;
}

.desktop-header__wrapper__links {
  margin-left: 3rem;
}

.desktop-header__wrapper__links__list {
  list-style: none;
  margin-left: 0;
}

.desktop-header__wrapper__links__list li {
  float: left;
  margin-right: 1.0rem;
  margin-bottom: 0;
}

.desktop-header__wrapper__links__list li a {
  font-size: 16px;
  line-height: 24px;
  font-family: var(--market-content-fonts);
  color: var(--text-black-color);
  text-decoration: none;
}

.desktop-header__wrapper__links__list li a:hover {
  color: var(--dark-blue-color);
}

.desktop-header__wrapper__cart-icon {
  display: flex;
}

.mobile-header {
  top: 0;
  width: 100%;
  position: sticky;
  height: var(--mobile-header-height);
  background-color: var(--white-color);
  border-bottom: 1px solid var(--border-light-gray-color);
}

.mobile-header__logo {
  height: 29px;
  margin-left: 1rem;
}

.mobile-header__navigation {
  height: 40px;
}

.mobile-header__navigation__mobile-navbar {
  left: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  overflow: hidden;
  background-color: #fff;
  /* top is being overrided with JS */
  top: var(--mobile-header-height);
  max-height: 0;
  transition: max-height .5s ease-out;
}

ul.mobile-header__navigation__mobile-navbar__menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-header__navigation__mobile-navbar__menu li {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light-gray-color);
}

.mobile-header__navigation__mobile-navbar__menu li a {
  display: block;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 25px;
  line-height: 20px;
  font-size: 16px;
  font-family: var(--market-content-fonts);
  color: var(--text-black-color);
  text-decoration: none;
}

.mobile-header__navigation__mobile-navbar__menu li a:hover {
  color: var(--light-blue-color);
}

.mobile-header__navigation__toggle {
  float: right;
  cursor: pointer;
  padding-top: 20px;
  padding-right: 1rem;
}

.mobile-header__navigation__toggle__line {
  width: 24px;
  height: 2px;
  display: block;
  position: relative;
  background: var(--dark-blue-color);
}

.mobile-header__navigation__toggle__line::before,
.mobile-header__navigation__toggle__line::after {
  content: '';
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  background: var(--dark-blue-color);
  transition: all .2s ease-out;
}

.mobile-header__navigation__toggle__line::before {
  top: 7px;
}

.mobile-header__navigation__toggle__line::after {
  top: -7px;
}

.mobile-header__navigation__checkbox:checked~nav {
  max-height: 100%;
}

.mobile-header__navigation__checkbox:checked~.mobile-header__navigation__toggle .mobile-header__navigation__toggle__line {
  background: transparent;
}

.mobile-header__navigation__checkbox:checked~.mobile-header__navigation__toggle .mobile-header__navigation__toggle__line::before {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-header__navigation__checkbox:checked~.mobile-header__navigation__toggle .mobile-header__navigation__toggle__line::after {
  top: 0;
  transform: rotate(45deg);
}

.locale-dropdown {
  position: relative;
  display: inline-block;
}

.locale-dropdown-button {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.locale-dropdown-button:hover {
  background: #f5f5f5;
}

.locale-flag {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
   width: 16px;
  height: 12px;
  margin-right: 6px;
}

.locale-dropdown {
  position: relative;
  display: inline-block;
  overflow: visible !important;
}

.locale-selector-container {
  overflow: visible !important;
}

.locale-dropdown-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  line-height: 1.25rem;
  color: #2d3748;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  outline: none;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  font-family: 'ABCWhyte-Regular', -apple-system, OpenSans;
  width: 80px;
  position: relative;
  white-space: nowrap;
}

.locale-dropdown-button:hover {
  border-color: #cbd5e0;
  background-color: #f7fafc;
}

.locale-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 9999 !important;
  overflow-x: hidden;
  width: 80px;
}

.locale-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0.5rem 0.75rem;
  color: #2d3748 !important;
  text-decoration: none !important;
  font-size: 1rem;
  font-family: 'ABCWhyte-Regular', -apple-system, OpenSans;
  transition: background-color 0.2s ease-in-out;
  white-space: nowrap;
  background-color: #ffffff !important;
  border: none;
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  overflow: hidden;
  position: relative;
}

.locale-dropdown-item:hover {
  background-color: #f7fafc !important;
  color: #2d3748 !important;
  text-decoration: none !important;
}

.locale-dropdown-item span {
  flex: 1;
  text-align: left;
  margin: 0;
}

.cart_icon__count__parent {
  position: relative;
}

.cart_icon__count__parent__child:after {
  content: attr(data-cart-length);
  font-size: 14px;
  text-align: center;
  color: white;
  background-color: #fa6e4b;
  position: absolute;
  border-radius: 50%;
  display: block;

  @media (max-width: 1023px) {
    line-height: 20px;
    width: 20px;
    height: 20px;
    top: -5px;
    right: -5px;
  }

  @media (min-width: 1024px) {
    line-height: 25px;
    width: 25px;
    height: 25px;
    top: -10px;
    right: -10px;
  }
}

/* Do not display cart length element in Safari */
.cart_icon__count__parent__child:not([data-cart-length]):after,
.cart_icon__count__parent__child[data-cart-length=""]:after {
  display: none;
}

@media (max-width: 1023px) {
  .min-h-screen-minus-header {
    min-height: calc(100vh - var(--mobile-header-height));
  }
}

@media (min-width: 1024px) {
  .min-h-screen-minus-header {
    min-height: calc(100vh - var(--desktop-header-height));
  }
}