/* Language switcher, modelled on the Weglot "default" dropdown the WP site used
   (fixed bottom-right, flag + language name, opens upward). Pure CSS: the
   hidden checkbox toggles the list. */
.country-selector{z-index:9999;text-align:left;position:fixed;bottom:0;right:40px;display:inline-block;width:auto;background:#fff;font-size:13px}
.country-selector input{display:none!important}
.country-selector ul{position:absolute;bottom:100%;left:0;min-width:100%;margin:0;padding:0;list-style:none;border:1px solid #ebeef0;background:#fff;box-sizing:border-box;display:none}
.country-selector li{margin:0;padding:0;width:100%}
.country-selector input:checked~ul{display:block}
.country-selector a,.country-selector .wglanguage-name{display:block;height:37px;line-height:36px;padding:0 10px;box-sizing:border-box;white-space:nowrap;color:#000;text-decoration:none;cursor:pointer;user-select:none}
.country-selector .wgcurrent{display:block;margin:0;border:1px solid #e0e0e0;cursor:pointer}
.country-selector .wgcurrent .wglanguage-name{padding-right:40px}
.country-selector .wgcurrent:after{content:"";position:absolute;top:15px;right:12px;width:7px;height:7px;border-right:2px solid #555;border-bottom:2px solid #555;transform:rotate(-135deg);transition:transform .2s}
.country-selector input:checked~.wgcurrent:after{transform:rotate(45deg);top:11px}
.country-selector a:hover{background:#f5f5f5}
.weglot-flags>a:before,.weglot-flags>.wglanguage-name:before{content:"";display:inline-block;width:30px;height:20px;margin-right:10px;vertical-align:middle;background-size:cover;background-position:center}
.weglot-flags.wg-en>a:before,.weglot-flags.wg-en>.wglanguage-name:before{background-image:url(../flags/us.svg)}
.weglot-flags.wg-es>a:before,.weglot-flags.wg-es>.wglanguage-name:before{background-image:url(../flags/es.svg)}
