/* VTranslate – bộ chuyển ngôn ngữ. Mọi lớp có tiền tố vtr- để không đụng theme. */
.vtr-sw { font-size: var(--vtr-font, 14px); line-height: 1.4; color: var(--vtr-text, #1d2327); }
.vtr-sw .vtr-list { list-style: none; margin: 0; padding: 0; }
.vtr-sw .vtr-item { margin: 0; padding: 0; }
.vtr-sw a { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; gap: 6px; padding: 5px 10px; color: inherit; text-decoration: none; border-radius: var(--vtr-radius, 6px); white-space: nowrap; }
.vtr-sw a:hover, .vtr-sw a:focus-visible { background: var(--vtr-hover, #f0f6fc); }
.vtr-sw .vtr-active > a { color: var(--vtr-active, #0a7ea4); font-weight: 600; }
.vtr-flag { width: var(--vtr-flag, 20px); height: auto; aspect-ratio: 4 / 3; -o-object-fit: cover; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); vertical-align: middle; display: inline-block; }
.vtr-round .vtr-flag { aspect-ratio: 1 / 1; border-radius: 50%; }
.vtr-code { font-size: .85em; letter-spacing: .02em; }

.vtr-sw-inline .vtr-list, .vtr-sw-flags .vtr-list { display: -webkit-box; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 4px; }
.vtr-sw-vertical .vtr-list { display: block; }
.vtr-sw-flags a { padding: 4px; }

.vtr-sw-dropdown { position: relative; display: inline-block; }
.vtr-sw-dropdown > summary { list-style: none; cursor: pointer; display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; gap: 6px; padding: 6px 10px; background: var(--vtr-bg, #fff); border: 1px solid var(--vtr-border, #dcdcde); border-radius: var(--vtr-radius, 6px); }
.vtr-sw-dropdown > summary::-webkit-details-marker { display: none; }
.vtr-arrow { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-left: 2px; }
.vtr-sw-dropdown[open] .vtr-arrow { border-top: 0; border-bottom: 5px solid currentColor; }
.vtr-sw-dropdown .vtr-list { position: absolute; top: calc(100% + 4px); left: 0; min-width: 100%; z-index: 99999; background: var(--vtr-bg, #fff); border: 1px solid var(--vtr-border, #dcdcde); border-radius: var(--vtr-radius, 6px); box-shadow: var(--vtr-shadow); padding: 4px; max-height: 60vh; overflow: auto; }
.vtr-float-bottom-left .vtr-sw-dropdown .vtr-list, .vtr-float-bottom-right .vtr-sw-dropdown .vtr-list { top: auto; bottom: calc(100% + 4px); }
.vtr-float-top-right .vtr-sw-dropdown .vtr-list, .vtr-float-bottom-right .vtr-sw-dropdown .vtr-list { left: auto; right: 0; }

.vtr-float { position: fixed; z-index: 99990; background: var(--vtr-bg, #fff); color: var(--vtr-text, #1d2327); border: 1px solid var(--vtr-border, #dcdcde); border-radius: var(--vtr-radius, 6px); box-shadow: var(--vtr-shadow); padding: 3px; max-width: calc(100vw - 24px); }
.vtr-float .vtr-sw-dropdown > summary { border: 0; }
.vtr-float-top-left { top: 12px; left: 12px; }
.vtr-float-top-right { top: 12px; right: 12px; }
.vtr-float-bottom-left { bottom: 12px; left: 12px; }
.vtr-float-bottom-right { bottom: 12px; right: 12px; }
.admin-bar .vtr-float-top-left, .admin-bar .vtr-float-top-right { top: 44px; }
@media (max-width: 767px) { .vtr-hide-mobile { display: none !important; } }

.vtr-menu-item .vtr-sw a { padding: 4px 6px; }
.vtr-lang-link { display: inline-flex; align-items: center; gap: 6px; }
