/* O CMS mantém este aviso somente quando o idioma pedido difere do conteúdo. */
.nf-locale-notice { display: none; }

.nf-header-actions { justify-self: end; display: inline-flex; align-items: center; gap: 14px; }
.nf-language-switch { display: inline-flex; align-items: center; flex: none; }
.nf-language-switch > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.nf-language-switch select { min-height: 36px; padding: 5px 10px; border: 1px solid rgba(40, 39, 71, .22); border-radius: 9px; background: rgba(255,255,255,.85); color: #20243a; font: 700 12px/1.2 system-ui, sans-serif; cursor: pointer; }
.nf-language-switch--dark select { border-color: rgba(255,255,255,.35); background: rgba(10, 15, 15, .72); color: #fff; }
.nf-language-switch select:focus-visible { outline: 2px solid #ff006a; outline-offset: 2px; }

[data-nframework-template]:has(> .nf-locale-notice) {
  --nf-locale-notice-height: 48px;
  padding-top: var(--nf-locale-notice-height);
}

[data-nframework-template] > .nf-locale-notice {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  height: var(--nf-locale-notice-height);
  padding: 7px 20px;
  border-bottom: 2px solid #ff006a;
  background: #211923;
  color: #fff;
  font: 600 13px/1.35 system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 8px 24px rgba(19, 7, 15, .2);
}

.nf-locale-notice__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #ff77ad;
  border-radius: 50%;
  color: #ff9dc5;
  font: 700 12px/1 system-ui, sans-serif;
}

.nf-locale-notice__copy { display: none; margin: 0; color: inherit; font: inherit; }
[data-nf-public-locale="pt-BR"] .nf-locale-notice__copy[lang="pt-BR"],
[data-nf-public-locale="ja-JP"] .nf-locale-notice__copy[lang="ja-JP"],
[data-nf-public-locale="en-US"] .nf-locale-notice__copy[lang="en-US"] { display: block; }

[data-nframework-template]:has(> .nf-locale-notice) .site-header,
[data-nframework-template]:has(> .nf-locale-notice) .ss-header,
[data-nframework-template]:has(> .nf-locale-notice) .pe-header,
[data-nframework-template]:has(> .nf-locale-notice) .pem-header {
  top: var(--nf-locale-notice-height);
}

@media (max-width: 640px) {
  .nf-header-actions { gap: 8px; }
  .nf-header-actions .nf-language-switch select { max-width: 88px; }
  [data-nframework-template]:has(> .nf-locale-notice) { --nf-locale-notice-height: 72px; }
  [data-nframework-template] > .nf-locale-notice { gap: 9px; padding-inline: 14px; font-size: 12px; }
}
