/* ===== Seletor inline (bloco / shortcode) ===== */
.nst-switcher { display: inline-block; font-size: 0.9em; position: relative; }
.nst-switcher__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.75em; flex-wrap: wrap; }
.nst-switcher__item a { text-decoration: none; opacity: 0.75; }
.nst-switcher__item a:hover, .nst-switcher__item.is-current a { opacity: 1; font-weight: 600; }
.nst-switcher--dropdown .nst-switcher__toggle { background: transparent; border: 1px solid currentColor; border-radius: 4px; padding: 0.35em 0.75em; cursor: pointer; font: inherit; color: inherit; }
.nst-switcher--dropdown .nst-switcher__list { display: none; position: absolute; top: 100%; left: 0; flex-direction: column; gap: 0; min-width: 100%; background: #fff; color: #111; border: 1px solid #ddd; border-radius: 4px; padding: 0.25em 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.nst-switcher--dropdown.is-open .nst-switcher__list { display: flex; }
.nst-switcher--dropdown .nst-switcher__item a { display: block; padding: 0.4em 0.9em; white-space: nowrap; }

/* ===== Bandeiras ===== */
.nst-flag { width: 20px; height: 15px; border-radius: 3px; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); display: block; }

/* ===== Seletor flutuante ===== */
.nst-float {
  --nst-bg: rgba(255,255,255,.82);
  --nst-fg: #111827;
  --nst-muted: #6b7280;
  --nst-border: rgba(17,24,39,.08);
  --nst-hover: rgba(17,24,39,.05);
  --nst-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px -12px rgba(0,0,0,.25);
  --nst-ease: cubic-bezier(.22,1,.36,1);
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--nst-fg);
  -webkit-font-smoothing: antialiased;
}
.nst-float--bottom-left { right: auto; left: max(20px, env(safe-area-inset-left)); }
@media (prefers-color-scheme: dark) {
  .nst-float {
    --nst-bg: rgba(24,24,27,.78);
    --nst-fg: #f4f4f5;
    --nst-muted: #a1a1aa;
    --nst-border: rgba(255,255,255,.1);
    --nst-hover: rgba(255,255,255,.07);
    --nst-shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  }
}

.nst-float__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--nst-bg); color: var(--nst-fg);
  border: 1px solid var(--nst-border);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--nst-shadow);
  cursor: pointer; font: inherit; letter-spacing: .02em;
  transition: transform .35s var(--nst-ease), box-shadow .35s var(--nst-ease), background .2s;
}
.nst-float--label-none .nst-float__toggle { padding: 0 10px; }
.nst-float__toggle:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 16px 36px -12px rgba(0,0,0,.3); }
.nst-float__toggle:active { transform: translateY(0) scale(.98); }
.nst-float__toggle:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.nst-float__current { display: inline-flex; align-items: center; gap: 8px; }
.nst-float__code { font-variant-caps: all-small-caps; letter-spacing: .08em; font-size: 14px; }
.nst-float--label-none .nst-float__code { display: none; }
.nst-float__chevron { display: inline-flex; width: 12px; height: 12px; color: var(--nst-muted); transition: transform .4s var(--nst-ease); }
.nst-float__chevron svg { width: 12px; height: 12px; }
.nst-float.is-open .nst-float__chevron { transform: rotate(180deg); }

.nst-float__menu {
  position: absolute; right: 0; bottom: calc(100% + 10px);
  min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: var(--nst-bg); border: 1px solid var(--nst-border); border-radius: 14px;
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: var(--nst-shadow);
  transform-origin: bottom right;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.96);
  transition: opacity .25s var(--nst-ease), transform .35s var(--nst-ease), visibility 0s linear .35s;
}
.nst-float--bottom-left .nst-float__menu { right: auto; left: 0; transform-origin: bottom left; }
.nst-float.is-open .nst-float__menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition-delay: 0s; }

.nst-float__item { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--nst-ease), transform .4s var(--nst-ease); }
.nst-float.is-open .nst-float__item { opacity: 1; transform: translateY(0); transition-delay: calc(40ms * var(--i, 0)); }
.nst-float__item a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px; color: inherit; text-decoration: none;
  transition: background .15s;
}
.nst-float__item a:hover, .nst-float__item a:focus-visible { background: var(--nst-hover); outline: none; }
.nst-float__name { flex: 1; white-space: nowrap; }
.nst-float__check { width: 14px; height: 14px; color: #16a34a; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--nst-ease); }
.nst-float__check svg { width: 14px; height: 14px; }
.nst-float__item.is-current .nst-float__check { opacity: 1; transform: scale(1); }
.nst-float__item.is-current a { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .nst-float *, .nst-float { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
@media print { .nst-float { display: none; } }
