/* The destination picker shares checkout's paper surface, fine borders and quiet type. */
.country-picker { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid #cecece; border-radius: 8px; background: #fff; font-size: 16px; text-align: left; }
.country-picker > :nth-child(2) { flex: 1; min-width: 0; }
.country-picker:hover { border-color: var(--ink); }
.country-picker[aria-invalid=true] { border-color: var(--error); }
.country-picker:focus-visible, .country-dialog input:focus-visible, .country-dialog button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: none; }
html[data-input-modality="pointer"] .country-dialog input:focus { outline: none; box-shadow: none; }
.country-picker .country-chevron { flex: none; color: var(--muted); }
.country-picker[aria-expanded=true] { border-color: var(--ink); }
.country-code { display: inline-grid; place-items: center; flex: none; width: 34px; height: 26px; overflow: hidden; border: 1px solid #d3d3d3; border-radius: 5px; background: #f4f4f4; color: #545454; }
.country-code img { display: block; width: 100%; height: 100%; object-fit: cover; }
.country-code-placeholder { border-color: transparent; background: transparent; color: var(--muted); }
.country-suggestion { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 0 10px; margin-top: 8px; padding: 10px 12px; background: #f2f2f2; border: 1px solid #e3e3e3; border-radius: 8px; }
.country-suggestion-actions { grid-column: 2; }
.country-suggestion strong { font-size: 14px; font-weight: 550; }
.country-suggestion p { font-size: 11px; line-height: 1.4; margin: 2px 0 6px; }
.country-suggestion-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.country-suggestion-actions .button { min-height: 36px; padding: 7px 12px; font-size: 12px; border-radius: 999px; }
.country-suggestion-actions .text-button { min-height: 36px; font-size: 12px; }
.country-open { overflow: hidden; }
.country-dialog { --bg: #fafafa; --surface: #f0f0f0; --ink: #181818; --muted: #656565; --line: #dedede; --accent: #181818; width: min(540px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--bg); box-shadow: 0 28px 100px #0003; }
.country-dialog::backdrop { background: #11111166; backdrop-filter: blur(4px); }
.country-dialog[open] { display: flex; flex-direction: column; }
.country-dialog .section-heading { flex: none; align-items: center; margin-bottom: 10px; gap: 16px; }
.country-dialog .section-heading > div, .country-dialog .section-heading > h2 { min-width: 0; }
.country-dialog .eyebrow { display: block; margin-bottom: 10px; font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.country-dialog .section-heading h2 { font-size: 30px; letter-spacing: -.04em; line-height: 1.15; }
.country-dialog .dialog-close { position: static; inset: auto; display: grid; place-items: center; align-self: center; flex: none; width: 44px; height: 44px; padding: 0; line-height: 1; color: inherit; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.country-dialog .dialog-close svg { display: block; pointer-events: none; }
.country-dialog .dialog-close:hover { background: var(--surface); border-color: var(--ink); }
.country-dialog-description { flex: none; margin-bottom: 24px; font-size: 14px; line-height: 1.5; }
.country-search-wrap { position: relative; flex: none; }
.country-dialog #countrySearch { width: 100%; min-height: 52px; height: 52px; margin: 0; padding: 12px 44px; border: 1px solid #cecece; border-radius: 8px; background: #fff; font-size: 16px; }
.country-search-icon { position: absolute; top: 17px; left: 14px; color: var(--muted); pointer-events: none; }
.country-dialog #countrySearch::-webkit-search-cancel-button { display: none; }
.country-search-clear { display: grid; place-items: center; position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.country-search-clear:hover { color: var(--ink); background: var(--surface); }
.country-results-heading { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 12px; padding: 20px 2px 8px; color: var(--muted); font-size: 12px; }
.country-keyboard-hint { white-space: nowrap; font-size: 11px; }
.country-results { flex: 1 1 auto; min-height: 0; max-height: min(44dvh, 340px); margin: 0 -6px; padding: 4px 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scroll-padding-block: 4px; }
.country-result { display: flex; align-items: center; width: 100%; min-height: 56px; gap: 12px; padding: 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 16px; }
.country-result > :nth-child(2) { flex: 1; }
.country-result:hover, .country-result:focus-visible { background: #ebebeb; }
.country-result + .country-result { margin-top: 2px; }
.country-result-name { min-width: 0; line-height: 1.35; }
.country-result-name small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.country-result[aria-pressed=true] { background: #ebebeb; }
.country-result[aria-pressed=true] .country-code { border-color: #c7c7c7; color: var(--ink); background: #f6f6f6; }
.country-result .country-selection-mark { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--ink); }
.country-dialog .empty-note { padding: 30px 12px; text-align: center; font-size: 13px; line-height: 1.6; }
.country-dialog .empty-note strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 16px; font-weight: 550; }
.country-dialog-help { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.country-dialog-help a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: var(--ink); }
@media (min-width: 1000px) {
  .country-suggestion { padding: 8px 10px; }
  .country-suggestion p { display: none; }
  .country-suggestion-actions { flex-wrap: nowrap; gap: 8px; margin-top: 4px; }
  .country-suggestion-actions .button { min-height: 30px; padding: 4px 9px; font-size: 11px; white-space: nowrap; }
  .country-suggestion-actions .text-button { min-height: 30px; font-size: 11px; white-space: nowrap; }
}
@media (max-width: 480px) {
  .country-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 20px; border-radius: 16px; }
  .country-dialog .section-heading h2 { font-size: clamp(22px, 7.5vw, 27px); }
  .country-dialog-description { margin-bottom: 20px; font-size: 13px; }
  .country-dialog .eyebrow { margin-bottom: 8px; }
  .country-results { max-height: 42dvh; }
  .country-result { font-size: 15px; gap: 10px; padding-inline: 8px; }
  .country-keyboard-hint { display: none; }
  .country-dialog-help { margin-top: 12px; padding-top: 10px; }
  .country-suggestion { padding: 10px 12px; }
  .country-suggestion-actions { gap: 4px 12px; }
}
@media (max-height: 520px) {
  .country-dialog { padding: 16px 20px; }
  .country-dialog .eyebrow, .country-dialog-description, .country-keyboard-hint { display: none; }
  .country-dialog .section-heading h2 { font-size: 24px; }
  .country-dialog .section-heading { margin-bottom: 12px; }
  .country-results-heading { padding-top: 10px; }
  .country-dialog-help { margin-top: 8px; padding-top: 4px; }
}

.asset-network { font-size: 12px; font-weight: 400; color: #656565; margin-left: 8px; }
.asset-badge { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: #f4f4f1; border: 1px solid #ebebe7; }
.asset-badge img, .asset-picker > img { display: block; width: 32px; height: 32px; object-fit: contain; border-radius: 50%; flex: none; }
.asset-result .country-result-name { min-width: 0; font-weight: 550; }
.asset-result .country-result-name small { overflow-wrap: anywhere; font-weight: 400; }
.asset-dialog #assetSearch { width: 100%; min-height: 52px; flex: none; padding: 12px 14px; font-size: 16px; border: 1px solid #cecece; border-radius: 8px; background: #fff; }
.asset-picker > span { line-height: 1.4; }
.asset-result { gap: 12px; }
