/* LingoBridge language switcher. Inherits colours from the theme where possible. */
.lb-switcher { font: inherit; line-height: 1.4; }
.lb-switcher ul { list-style: none; margin: 0; padding: 0; }
.lb-switcher a { text-decoration: none; color: inherit; display: block; padding: .4em .8em; }
.lb-switcher a:hover, .lb-switcher a:focus-visible { background: rgba(127, 127, 127, .15); }
.lb-switcher .lb-current > a { font-weight: 600; }

/* inline: Español | Français */
.lb-style-inline .lb-list { display: flex; flex-wrap: wrap; gap: .25em 1em; }
.lb-style-inline a { display: inline; padding: 0; }
.lb-style-inline a:hover { background: none; text-decoration: underline; }

/* dropdown (no JavaScript, uses <details>) */
.lb-details { position: relative; display: inline-block; }
.lb-details > summary { list-style: none; cursor: pointer; padding: .45em .9em; border: 1px solid rgba(127, 127, 127, .4); border-radius: 6px; background: #fff; color: #1d2327; }
.lb-details > summary::-webkit-details-marker { display: none; }
.lb-details > summary::after { content: "\25BE"; margin-inline-start: .5em; }
.lb-details .lb-list { position: absolute; z-index: 99999; min-width: 100%; margin-top: 4px; background: #fff; color: #1d2327; border: 1px solid rgba(127, 127, 127, .4); border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.lb-details .lb-list a { white-space: nowrap; }

/* floating button */
.lb-floating { position: fixed; z-index: 99998; margin: 16px; }
.lb-pos-bottom-right { right: 0; bottom: 0; }
.lb-pos-bottom-left { left: 0; bottom: 0; }
.lb-pos-top-right { right: 0; top: 0; }
.lb-pos-top-left { left: 0; top: 0; }
.lb-pos-bottom-right .lb-list, .lb-pos-bottom-left .lb-list { bottom: 100%; margin-bottom: 4px; margin-top: 0; }
.lb-pos-bottom-right .lb-list, .lb-pos-top-right .lb-list { right: 0; }
.lb-floating .lb-details > summary { box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
body.admin-bar .lb-pos-top-right, body.admin-bar .lb-pos-top-left { top: 32px; }
