.country-select { --country-bg: #fff; --country-fg: #253248; --country-muted: #5b687b; --country-line: #b3becd; --country-hover: #edf4ff; --country-accent: #2563eb; position: relative; text-align: left; width: 100%; }
body.storefront .country-select { --country-bg: #101923; --country-fg: #e8f0fb; --country-muted: #a7b8ce; --country-line: #526a88; --country-hover: #1b304b; --country-accent: #9cd6ff; }
.country-select [hidden] { display: none !important; }
.country-select .country-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--country-line); border-radius: 6px; background: var(--country-bg); color: var(--country-fg); font: inherit; line-height: 1.5; text-align: left; cursor: pointer; }
.country-select .country-select-trigger:focus-visible,.country-select .country-select-search:focus { outline: 2px solid var(--country-accent); outline-offset: 2px; }
.country-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-select-chevron { flex-shrink: 0; color: var(--country-accent); }
.country-select .country-select-popup { position: absolute; inset: calc(100% + 6px) 0 auto; z-index: 1050; padding: .65rem; border: 1px solid var(--country-line); border-radius: 8px; background: var(--country-bg); color: var(--country-fg); box-shadow: 0 16px 40px #0004; }
.country-select .country-select-search { display: block; width: 100%; min-height: 44px; margin: 0 0 .5rem; padding: .6rem .75rem; border: 1px solid var(--country-line); border-radius: 4px; background: var(--country-bg); color: var(--country-fg); font: inherit; }
.country-select .country-select-popup.is-above { inset: auto 0 calc(100% + 6px); }
.country-select .country-select-search::placeholder { color: var(--country-muted); opacity: 1; }
.country-select-list { max-height: min(300px,42dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.country-select .country-select-group-title { margin: .4rem 0; padding: .25rem .6rem; font-size: .75rem; color: var(--country-muted); font-weight: 700; }
.country-select-group + .country-select-group { border-top: 1px solid var(--country-line); margin-top: .5rem; padding-top: .25rem; }
.country-select .country-select-option { display: block; width: 100%; min-height: 44px; padding: .6rem; border: 0; border-radius: 3px; background: transparent; color: var(--country-fg); font: inherit; line-height: 1.5; text-align: left; cursor: pointer; }
.country-select .country-select-option:is(:hover,.is-active) { background: var(--country-hover); color: var(--country-fg); }
.country-select .country-select-option[aria-selected="true"] { color: var(--country-accent); font-weight: 700; }
.country-select .country-select-empty { margin: .5rem; color: var(--country-muted); font-size: .875rem; }
