/* A phone number: the country code as an addon. Options hold text only, so the
   flags are emoji, and Chromium on Windows draws those as letters without this
   font (Twemoji, CC-BY 4.0). unicode-range keeps it off pages with no flag. With
   JavaScript on, the select turns invisible behind a button naming flag and code,
   which opens a list the visitor can filter. */
@font-face {
  font-family: 'Twemoji Country Flags';
  src: url('TwemojiCountryFlags.woff2') format('woff2');
  unicode-range: U+1F1E6-1F1FF;
  font-display: swap;
}
.phone-group { position: relative; display: flex; min-width: 0; font-family: 'Twemoji Country Flags', 'Open Sans', 'Helvetica', sans-serif, 'Arial'; }
.phone-group > .form-control { position: relative; flex: 1; width: auto; min-width: 0; border-radius: 0 4px 4px 0; }
.phone-group > .form-control:focus { z-index: 2; }
.phone-code { position: relative; flex: none; width: 122px; margin-right: -1px; }
.phone-code select.form-control { padding-left: 10px; padding-right: 4px; border-radius: 4px 0 0 4px; }
.phone-code button { display: none; }
.phone-code.is-compact select { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
.phone-code.is-compact button {
  display: flex; align-items: center; position: relative; width: 100%; height: 34px; padding: 0 26px 0 12px; font: inherit; font-size: 14px; color: #555; white-space: nowrap;
  background: #fff; border: 1px solid #ccc; border-radius: 4px 0 0 4px; cursor: pointer; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.phone-code.is-compact button::after {
  content: ''; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border: solid #777; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.phone-code.is-compact button:focus, .phone-code.is-compact button[aria-expanded="true"] { border-color: #66afe9; outline: 0; box-shadow: 0 0 8px rgba(102, 175, 233, .6); }
.phone-code:focus-within { z-index: 1; }
.code-picker { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10; display: grid; grid-gap: 6px; padding: 8px; background: #fff; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 6px 12px rgba(0, 0, 0, .175); }
.code-picker[hidden] { display: none; }
.code-picker ul { position: relative; margin: 0; padding: 0; list-style: none; max-height: 240px; overflow-y: auto; }
.code-picker li { padding: 6px 8px; border-radius: 4px; line-height: 1.4; cursor: pointer; }
.code-picker li[hidden] { display: none; }
.code-picker li:hover, .code-picker li.is-active { background: #f5f5f5; }
.code-picker li[aria-selected="true"] { font-weight: 700; }
.code-picker p { margin: 0; padding: 6px 8px; }
.code-picker p[hidden] { display: none; }
