.ab-i18n-widget {
  position: fixed;
  right: 18px;
  top: 84px;
  bottom: auto;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 9px 7px 12px;
  border: 1px solid #c9d8f5;
  border-radius: 999px;
  background: #fff;
  color: #15213c;
  box-shadow: 0 14px 34px rgba(24, 42, 76, 0.16);
  font-family: "Open Sans", "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.ab-i18n-widget label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #234064;
  white-space: nowrap;
}

.ab-i18n-widget select {
  min-width: 92px;
  height: 32px;
  padding: 0 28px 0 11px;
  border: 1px solid #9fb8ea;
  border-radius: 999px;
  background: #f8fbff;
  color: #0f4fc8;
  font: inherit;
  cursor: pointer;
}

.ab-i18n-widget select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(35, 110, 232, 0.22);
}

.ab-i18n-widget.is-loading::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid #d7e4fb;
  border-top-color: #236ee8;
  border-radius: 999px;
  animation: ab-i18n-spin 0.75s linear infinite;
}

@keyframes ab-i18n-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .ab-i18n-widget {
    right: 10px;
    top: 10px;
    bottom: auto;
    min-height: 38px;
    padding: 6px 7px 6px 10px;
    font-size: 12px;
  }

  .ab-i18n-widget select {
    min-width: 82px;
    height: 30px;
  }
}

body:has(.portal-app) .ab-i18n-widget,
body:has(.dash-app) .ab-i18n-widget {
  top: 64px;
  right: 12px;
  bottom: auto;
}

@media (max-width: 760px) {
  body:has(.portal-app) .ab-i18n-widget,
  body:has(.dash-app) .ab-i18n-widget {
    top: 58px;
    right: 8px;
    transform: scale(0.92);
    transform-origin: top right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-i18n-widget.is-loading::after {
    animation: none;
  }
}
