.fohow-language-native { display: none !important; }
.fohow-language-container { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.fohow-language-container > svg,
.fohow-language-container > #lang-label { display: none !important; }
.fohow-language-trigger {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  max-width: 148px; min-width: 0; min-height: 36px; height: 36px; padding: 0 13px;
  margin: 0;
  border: 1px solid rgba(33, 78, 60, 0.15); border-radius: 999px;
  color: #214032; background: rgba(255, 255, 255, 0.94);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: 0.01em; text-transform: none;
  cursor: pointer; box-shadow: 0 2px 8px rgba(21, 52, 36, 0.045);
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .12s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.fohow-language-trigger svg { width: 16px; height: 16px; flex: 0 0 auto; display: block; color: #2f5a46; }
.fohow-language-trigger span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.2; }
.fohow-language-trigger i { display: none !important; }
.fohow-language-trigger:hover { background: #f2f7f0; border-color: rgba(33, 78, 60, 0.28); box-shadow: 0 4px 12px rgba(21, 52, 36, 0.07); }
.fohow-language-trigger:active { transform: translateY(0.5px); }
.fohow-language-trigger:focus:not(:focus-visible) { outline: none !important; }
.fohow-language-trigger:disabled { opacity: .55; cursor: not-allowed; }

/* Dark translucent glass variant for dark/video/colored headers */
.fohow-language-trigger[data-picker-theme="dark"],
.fohow-language-trigger.is-dark {
  background: rgba(15, 23, 42, .56);
  color: #ffffff;
  border-color: rgba(255, 255, 255, .24);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.fohow-language-trigger[data-picker-theme="dark"] svg,
.fohow-language-trigger.is-dark svg { color: rgba(255, 255, 255, .92); }
.fohow-language-trigger[data-picker-theme="dark"]:hover,
.fohow-language-trigger.is-dark:hover {
  background: rgba(15, 23, 42, .74);
  border-color: rgba(255, 255, 255, .38);
}

/* Compact pill variant for dense topbars */
.fohow-language-trigger[data-picker-compact="1"],
.fohow-language-trigger.is-compact {
  min-height: 34px; height: 34px; padding: 0 11px; gap: 5px;
  border-radius: 999px; font-size: 12.5px; max-width: 126px;
}
.fohow-language-trigger[data-picker-compact="1"] svg,
.fohow-language-trigger.is-compact svg { width: 15px; height: 15px; }

/* Icon-only variant */
.fohow-language-trigger[data-picker-icon-only="1"],
.fohow-language-trigger.is-icon-only {
  width: 34px; min-width: 34px; max-width: 34px;
  min-height: 34px; height: 34px; padding: 0; gap: 0;
  border-radius: 11px;
}
.fohow-language-trigger[data-picker-icon-only="1"] span,
.fohow-language-trigger.is-icon-only span { display: none; }

.fohow-language-backdrop {
  position: fixed; inset: 0; z-index: 2147483639;
  background: rgba(21,44,31,.28);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.fohow-language-dialog {
  box-sizing: border-box; position: fixed; inset: 0; margin: auto;
  z-index: 2147483640;
  width: min(460px, calc(100% - 32px));
  max-width: 460px; max-height: min(680px, 88dvh); padding: 22px;
  border: 1px solid rgba(214,225,210,.86); border-radius: 26px;
  background: #fffdf9; color: #263e30; box-shadow: 0 24px 90px rgba(13,40,27,.22);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  overflow-y: auto; overscroll-behavior: contain;
}
.fohow-language-dialog * { box-sizing: border-box; }
div.fohow-language-dialog:not(.is-fallback-open) { display: none; }
.fohow-language-dialog.is-fallback-open { display: block; height: fit-content; }
.fohow-language-dialog::backdrop {
  background: rgba(21,44,31,.28);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.fohow-language-dialog[open] { animation: fohow-language-enter .16s ease-out; }
.fohow-language-handle { display: none; }
.fohow-language-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.fohow-language-heading p { margin: 0 0 6px; font-size: 10px; font-weight: 650; letter-spacing: .15em; color: #8d9b86; }
.fohow-language-heading h2 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 650; color: #294635; }
.fohow-language-close {
  flex: 0 0 38px; width: 38px; height: 38px; min-height: 38px; padding: 0; margin: 0;
  border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; line-height: 1; color: #5e7563; background: #edf3e9; cursor: pointer;
}
.fohow-language-close:hover { background: #e2ecdc; }
.fohow-language-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fohow-language-option {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-height: 68px; min-width: 0; width: 100%; padding: 12px 13px; margin: 0;
  border: 1px solid #e6ebdf; border-radius: 15px;
  background: #fff; color: #304c3a; text-align: left; font: inherit; cursor: pointer;
  transition: background .14s ease, border-color .14s ease, transform .1s ease;
}
.fohow-language-dialog[dir="rtl"] .fohow-language-option { text-align: right; }
.fohow-language-option strong { display: block; font-weight: 600; font-size: 14px; line-height: 1.38; overflow-wrap: anywhere; }
.fohow-language-option small { display: block; margin-top: 3px; font-size: 10.5px; color: #8a9788; line-height: 1.35; }
.fohow-language-option[aria-selected="true"] { background: #edf5e8; border-color: #b6d0ae; box-shadow: inset 0 0 0 1px rgba(182,208,174,.2); }
.fohow-language-option:hover { background: #f4f8ef; border-color: #d3e1cb; }
.fohow-language-check { flex: 0 0 18px; width: 18px; height: 18px; display: grid; place-items: center; font-size: 12px; color: #fff; border-radius: 50%; }
[aria-selected="true"] > .fohow-language-check { background: #608a62; }
.fohow-language-dialog :focus-visible,
.fohow-language-trigger:focus-visible { outline: 2px solid rgba(53, 99, 73, 0.42); outline-offset: 2px; }
.fohow-language-dialog .fohow-language-option:focus-visible { outline: 2px solid #759776; outline-offset: 1px; }
@media(max-width: 600px) {
  .fohow-language-dialog { inset: auto 0 0; width: 100%; max-width: none; max-height: 88vh; max-height: 88dvh; margin: 0; border-radius: 26px 26px 0 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); }
  .fohow-language-handle { display: block; width: 36px; height: 4px; margin: 0 auto 18px; border-radius: 9px; background: #dce5d6; }
  .fohow-language-heading { margin-bottom: 16px; }
  .fohow-language-heading h2 { font-size: 21px; }
}
@media(max-width: 375px) {
  .fohow-language-trigger[data-picker-compact="1"],
  .fohow-language-trigger.is-compact {
    width: 34px; min-width: 34px; max-width: 34px; padding: 0; gap: 0; border-radius: 11px;
  }
  .fohow-language-trigger[data-picker-compact="1"] span,
  .fohow-language-trigger.is-compact span { display: none; }
}
@media(max-width: 359px) {
  .fohow-language-trigger { max-width: 112px; padding: 0 10px; gap: 4px; font-size: 12px; }
  .fohow-language-dialog { padding-left: 14px; padding-right: 14px; }
  .fohow-language-option { padding: 10px; }
}
@keyframes fohow-language-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media(prefers-reduced-motion: reduce) { .fohow-language-dialog[open] { animation: none; } }
