/* Keep the Chipshow theme's dimensions and controls; restore visible keyboard focus. */
.yg-header-end select[data-csm-switch]:focus-visible,
yg-translate-mobile[data-csm-switch-mobile] .yg-translate-toggle:focus-visible,
yg-translate-mobile[data-csm-switch-mobile] button:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 3px;
}
.csm-language-select:disabled { opacity: 1; cursor: default; }
yg-translate-mobile[data-csm-switch-mobile] .yg-translate-toggle[aria-disabled="true"] { cursor: default; }
.yg-translate:has(.csm-switch-empty) { display: none !important; }
/* The theme suppresses link outlines; CSM language links must retain visible focus. */
:is(body.csm-edition .csm-switcher,.csm-language-menu .csm-switcher,.csm-switcher[data-csm-semantic]) a:focus-visible,
.csm-language-menu summary:focus-visible { outline: 2px solid currentColor !important; outline-offset: 3px; }
/* Native details keeps the same language slot and exposes copyable links without JavaScript. */
.csm-language-menu { position: relative; }
.csm-language-menu summary { cursor: pointer; min-height: 24px; min-width: 24px; }
.csm-language-menu .csm-switcher { position: absolute; z-index: 100; inset-inline-end: 0; min-width: max-content; background: var(--background, #fff); padding: 8px; }
:is(body.csm-edition .csm-switcher,.csm-language-menu .csm-switcher,.csm-switcher[data-csm-semantic]) a { display: inline-flex; align-items: center; min-height: 24px; min-width: 24px; padding: 4px; }
.csm-language-menu .csm-switcher a { display: flex; }
/* The theme hides its old mobile select subtree; the native links remain the single control. */
yg-translate-mobile:has(.csm-language-menu) > :is(.yg-translate-toggle,.yg-translate-options) { display: none; }
@media(pointer:coarse) { :is(body.csm-edition .csm-switcher,.csm-language-menu .csm-switcher,.csm-switcher[data-csm-semantic]) a,.csm-language-menu summary { min-height: 44px; min-width: 44px; } }
