/* === Google Translator Styles === */
#translator-wrapper {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}

/* 🔹 Rectangular toggle button */
.translator-toggle {
  width: 80px;
  height: 45px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.translator-toggle:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.translator-toggle img {
  width: 28px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}

.translator-toggle small {
  font-size: 14px;
  color: #555;
}

/* 🔹 Dropdown list container */
.translator-dropdown {
  display: none;
  position: absolute;
  bottom: 55px;
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  width: 260px;
  max-height: 420px;
  overflow-y: auto;
}

.translator-dropdown.active {
  display: block;
}

/* 🔹 Search bar */
.lang-search {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
}

.lang-search input {
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* 🔹 Individual language option */
.translator-option {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.translator-option:hover {
  background: #f3f3f3;
}

.translator-option img {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  margin-right: 10px;
}

.translator-option span {
  font-size: 14px;
  color: #333;
}
