/* Floating fallback (when nav anchor not found) */
#agrocore-lang-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999999;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: right;
}
#agrocore-lang-widget .alw-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  border: none;
  font-size: 22px;
  line-height: 48px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
#agrocore-lang-widget .alw-btn:hover { background: #256628; }
#agrocore-lang-widget .alw-menu {
  display: none;
  position: absolute;
  bottom: 56px;
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  max-height: 320px;
  overflow-y: auto;
  min-width: 170px;
  padding: 6px 0;
}
#agrocore-lang-widget.alw-open .alw-menu { display: block; }
#agrocore-lang-widget .alw-item {
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #1f2937;
  text-align: left;
  white-space: nowrap;
}
#agrocore-lang-widget .alw-item:hover { background: #e8f5e9; }
#agrocore-lang-widget .alw-item.alw-active { font-weight: 600; color: #2e7d32; }

/* In-nav styles (when attached to #lang-widget-anchor) */
#lang-widget-anchor {
  display: inline-flex;
  align-items: center;
}
#lang-widget-anchor #agrocore-lang-widget {
  position: relative;
  bottom: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  z-index: 200;
}
#lang-widget-anchor #agrocore-lang-widget .alw-btn {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: transparent;
  color: #2d7a4f;
  border: 1px solid #2d7a4f;
  font-size: 18px;
  line-height: 1;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lang-widget-anchor #agrocore-lang-widget .alw-btn:hover {
  background: #f0faf4;
}
#lang-widget-anchor #agrocore-lang-widget .alw-menu {
  bottom: auto;
  top: 44px;
  right: 0;
}
