/* Footer bottom bar: language switcher (opens upward) and the push-notifications button (footer.blade.php). */
.mm-foot-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mm-foot-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0 14px; border: 1.5px solid var(--mm-ink-line); border-radius: 999px; background: transparent; color: #FFFFFF; font: inherit; font-size: var(--mm-fs-sm); font-weight: 600; cursor: pointer; list-style: none; box-shadow: none; transform: none; }
.mm-foot-tool::-webkit-details-marker { display: none; }
.mm-foot-tool:hover { border-color: var(--mm-gold); color: var(--mm-gold); }
.mm-foot-tool.is-on { border-color: var(--mm-gold); background: var(--mm-gold); color: var(--mm-ink); }
.mm-foot-lang { position: relative; }
.mm-foot-lang[open] > .mm-foot-tool svg:last-child { transform: rotate(180deg); }
.mm-foot-lang .lang-switcher { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 31; display: grid; gap: 4px; min-width: 11rem; padding: 10px; background: var(--mm-ink-2); border-radius: var(--mm-r-in); box-shadow: 0 16px 40px rgba(10, 6, 40, .45); }
.mm-foot-lang .lang-switcher a { padding: 8px 12px; border-radius: var(--mm-r-ctl); color: #FFFFFF; font-weight: 500; }
.mm-foot-lang .lang-switcher a:hover, .mm-foot-lang .lang-switcher a[aria-current] { background: var(--mm-ink-3); color: #FFFFFF; }

/* Translate this page (partials/translate.blade.php, owner's B+C): a white card above the button, search, popular chips,
   every language in two columns with its flag, scrolling. */
.dt-tr .dt-tr-panel { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 31; display: grid; gap: 8px; width: min(340px, calc(100vw - 32px)); max-height: min(460px, 70vh); padding: 12px; overflow: hidden; grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto; background: #FFFFFF; color: var(--mm-ink); border-radius: var(--mm-r-in); box-shadow: 0 16px 40px rgba(10, 6, 40, .45); }
.dt-tr-q { width: 100%; max-width: none; min-height: 0; margin: 0; padding: 9px 12px; border: 1.5px solid #E2DDF7; border-radius: 10px; background: #F4F2FC; color: var(--mm-ink); font: inherit; font-size: 14px; }
.dt-tr-q:focus { outline: 2px solid var(--mm-ink); outline-offset: 1px; background: #FFFFFF; }
.dt-tr-h { margin: 2px 2px 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6B6496; }
.dt-tr-h[hidden], .dt-tr-chips[hidden], .dt-tr-empty[hidden], .dt-tr-list [hidden] { display: none; }
.dt-tr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-tr-chip, .dt-tr-lang { min-height: 0; margin: 0; border: 0; color: var(--mm-ink); font: inherit; cursor: pointer; }
.dt-tr-chip { padding: 6px 10px; border-radius: 999px; background: #F1EFFC; font-size: 13px; font-weight: 600; }
.dt-tr-chip:hover { background: #E4E0FA; }
.dt-tr-list { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; align-content: start; gap: 2px; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.dt-tr-lang { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 38px; padding: 8px; border-radius: 9px; background: transparent; font-size: 14px; text-align: left; }
.dt-tr-lang:hover { background: #F4F2FC; }
.dt-tr-chip[aria-pressed="true"] { background: var(--mm-gold); }
.dt-tr-lang[aria-pressed="true"] { background: var(--mm-lilac); font-weight: 700; }
.dt-tr-flag { flex: none; width: 22px; font-size: 16px; text-align: center; }
.dt-tr-empty { margin: 0; padding: 8px; font-size: 13px; color: #6B6496; }
.dt-tr-note { margin: 0; padding-top: 8px; border-top: 1px solid #EEEAFB; font-size: 11px; color: #6B6496; }
/* The language button's name includes the visible language (audit C): "Translate this page: English". */
.dt-tr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
