/**
* Theme Name: Cosmetsy Child
* Description: This is a child theme of Cosmetsy, generated by Merlin WP.
* Author: <a href="http://themeforest.net/user/KlbTheme">KlbTheme (Sinan ISIK)</a>
* Template: cosmetsy
* Version: 2.0.9
*/

/* Hide WPML default list output if it still appears in the header */
.site-header .col-right .wpml-ls,
.site-header .col-right .wpml-ls-statics-shortcode_actions {
  display: none !important;
}

/* Flag-only click dropdown */
.hb-lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin-left: 14px;
  vertical-align: middle;
  overflow: visible;
  width: fit-content;
}

.site-header .col-right .hb-lang-dropdown {
  overflow: visible;
}

.hb-lang-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.hb-lang-dropdown__toggle:hover,
.hb-lang-dropdown__toggle:focus,
.hb-lang-dropdown__toggle:active {
  background: transparent;
  opacity: 1;
  outline: none;
  box-shadow: none;
}

.hb-lang-dropdown__flag {
  display: block;
  width: 20px !important;
  min-width: 20px;
  height: 14px !important;
  max-width: none !important;
  object-fit: cover;
  flex-shrink: 0;
}

.hb-lang-dropdown__menu {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 100;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hb-lang-dropdown:not(.is-open):hover .hb-lang-dropdown__menu {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hb-lang-dropdown.is-open .hb-lang-dropdown__menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  min-width: 36px;
  width: max-content;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: visible;
  z-index: 9999;
}

.hb-lang-dropdown__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  min-width: 20px;
}

.hb-lang-dropdown__item {
  margin: 0;
  width: 100%;
}

.hb-lang-dropdown__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  padding: 4px;
  line-height: normal;
  text-decoration: none;
}

.hb-lang-dropdown__link:hover {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 2px;
}

.hb-lang-dropdown.is-open .hb-lang-dropdown__menu img {
  visibility: visible !important;
  opacity: 1 !important;
}

.site-header--mobile .hb-lang-dropdown {
  margin-left: 6px;
}
