.fyw-country-group{display:grid;gap:.38rem;align-content:end;min-width:0;}
.fyw-country-field{position:relative;min-width:0;--picker-bg:var(--paper,#fff);--picker-ink:var(--ink,#1b3937);--picker-line:var(--line,#b5c6c2);--picker-active:#e7f2ed;--picker-accent:#087467;}
:root[data-theme=dark] .fyw-country-field{--picker-bg:#1b2b2c;--picker-ink:#f3f6ed;--picker-line:#526865;--picker-active:#2d4643;--picker-accent:#8edec9;}
.ride-atlas .fyw-country-field{--picker-bg:var(--atlas-page);--picker-ink:var(--atlas-ink);--picker-line:var(--atlas-line);}
.fyw-country-field input[role=combobox]{min-width:0;width:100%;box-sizing:border-box;min-height:2.95rem;padding:.58rem 0;padding-inline:2.6rem 2rem;border:1px solid var(--picker-line);border-radius:.65rem;background:var(--picker-bg);color:var(--picker-ink);font:inherit;font-size:1rem;font-weight:550;text-overflow:ellipsis;}
.fyw-country-field input:focus-visible{outline:3px solid var(--picker-accent);outline-offset:2px;}
.fyw-country-flag,.fyw-country-arrow{position:absolute;top:50%;transform:translateY(-50%);pointer-events:none;line-height:1;}
.fyw-country-flag{inset-inline-start:.72rem;font-size:1.22rem;}
.fyw-country-arrow{inset-inline-end:.8rem;width:.45rem;height:.45rem;border-inline-end:2px solid var(--picker-ink);border-block-end:2px solid var(--picker-ink);transform:translateY(-75%) rotate(45deg);}
[dir=rtl] .fyw-country-arrow{transform:translateY(-75%) rotate(-45deg);}
.fyw-country-popup{position:absolute;inset-block-start:calc(100% + .34rem);inset-inline-start:0;z-index:25;width:max-content;min-width:min(100%,17rem);max-width:min(23rem,90vw);background:var(--picker-bg);color:var(--picker-ink);border:1px solid var(--picker-line);border-radius:.82rem;box-shadow:0 .65rem 1.8rem #152e312c;overflow:hidden;}
.fyw-country-list{max-height:min(17rem,42dvh);overflow:auto;overscroll-behavior:contain;}
.fyw-country-option,.fyw-country-empty{display:flex;align-items:center;gap:.6rem;min-height:2.75rem;box-sizing:border-box;padding:.55rem .8rem;color:var(--picker-ink);font-weight:550;font-size:.98rem;line-height:1.3;}
.fyw-country-option{cursor:pointer;text-align:start;}
.fyw-country-option-flag{font-size:1.2rem;line-height:1;}
.fyw-country-option[aria-selected=true]::after{content:'✓';margin-inline-start:auto;padding-inline-start:.65rem;color:var(--picker-accent);}
.fyw-country-option.is-active,.fyw-country-option:hover{background:var(--picker-active);}
.fyw-country-group [hidden]{display:none!important;}
.directory-scopes .fyw-country-group{display:flex;align-items:center;gap:.45rem;}
.directory-scopes .fyw-country-field{width:clamp(10rem,16vw,15rem);max-width:100%;}
.trail-filters .fyw-country-field{width:clamp(11rem,17vw,15rem);max-width:100%;}
@media(max-width:680px){.directory-scopes .fyw-country-group{display:grid;gap:.16rem;flex:1;}.directory-scopes .fyw-country-field{width:100%;}.fyw-country-popup{min-width:100%;width:100%;max-width:none;}.fyw-country-option{overflow-wrap:anywhere;}}
