:root{
--sg-us:url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2019%2010'><rect%20width='19'%20height='10'%20fill='%23b22234'/><rect%20y='0.77'%20width='19'%20height='0.77'%20fill='%23fff'/><rect%20y='2.31'%20width='19'%20height='0.77'%20fill='%23fff'/><rect%20y='3.85'%20width='19'%20height='0.77'%20fill='%23fff'/><rect%20y='5.38'%20width='19'%20height='0.77'%20fill='%23fff'/><rect%20y='6.92'%20width='19'%20height='0.77'%20fill='%23fff'/><rect%20y='8.46'%20width='19'%20height='0.77'%20fill='%23fff'/><rect%20width='8'%20height='5.38'%20fill='%233c3b6e'/></svg>");
--sg-nl:url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2018%2012'><rect%20width='18'%20height='12'%20fill='%2321468B'/><rect%20width='18'%20height='8'%20fill='%23fff'/><rect%20width='18'%20height='4'%20fill='%23AE1C28'/></svg>");
--sg-fr:url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2018%2012'><rect%20width='18'%20height='12'%20fill='%23fff'/><rect%20width='6'%20height='12'%20fill='%230055A4'/><rect%20x='12'%20width='6'%20height='12'%20fill='%23EF4135'/></svg>");
--sg-it:url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2018%2012'><rect%20width='18'%20height='12'%20fill='%23fff'/><rect%20width='6'%20height='12'%20fill='%23009246'/><rect%20x='12'%20width='6'%20height='12'%20fill='%23CE2B37'/></svg>");
--sg-es:url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2018%2012'><rect%20width='18'%20height='12'%20fill='%23AA151B'/><rect%20y='3'%20width='18'%20height='6'%20fill='%23F1BF00'/></svg>");
--sg-pl:url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2018%2012'><rect%20width='18'%20height='12'%20fill='%23DC143C'/><rect%20width='18'%20height='6'%20fill='%23fff'/></svg>");
--sg-gb:url("https://suppligator.com/wp-content/plugins/sitepress-multilingual-cms/res/flags/en.svg");
}
.wpml-ls-item-en > a > img{content:var(--sg-us)!important}
.wpml-ls-item-nl > a > img{content:var(--sg-nl)!important}
.wpml-ls-item-fr > a > img{content:var(--sg-fr)!important}
.wpml-ls-item-it > a > img{content:var(--sg-it)!important}
.wpml-ls-item-es > a > img{content:var(--sg-es)!important}
.wpml-ls-item-pl > a > img{content:var(--sg-pl)!important}
.wpml-ls-item-gb > a > img{content:var(--sg-gb)!important}

/* ---- Clean styling (Suppligator look) ---- */
.wpml-ls-legacy-dropdown{width:auto!important;font-size:14px}
.wpml-ls-legacy-dropdown ul{margin:0;padding:0}
.wpml-ls-legacy-dropdown a{border:0!important;background:transparent!important;color:#181818!important;box-shadow:none!important}
.wpml-ls-legacy-dropdown img{width:26px!important;height:17px!important;min-width:26px;border-radius:3px;display:block;box-shadow:0 0 0 1px rgba(0,0,0,.08)}

/* Toggle = rounded pill with flag + chevron */
.wpml-ls-legacy-dropdown .wpml-ls-item{position:relative}
.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle{position:relative;display:flex;align-items:center;gap:8px;border:1px solid #e1e5ea!important;border-radius:30px!important;padding:6px 12px 6px 10px!important;transition:border-color .15s}
.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle:hover{border-color:#2f9689!important}
.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle::after{content:""!important;position:static!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;display:inline-block;flex:0 0 auto;width:7px;height:7px;border:0!important;border-right:2px solid #838a91!important;border-bottom:2px solid #838a91!important;border-radius:0!important;transform:rotate(45deg);margin:-3px 0 0 0!important;background:none!important}
/* invisible hover bridge so the menu doesn't close in the gap */
.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle::before{content:"";position:absolute;left:0;right:0;top:100%;height:14px;background:none}

/* Dropdown panel */
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu{display:block!important;position:absolute;z-index:60;right:0;top:100%;margin-top:6px!important;min-width:100%;background:#fff!important;border:1px solid #e1e5ea!important;border-radius:12px!important;box-shadow:0 8px 24px rgba(0,0,0,.12)!important;padding:5px!important;overflow:hidden}
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu li{display:block;float:none;width:auto}
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu a{display:flex!important;align-items:center;justify-content:center;padding:8px 14px!important;border-radius:8px!important}
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:hover{background:#f0f3f6!important}