/* Seletor de idioma PT / EN (i18n.js). Usa a cor do texto ao redor, então serve em fundo claro e escuro. */
.lang-switch{--w:58px;position:relative;display:inline-flex;align-items:center;flex:none;height:34px;padding:3px;border-radius:999px;
  border:1px solid color-mix(in srgb,currentColor 22%,transparent);background:color-mix(in srgb,currentColor 6%,transparent);
  font:600 11px/1 Inter,system-ui,sans-serif;letter-spacing:.08em;isolation:isolate;view-transition-name:lang-switch}
.lang-switch button{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;width:var(--w);height:100%;
  margin:0;padding:0;min-height:0;border:0;border-radius:999px;background:none;box-shadow:none;text-transform:none;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer;
  opacity:.62;transition:opacity .3s,color .45s cubic-bezier(.65,0,.35,1)}
.lang-switch button:hover{opacity:1}
.lang-switch button:focus-visible{outline:2px solid #ffd100;outline-offset:2px}
.lang-switch button[aria-pressed="true"]{opacity:1;color:#111}
.lang-switch svg{width:18px;height:13px;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.18);flex:none;
  transition:transform .45s cubic-bezier(.34,1.56,.64,1)}
.lang-switch button[aria-pressed="true"] svg{transform:scale(1.08)}
.lang-switch__thumb{position:absolute;z-index:0;top:3px;left:3px;width:var(--w);height:calc(100% - 6px);border-radius:999px;background:#ffd100;
  box-shadow:0 2px 10px rgba(255,209,0,.28);transition:transform .5s cubic-bezier(.65,0,.35,1)}
.lang-switch[data-active="en"] .lang-switch__thumb{transform:translateX(100%)}
.lang-switch--floating{position:fixed;z-index:60;top:16px;right:16px;color:#f5f5f0;background:rgba(10,10,10,.5);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
@media (max-width:420px){.lang-switch{--w:50px}.lang-switch span{font-size:10px}}

/* Troca de idioma: a página esmaece e volta com o novo texto; o seletor fica fora do esmaecer. */
html.lang-vt::view-transition-group(root){animation-duration:.5s}
html.lang-vt::view-transition-old(root){animation:lang-out .26s ease-in both}
html.lang-vt::view-transition-new(root){animation:lang-in .46s cubic-bezier(.22,1,.36,1) .12s both}
html.lang-vt::view-transition-old(lang-switch){display:none}
html.lang-vt::view-transition-new(lang-switch){animation:none}
@keyframes lang-out{to{opacity:0;filter:blur(5px)}}
@keyframes lang-in{from{opacity:0;filter:blur(5px);transform:translateY(6px)}}
html.lang-fade body{opacity:0}
body{transition:opacity .24s ease}
html.lang-pending body{transition:none}
@media (prefers-reduced-motion:reduce){.lang-switch *,.lang-switch__thumb{transition:none!important}}

/* Posição em cada página */
/* No desktop, refinement.css deixa o menu com rolagem; com o seletor ao lado, o menu fica mais justo para caber sem barra. */
@media (min-width:1241px){.nav__links{margin-left:auto;overflow:visible;flex:none;gap:clamp(14px,1.5vw,34px)}.nav__links a{white-space:nowrap}
  .nav__logo{flex:none}
  .nav__inner .lang-switch{--w:40px;margin-left:22px}.nav__inner .lang-switch span{display:none}}
@media (max-width:1240px){.nav__inner .lang-switch{margin-left:auto;margin-right:6px}}
.topbar .lang-switch{margin-left:auto;margin-right:14px}
.checkout-head .lang-switch{margin-left:auto;margin-right:18px}
.mobile-header .lang-switch{margin-left:auto;margin-right:6px}
.lang-switch button span{color:inherit;font-size:inherit;letter-spacing:inherit}
/* O cabeçalho móvel da plataforma estiliza todo botão como menu "•••"; aqui o seletor volta ao normal. */
.arrow-campus .mobile-header .lang-switch button{width:var(--w);font-size:11px;color:inherit}
.arrow-campus .mobile-header .lang-switch button[aria-pressed="true"]{color:#111}
.arrow-campus .mobile-header .lang-switch button:after{content:none}
