/* Seletor de idioma no padrão de seven.condos — cópia do <style> de
   resources/views/seven/partials/language-menu.blade.php (27/11/2026). */
.svn-lang {
    position: fixed;
    inset: 0;
    z-index: 100050;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.svn-lang[hidden] { display: none; }

.svn-lang__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background-color .28s ease;
}

.svn-lang__panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #ffffff;
}

.svn-lang__group {
    overflow: hidden;
    background: rgba(44, 44, 46, 0.86);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 0 0 .5px rgba(255, 255, 255, .1) inset, 0 24px 64px -12px rgba(0, 0, 0, .5);
}

.svn-lang__title {
    margin: 0;
    color: rgba(235, 235, 245, .6);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -.005em;
    text-align: center;
}

.svn-lang__list { list-style: none; margin: 0; padding: 0; }

.svn-lang__item {
    position: relative;
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -.01em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .12s ease;
}
.svn-lang__item:hover,
.svn-lang__item:focus-visible {
    background: rgba(255, 255, 255, .1);
    outline: none;
    color: #ffffff;
    text-decoration: none;
}
.svn-lang__item:active { background: rgba(255, 255, 255, .16); }

.svn-lang__check {
    position: absolute;
    width: 14px;
    height: 14px;
    top: 50%;
    transform: translateY(-50%);
    visibility: hidden;
}
.svn-lang__item[aria-checked="true"] .svn-lang__check { visibility: visible; }

.svn-lang__cancel {
    border: 0;
    color: #ffffff;
    font: 600 17px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: -.01em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* ── Menu (desktop): ancorado no botão, sem título nem Cancel ── */
.svn-lang[data-mode="menu"] .svn-lang__panel {
    width: 208px;
    opacity: 0;
    transform: scale(.94);
    transition: opacity .18s ease, transform .26s cubic-bezier(.16, 1, .3, 1);
}
.svn-lang[data-mode="menu"] .svn-lang__group { padding: 6px; border-radius: 18px; }
.svn-lang[data-mode="menu"] .svn-lang__title,
.svn-lang[data-mode="menu"] .svn-lang__cancel {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.svn-lang[data-mode="menu"] .svn-lang__list { display: grid; gap: 2px; }
.svn-lang[data-mode="menu"] .svn-lang__item { min-height: 36px; padding: 8px 14px 8px 36px; border-radius: 12px; }
.svn-lang[data-mode="menu"] .svn-lang__check { left: 13px; }
.svn-lang[data-mode="menu"][data-open="true"] .svn-lang__panel { opacity: 1; transform: scale(1); }

/* ── Folha (celular): sobe do pé da tela ── */
.svn-lang[data-mode="sheet"] .svn-lang__panel {
    left: max(8px, env(safe-area-inset-left, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    transform: translateY(calc(100% + 24px));
    transition: transform .34s cubic-bezier(.32, .72, 0, 1);
}
.svn-lang[data-mode="sheet"] .svn-lang__group { border-radius: 14px; }
.svn-lang[data-mode="sheet"] .svn-lang__title {
    padding: 11px 16px 10px;
    font-size: 12px;
    border-bottom: .5px solid rgba(255, 255, 255, .14);
}
.svn-lang[data-mode="sheet"] .svn-lang__item {
    min-height: 50px;
    padding: 12px 18px 12px 46px;
    font-size: 17px;
}
.svn-lang[data-mode="sheet"] .svn-lang__list li + li .svn-lang__item { box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .14); }
.svn-lang[data-mode="sheet"] .svn-lang__check { left: 18px; width: 16px; height: 16px; }
.svn-lang[data-mode="sheet"] .svn-lang__cancel {
    height: 50px;
    border-radius: 14px;
    background: rgba(44, 44, 46, .92);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 0 0 .5px rgba(255, 255, 255, .1) inset;
}
.svn-lang[data-mode="sheet"] .svn-lang__cancel:active { background: rgba(72, 72, 74, .95); }
.svn-lang[data-mode="sheet"][data-open="true"] .svn-lang__backdrop { background: rgba(0, 0, 0, .4); }
.svn-lang[data-mode="sheet"][data-open="true"] .svn-lang__panel { transform: translateY(0); }

.svn-lang__cancel:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: -4px; }

@media (prefers-reduced-motion: reduce) {
    .svn-lang .svn-lang__panel,
    .svn-lang .svn-lang__backdrop { transition-duration: .01s !important; }
}

html.svn-lang-locked,
html.svn-lang-locked body { overflow: hidden !important; }

/* Gatilhos da vitrine ------------------------------------------------------- */
.serenity-lang-globe {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, .22);
  background-color: rgba(20, 18, 17, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #ffffff; cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.header.theme_on-light .serenity-lang-globe { border-color: rgba(20, 17, 16, .22); background-color: rgba(249, 244, 238, .65); color: #141110; }
.serenity-lang-globe:hover, .serenity-lang-globe[aria-expanded="true"] { border-color: #c9a87c; color: #c9a87c; background-color: rgba(201, 168, 124, .12); }
.serenity-lang-globe:focus-visible { outline: 2px solid #c9a87c; outline-offset: 2px; }

.serenity-footer-lang {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 10px; border: 1px solid rgba(249, 244, 238, .16); border-radius: 9999px;
  color: rgba(249, 244, 238, .8); font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 500;
  line-height: 1; cursor: pointer; transition: border-color .2s ease, color .2s ease;
}
.serenity-footer-lang:hover, .serenity-footer-lang[aria-expanded="true"] { border-color: #c9a87c; color: #c9a87c; }
.serenity-footer-lang:focus-visible { outline: 2px solid #c9a87c; outline-offset: 2px; }
.serenity-footer-lang svg { flex: none; }
/* No menu do celular o fundo é claro e o rótulo herdava caixa alta espaçada. */
.modal_lang_toggle .serenity-footer-lang { text-transform: none; letter-spacing: 0; color: rgba(33, 26, 25, .75);
  border-color: rgba(33, 26, 25, .18); }
