#mdtl-floating-switcher{--mdtl-edge:12px;--mdtl-switcher-top:calc(12px + env(safe-area-inset-top,0px));position:fixed;top:var(--mdtl-switcher-top);left:calc(var(--mdtl-edge) + env(safe-area-inset-left,0px));z-index:1000;max-width:calc(100vw - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));font:16px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;direction:ltr;text-align:left;color:#172329}
body.admin-bar #mdtl-floating-switcher{--mdtl-switcher-top:calc(44px + env(safe-area-inset-top,0px))}
#mdtl-floating-switcher *,#mdtl-floating-switcher *::before,#mdtl-floating-switcher *::after{box-sizing:border-box}
#mdtl-floating-switcher .mdtl-floating-toggle{display:flex;align-items:center;justify-content:center;gap:9px;width:104px;min-width:104px;max-width:100%;min-height:44px;margin:0;padding:10px 12px;border:1px solid #e8e9eb;border-radius:5px;background:#fff;color:#172329;box-shadow:0 4px 18px #17232914;font:inherit;cursor:pointer;text-transform:none;letter-spacing:normal;line-height:1.4}
#mdtl-floating-switcher .mdtl-floating-code{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-size:16px;line-height:1}
#mdtl-floating-switcher .mdtl-floating-flag{display:block;flex:0 0 26px;width:26px;height:18px;max-width:none;margin:0;object-fit:cover;border-radius:1px}
#mdtl-floating-switcher .mdtl-floating-chevron{display:block;flex:0 0 8px;width:8px;height:8px;border-right:2px solid #6a6c70;border-bottom:2px solid #6a6c70;transform:rotate(45deg);margin:-4px 1px 0 2px}
#mdtl-floating-switcher .mdtl-floating-toggle[aria-expanded=true] .mdtl-floating-chevron{transform:rotate(225deg);margin:4px 1px 0 2px}
#mdtl-floating-switcher .mdtl-floating-options{position:absolute;left:0;top:calc(100% + 7px);display:block;min-width:190px;width:max-content;max-width:min(280px,calc(100vw - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));max-height:min(360px,calc(100vh - var(--mdtl-switcher-top) - 70px - env(safe-area-inset-bottom,0px)));max-height:min(360px,calc(100dvh - var(--mdtl-switcher-top) - 70px - env(safe-area-inset-bottom,0px)));overflow-y:auto;overscroll-behavior:contain;list-style:none;margin:0;padding:5px;border:1px solid #e8e9eb;border-radius:6px;background:#fff;box-shadow:0 8px 26px #1723291a}
#mdtl-floating-switcher .mdtl-floating-options[hidden]{display:none!important}
#mdtl-floating-switcher .mdtl-floating-options li{list-style:none;margin:0;padding:0;border:0}
#mdtl-floating-switcher .mdtl-floating-options a{display:flex;align-items:center;gap:11px;min-height:44px;padding:10px;border-radius:4px;color:#172329;background:transparent;font:inherit;text-decoration:none!important;white-space:normal;overflow-wrap:anywhere}
#mdtl-floating-switcher .mdtl-floating-options a:hover,#mdtl-floating-switcher .mdtl-floating-options a[aria-current=page]{background:#f0f5f5;color:#123d46}
#mdtl-floating-switcher .mdtl-floating-options a[aria-current=page]{font-weight:650}
#mdtl-floating-switcher .mdtl-floating-name{min-width:0}
#mdtl-floating-switcher button:focus-visible,#mdtl-floating-switcher a:focus-visible{outline:3px solid #e87938;outline-offset:2px}
@media(max-width:782px){body.admin-bar #mdtl-floating-switcher{--mdtl-switcher-top:calc(58px + env(safe-area-inset-top,0px))}}
#mdtl-floating-switcher[hidden]{display:none!important}
@media(max-width:420px){
 #mdtl-floating-switcher{--mdtl-switcher-top:calc(8px + env(safe-area-inset-top,0px))}
 body.admin-bar #mdtl-floating-switcher{--mdtl-switcher-top:calc(54px + env(safe-area-inset-top,0px))}
 body.mdtl-floating-switcher-active .logo-wrapper{padding-top:calc(60px + env(safe-area-inset-top,0px))!important}
}

/* Scoped legacy GoodLayers placement; untouched theme and fixed fallback elsewhere. */
#mdtl-floating-switcher.mdtl-in-header{position:relative;top:auto;left:auto;display:block;flex:0 0 auto;margin:0;max-width:none;z-index:1000;font-size:14px}
#mdtl-floating-switcher.mdtl-in-header .mdtl-floating-options{left:auto;right:0;max-height:min(360px,65vh)}
#mdtl-floating-switcher.mdtl-in-header .mdtl-floating-toggle{width:74px;min-width:74px;min-height:44px;padding:6px;gap:5px;border-color:transparent;border-radius:3px;background:transparent;box-shadow:none}
#mdtl-floating-switcher.mdtl-in-header .mdtl-floating-toggle:hover,#mdtl-floating-switcher.mdtl-in-header .mdtl-floating-toggle[aria-expanded=true]{background:#f0f5f5}
#mdtl-floating-switcher.mdtl-in-header .mdtl-floating-code{font-size:13px}
#mdtl-floating-switcher.mdtl-in-header .mdtl-floating-flag{flex:0 0 18px!important;width:18px!important;min-width:18px!important;max-width:18px!important;height:12px!important;min-height:12px!important;max-height:12px!important;object-fit:cover!important;margin:0!important}
#mdtl-floating-switcher.mdtl-in-header .mdtl-floating-chevron{flex-basis:6px;width:6px;height:6px;border-width:1px}
@media(min-width:768px){
 .gdl-navigation-wrapper .navigation-wrapper.mdtl-desktop-navigation{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:0 10px}
 .mdtl-desktop-navigation>.main-superfish-wrapper{flex:0 1 auto;min-width:0}
 .mdtl-desktop-navigation>.clear{display:none}
}
@media(max-width:767px){
 html body .header-wrapper .logo-wrapper.mdtl-logo-language-row.mdtl-logo-language-row{display:flex;align-items:center;justify-content:center;gap:8px;padding-top:0!important;box-sizing:border-box;width:calc(100% - 20px)!important;min-width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important}
 .logo-wrapper.mdtl-logo-language-row>a,.logo-wrapper.mdtl-logo-language-row>h1{flex:0 1 180px;min-width:0;width:180px;max-width:calc(100% - 82px)}
 .logo-wrapper.mdtl-logo-language-row>a>img,.logo-wrapper.mdtl-logo-language-row>h1>a>img{width:180px;max-width:100%;height:auto}
 #mdtl-floating-switcher.mdtl-mobile-header{float:none;margin:0;order:0}
 #mdtl-floating-switcher.mdtl-mobile-header .mdtl-floating-options{left:0;right:auto}
}
