/* Language selection is a customer-session preference, independent of admin locale. */
.r3-header-language { position: relative; }
.r3-header-language > summary { list-style: none; }
.r3-header-language > summary::-webkit-details-marker { display: none; }
.r3-header-language[open] > summary { background: #f1f5fd; color: #2456c7; }
.r3-language-short { position: absolute; right: 0; top: 0; background: #edf3ff; border-radius: 5px; padding: 0 3px; font: 600 10px/16px "Segoe UI", sans-serif; }
.r3-language-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 200px; padding: 8px; background: white; border: 1px solid var(--r3-line); border-radius: 12px; box-shadow: 0 16px 48px #1726401a; z-index: 1050; }
.r3-language-panel p { margin: 4px 8px 6px; color: var(--r3-muted); font-size: 12px; }
.r3-language-panel button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; background: transparent; border: 0; border-radius: 7px; color: var(--r3-ink); text-align: left; cursor: pointer; font-size: 14px; }
.r3-language-panel button:hover, .r3-language-panel button.active { background: #edf3ff; color: #2456c7; }
@media (max-width: 767px) {
    .r3-language-panel { position: fixed; top: 68px; right: 16px; }
}
.r3-header-language > summary:focus-visible,
.r3-language-panel button:focus-visible { outline: 2px solid #e1ebfa; outline-offset: 3px; }
