.lang-dropdown-container {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  align-items: center;
  width: 0;
  opacity: 0;
  overflow: visible; /* Need overflow visible so dropdown list can render outside the container! */
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, transform 0.25s ease;
  transform: translateY(-5px);
  pointer-events: none;
  z-index: 999;
}
.lang-dropdown-container.open {
  width: 145px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-select-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-bottom: 5px solid #ffffff;
  border-radius: 24px;
  padding: 6px 14px 8px;
  color: #1e293b;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05), inset 0 2px 2px #fff;
  transition: transform 0.1s, background 0.12s;
  user-select: none;
}
.lang-select-pill:hover {
  background: #e2e8f0;
}
.lang-select-pill:active {
  transform: translateY(2px);
  border-bottom-width: 2.5px;
}
.lang-select-pill .arrow {
  font-size: 12px;
  color: #64748b;
}
.flag-holder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Custom Dropdown List overlay */
.custom-dropdown-list {
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  right: 0;
  background: #ffffff;
  border: 2.5px solid #cbd5e1;
  border-radius: 18px;
  max-height: 285px;
  overflow-y: auto;
  z-index: 999;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  display: none;
  padding: 6px 0;
}
.custom-dropdown-list.show {
  display: block;
  animation: dropdownFadeIn 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scrollbar styles */
.custom-dropdown-list::-webkit-scrollbar {
  width: 8px;
}
.custom-dropdown-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 0 18px 18px 0;
}
.custom-dropdown-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}
.custom-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Custom Dropdown Items */
.custom-dropdown-item {
  width: 100%;
  background: transparent;
  border: none;
  padding: 9px 16px;
  text-align: left;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.custom-dropdown-item:hover {
  background: #f1f5f9;
}
.custom-dropdown-item.selected {
  background: #eff6ff;
  color: #2F6DF4;
}
.custom-dropdown-item .flag-img, .lang-select-pill .flag-img {
  width: 20px !important;
  height: 14px !important;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}


.lang-dropdown-container{display:flex!important}.language-direct{display:none!important}.settings-wrapper-outer{position:relative}.lang-dropdown-container.open{width:145px!important;opacity:1!important;pointer-events:auto!important;overflow:visible!important}.custom-dropdown-list.show{display:block!important}
