/* BYN.by exchangers UX v2.9.0 — scoped overrides for /exchangers/. */
.exchange-shell {
  --exchange-panel-border: rgba(15, 31, 61, .12);
  --exchange-panel-bg: rgba(255, 255, 255, .96);
  --exchange-muted: #65758b;
  --exchange-blue: #155eef;
  --exchange-navy: #081634;
  overflow: visible;
}

.exchange-shell .exchange-channel-tabs,
.exchange-shell .exchange-view-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.exchange-shell .exchange-channel-tabs {
  margin-bottom: 12px;
}

.exchange-shell .exchange-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(120px, .7fr) minmax(160px, .85fr) minmax(240px, 1.35fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--exchange-panel-border);
  border-radius: 18px;
  background: var(--exchange-panel-bg);
  box-shadow: 0 8px 30px rgba(8, 22, 52, .06);
}

.exchange-shell .exchange-filters .ui-field {
  min-width: 0;
}

.exchange-shell .exchange-filters select,
.exchange-shell .exchange-filters input {
  width: 100%;
}

.exchange-shell .exchange-advanced {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.exchange-shell .exchange-advanced .ui-field {
  min-width: 220px;
  flex: 0 1 300px;
}

.exchange-shell .exchange-advanced .neutral {
  margin-left: auto;
  font-size: 12px;
  color: var(--exchange-muted);
}

.exchange-shell .exchange-view-tabs {
  margin: 2px 0 12px;
}

.exchange-shell .exchange-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.exchange-shell .exchange-results {
  max-height: min(72vh, 780px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--exchange-panel-border);
  border-radius: 18px;
  background: #fff;
  scrollbar-gutter: stable;
}

.exchange-shell .exchange-results-head {
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 14px 15px;
  border-bottom: 1px solid var(--exchange-panel-border);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.exchange-shell .exchange-results-head strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.exchange-shell .exchange-results-head [data-exchange-count] {
  display: block;
  margin-top: 4px;
  color: var(--exchange-muted);
  font-size: 12px;
}

.exchange-shell [data-exchange-list] {
  padding: 8px;
}

.exchange-shell .bank-card {
  margin: 0 0 8px;
  padding: 12px;
  border: 1px solid rgba(15, 31, 61, .10);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.exchange-shell .bank-card:hover,
.exchange-shell .bank-card:focus-within,
.exchange-shell .bank-card.active {
  border-color: rgba(21, 94, 239, .35);
  box-shadow: 0 8px 24px rgba(8, 22, 52, .08);
}

.exchange-shell .bank-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.exchange-shell .bank-card-top h3 {
  margin: 2px 0 3px;
  font-size: 15px;
  line-height: 1.25;
}

.exchange-shell .bank-card-top p {
  margin: 0;
  font-size: 12px;
  color: var(--exchange-muted);
}

.exchange-shell .bank-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  margin-right: 6px;
  border-radius: 999px;
  background: rgba(21, 94, 239, .09);
  color: var(--exchange-blue);
  font-size: 11px;
  font-weight: 700;
}

.exchange-shell .bank-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.exchange-shell .bank-map-btn,
.exchange-shell .map-fit-button {
  appearance: none;
  border: 1px solid rgba(21, 94, 239, .20);
  border-radius: 10px;
  background: rgba(255,255,255,.96);
  color: var(--exchange-blue);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.exchange-shell .bank-map-btn {
  padding: 8px 9px;
}

.exchange-shell .bank-map-btn:hover,
.exchange-shell .map-fit-button:hover {
  background: #f4f7ff;
  border-color: rgba(21, 94, 239, .42);
}

.exchange-shell .bank-rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 8px;
}

.exchange-shell .bank-rates > div {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7f9fc;
}

.exchange-shell .bank-rates > div.is-unavailable b {
  color: #8a97aa;
}

.exchange-shell .bank-toggle {
  width: 100%;
  min-height: 34px;
  border-radius: 10px;
}

.exchange-shell .branch-list {
  max-height: 360px;
  overflow: auto;
  margin-top: 8px;
  border-top: 1px solid rgba(15, 31, 61, .08);
  padding-top: 6px;
}

.exchange-shell .branch {
  border-radius: 10px;
}

.exchange-shell .exchange-map {
  position: sticky;
  top: 88px;
  min-height: 620px;
  height: min(72vh, 780px);
  overflow: hidden;
  border: 1px solid var(--exchange-panel-border);
  border-radius: 18px;
  background: #e9eef5;
  box-shadow: 0 12px 36px rgba(8, 22, 52, .10);
}

.exchange-shell .exchange-map-toolbar {
  position: absolute;
  z-index: 12;
  top: 12px;
  left: 12px;
  right: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.exchange-shell .exchange-map-summary {
  display: grid;
  gap: 2px;
  max-width: min(390px, 70%);
  padding: 10px 12px;
  border: 1px solid rgba(15, 31, 61, .11);
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 28px rgba(8,22,52,.12);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.exchange-shell .exchange-map-summary strong {
  font-size: 13px;
  line-height: 1.25;
}

.exchange-shell .exchange-map-summary span {
  font-size: 11px;
  color: var(--exchange-muted);
}

.exchange-shell .map-fit-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 11px;
  box-shadow: 0 8px 28px rgba(8,22,52,.12);
  pointer-events: auto;
}

.exchange-shell .map-controls {
  z-index: 13;
}

.exchange-shell .map-info {
  max-width: min(620px, calc(100% - 110px));
  border-radius: 11px;
  background: rgba(8, 22, 52, .88);
  color: #fff;
  box-shadow: 0 8px 24px rgba(8,22,52,.18);
}

.exchange-shell .map-marker.cluster {
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 6px 16px rgba(8,22,52,.25);
}

.exchange-shell .map-marker.cluster.sm { min-width: 40px; min-height: 40px; }
.exchange-shell .map-marker.cluster.md { min-width: 46px; min-height: 46px; }
.exchange-shell .map-marker.cluster.lg { min-width: 54px; min-height: 54px; }
.exchange-shell .map-marker.cluster.xl { min-width: 64px; min-height: 64px; }

.exchange-shell .map-marker.rate.unrated {
  min-width: 38px;
  background: rgba(255,255,255,.96);
  color: #75849a;
  border: 1px dashed #8c9aae;
  box-shadow: 0 4px 12px rgba(8,22,52,.12);
}

.exchange-shell .map-marker.rate.unrated.best {
  border-style: dashed;
}

@media (max-width: 1180px) {
  .exchange-shell .exchange-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .exchange-shell .exchange-filters > .ui-btn {
    min-height: 42px;
  }
  .exchange-shell .exchange-workspace {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .exchange-shell .exchange-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }
  .exchange-shell .exchange-advanced {
    grid-column: 1 / -1;
  }
  .exchange-shell .exchange-advanced .neutral {
    width: 100%;
    margin-left: 0;
  }
  .exchange-shell .exchange-workspace {
    display: block;
  }
  .exchange-shell .exchange-results {
    max-height: none;
    overflow: visible;
  }
  .exchange-shell .exchange-map {
    position: relative;
    top: auto;
    width: 100%;
    min-height: 500px;
    height: min(68vh, 680px);
  }
  .exchange-shell[data-mobile-view="list"] .exchange-map {
    display: none;
  }
  .exchange-shell[data-mobile-view="map"] .exchange-results {
    display: none;
  }
  .exchange-shell .exchange-view-tabs {
    position: sticky;
    top: 64px;
    z-index: 20;
    padding: 6px;
    margin-inline: -6px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 620px) {
  .exchange-shell .exchange-channel-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .exchange-shell .exchange-channel-tabs::-webkit-scrollbar { display: none; }
  .exchange-shell .exchange-filters {
    grid-template-columns: 1fr;
  }
  .exchange-shell .exchange-advanced {
    display: grid;
    grid-template-columns: 1fr;
  }
  .exchange-shell .exchange-advanced .ui-field {
    min-width: 0;
    width: 100%;
  }
  .exchange-shell .exchange-map {
    min-height: 430px;
    height: calc(100dvh - 210px);
    border-radius: 14px;
  }
  .exchange-shell .exchange-map-toolbar {
    right: 54px;
  }
  .exchange-shell .exchange-map-summary {
    max-width: 68%;
  }
  .exchange-shell .map-fit-button span {
    display: none;
  }
  .exchange-shell .bank-card-top {
    gap: 8px;
  }
  .exchange-shell .bank-card-actions .freshness {
    display: none;
  }
}


/* v2.8.0 map interaction layer */
.exchange-shell .exchange-map-actions { display:flex; align-items:flex-start; justify-content:flex-end; gap:8px; flex-wrap:wrap; pointer-events:auto; }
.exchange-shell .exchange-map-filter { display:inline-flex; padding:3px; border:1px solid rgba(15,31,61,.10); border-radius:12px; background:rgba(255,255,255,.94); box-shadow:0 8px 28px rgba(8,22,52,.10); }
.exchange-shell .exchange-map-filter button { appearance:none; border:0; border-radius:9px; padding:8px 10px; background:transparent; color:#56657a; font:inherit; font-size:11px; font-weight:700; cursor:pointer; }
.exchange-shell .exchange-map-filter button:hover { background:#f3f6fb; color:#155eef; }
.exchange-shell .exchange-map-filter button.active { background:#155eef; color:#fff; box-shadow:0 3px 10px rgba(21,94,239,.22); }
.exchange-shell .exchange-map-card { position:absolute; z-index:14; left:14px; bottom:42px; width:min(370px,calc(100% - 28px)); display:grid; gap:4px; padding:14px 42px 14px 14px; border:1px solid rgba(15,31,61,.12); border-radius:15px; background:rgba(255,255,255,.97); box-shadow:0 16px 42px rgba(8,22,52,.20); backdrop-filter:blur(14px); }
.exchange-shell .exchange-map-card[hidden] { display:none; }
.exchange-shell .exchange-map-card strong { font-size:13px; color:#155eef; }
.exchange-shell .exchange-map-card b { font-size:15px; line-height:1.3; color:#0f1f3d; }
.exchange-shell .exchange-map-card > span { color:#56657a; font-size:12px; line-height:1.35; }
.exchange-shell .exchange-map-card .exchange-map-card-rate { margin-top:4px; color:#0f1f3d; font-weight:700; }
.exchange-shell .exchange-map-card.is-unrated .exchange-map-card-rate { color:#7a8798; }
.exchange-shell .exchange-map-card small { color:#68778b; }
.exchange-shell .exchange-map-card-close { position:absolute; top:8px; right:8px; width:30px; height:30px; border:0; border-radius:50%; background:#f1f4f8; color:#47566b; font-size:20px; line-height:1; cursor:pointer; }
.exchange-shell .exchange-map-card-actions { display:flex; gap:8px; margin-top:8px; }
.exchange-shell .exchange-map-card-actions button, .exchange-shell .exchange-map-card-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:34px; padding:0 11px; border-radius:9px; border:1px solid rgba(21,94,239,.20); background:#fff; color:#155eef; text-decoration:none; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.exchange-shell .exchange-map-card-actions a { background:#155eef; color:#fff; border-color:#155eef; }
.exchange-shell .map-marker.rate.best { z-index:3; outline:3px solid rgba(30,180,120,.20); }
@media (max-width:900px) { .exchange-shell .exchange-map-toolbar { right:58px; } .exchange-shell .exchange-map-actions { max-width:72%; } .exchange-shell .exchange-map-filter { order:3; width:100%; justify-content:stretch; } .exchange-shell .exchange-map-filter button { flex:1 1 auto; } }
@media (max-width:620px) { .exchange-shell .exchange-map-toolbar { left:8px; right:52px; top:8px; gap:6px; } .exchange-shell .exchange-map-summary { max-width:100%; padding:8px 9px; } .exchange-shell .exchange-map-actions { max-width:100%; width:100%; gap:5px; } .exchange-shell .map-fit-button { padding:8px 9px; } .exchange-shell .exchange-map-filter { width:100%; } .exchange-shell .exchange-map-card { left:8px; bottom:34px; width:calc(100% - 16px); } }


/* Channel-aware UX v2.9.0 */
.exchange-shell .exchange-channel-context {
  margin: -2px 0 12px;
  padding: 11px 13px;
  border: 1px solid rgba(21,94,239,.14);
  border-radius: 12px;
  background: rgba(21,94,239,.055);
  color: #42536a;
  font-size: 13px;
  line-height: 1.45;
}
.exchange-shell .exchange-channel-context[hidden],
.exchange-shell [data-location-filter][hidden],
.exchange-shell [data-exchange-view-tabs][hidden],
.exchange-shell [data-exchange-map][hidden] { display: none !important; }
.exchange-shell[data-channel-layout="rate"] .exchange-filters {
  grid-template-columns: minmax(150px,.7fr) minmax(180px,.9fr) auto auto;
}
.exchange-shell[data-channel-layout="rate"] .exchange-advanced {
  grid-column: 1 / -1;
}
.exchange-shell .exchange-workspace.is-rate-only {
  display: block;
}
.exchange-shell .exchange-workspace.is-rate-only .exchange-results {
  max-height: none;
  overflow: visible;
}
.exchange-shell .exchange-workspace.is-rate-only [data-exchange-list] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}
.exchange-shell .exchange-workspace.is-rate-only .bank-card {
  margin: 0;
  min-height: 142px;
}
.exchange-shell .exchange-workspace.is-rate-only .bank-rates {
  margin-top: 14px;
}
.exchange-shell[data-channel-layout="rate"] .exchange-advanced .neutral {
  margin-left: 0;
}
@media (max-width: 820px) {
  .exchange-shell[data-channel-layout="rate"] .exchange-filters { grid-template-columns: 1fr 1fr; }
  .exchange-shell .exchange-workspace.is-rate-only [data-exchange-list] { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .exchange-shell[data-channel-layout="rate"] .exchange-filters { grid-template-columns: 1fr; }
}

/* BYN.BY exchangers fullscreen map v3.3.0 */
html.byn-map-fullscreen-open,
body.byn-map-fullscreen-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}
.exchange-shell .exchange-map.is-map-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #e9eef5;
}
.exchange-shell .exchange-map.is-map-fullscreen .exchange-map-toolbar {
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  right: max(64px, calc(env(safe-area-inset-right) + 52px));
}
.exchange-shell .exchange-map.is-map-fullscreen .map-controls {
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
}
.exchange-shell .exchange-map.is-map-fullscreen .map-info {
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  max-width: min(720px, calc(100vw - 24px));
}
.exchange-shell .exchange-map.is-map-fullscreen .map-attribution {
  right: max(10px, env(safe-area-inset-right));
  bottom: max(8px, env(safe-area-inset-bottom));
}
.exchange-shell .exchange-map.is-map-fullscreen .exchange-map-card {
  bottom: max(54px, calc(env(safe-area-inset-bottom) + 44px));
}
.exchange-shell .map-fullscreen-button[aria-pressed="true"] {
  background: #0f1f3d;
  border-color: #0f1f3d;
  color: #fff;
}
@media (max-width: 620px) {
  .exchange-shell .exchange-map.is-map-fullscreen .exchange-map-toolbar {
    left: max(8px, env(safe-area-inset-left));
    right: max(52px, calc(env(safe-area-inset-right) + 48px));
  }
  .exchange-shell .exchange-map.is-map-fullscreen .exchange-map-card {
    left: max(8px, env(safe-area-inset-left));
    width: calc(100% - max(16px, env(safe-area-inset-left) + env(safe-area-inset-right)));
  }
}

/* BYN.BY map mobile layout v3.4.0 — no JS/map projection changes.
 * Stack the map header instead of placing two over-wide flex children side by side.
 * Keep overlay controls clear of each other and preserve keyboard focus/touch targets.
 */
@media (max-width: 900px) {
  .exchange-shell,
  .exchange-shell .exchange-workspace,
  .exchange-shell .exchange-map {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }
  .exchange-shell .exchange-map-toolbar,
  .exchange-shell .exchange-map.is-map-fullscreen .exchange-map-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: stretch;
    justify-content: stretch;
    gap: 7px;
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    min-width: 0;
  }
  .exchange-shell .exchange-map-summary {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 8px 10px;
  }
  .exchange-shell .exchange-map-summary strong,
  .exchange-shell .exchange-map-summary span {
    overflow-wrap: anywhere;
  }
  .exchange-shell .exchange-map-actions {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 6px;
    pointer-events: auto;
  }
  .exchange-shell .exchange-map-filter {
    box-sizing: border-box;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    order: 0;
    width: 100%;
    min-width: 0;
    padding: 3px;
  }
  .exchange-shell .exchange-map-filter button {
    min-width: 0;
    min-height: 40px;
    padding: 7px 3px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: normal;
    font-size: clamp(11px, 2.8vw, 13px);
  }
  .exchange-shell .exchange-map-actions > .map-fit-button {
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 40px;
    width: 100%;
    padding: 7px 5px;
    margin: 0;
  }
  .exchange-shell .map-controls,
  .exchange-shell .exchange-map.is-map-fullscreen .map-controls {
    position: absolute;
    top: 176px;
    bottom: auto;
    left: auto;
    right: max(10px, env(safe-area-inset-right));
    z-index: 13;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .exchange-shell .map-controls button {
    box-sizing: border-box;
    min-width: 40px;
    min-height: 40px;
  }
  .exchange-shell .exchange-map.is-map-fullscreen .exchange-map-card {
    max-width: calc(100% - 20px);
  }
}
@media (max-width: 620px) {
  .exchange-shell .exchange-filters,
  .exchange-shell .exchange-advanced {
    min-width: 0;
    max-width: 100%;
  }
  .exchange-shell .exchange-filters > *,
  .exchange-shell .exchange-advanced > * {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }
  .exchange-shell .exchange-filters select,
  .exchange-shell .exchange-filters input:not([type="checkbox"]) {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .exchange-shell .exchange-advanced > label.ui-pill[data-location-filter] {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px 12px;
    white-space: normal;
    text-align: left;
  }
  .exchange-shell .exchange-advanced input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
  }
  .exchange-shell .exchange-advanced .neutral {
    min-width: 0;
    overflow-wrap: break-word;
  }
  .exchange-shell .exchange-map {
    width: 100%;
    height: max(470px, min(70dvh, 690px));
    min-height: 470px;
  }
  .exchange-shell .exchange-map-summary {
    padding: 8px 9px;
  }
  /* Keep the three action controls readable to assistive technologies,
     even when their text is visually compact on narrow displays. */
  .exchange-shell .exchange-map-actions > .map-fit-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .exchange-shell .exchange-map-actions > .map-fit-button i {
    font-size: 20px;
  }
  .exchange-shell .exchange-map-card,
  .exchange-shell .exchange-map.is-map-fullscreen .exchange-map-card {
    box-sizing: border-box;
    max-width: calc(100% - 16px);
  }
  .exchange-shell .exchange-view-tabs {
    max-width: 100%;
    min-width: 0;
  }
}

/* BYN.BY /exchangers/ mobile polish v3.5.0
 * Restore textual labels for action buttons when Phosphor icon font is absent.
 * Compact dismissible notices; point details live in the closable white card.
 */
@media (max-width: 900px) {
  .exchange-shell .exchange-map-actions > .map-fit-button {
    min-height: 44px;
    height: auto;
    padding: 7px 4px;
    line-height: 1.2;
    text-align: center;
  }
  .exchange-shell .exchange-map-actions > .map-fit-button i {
    display: none !important;
  }
  .exchange-shell .exchange-map-actions > .map-fit-button span {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    color: inherit;
  }
  .exchange-shell .map-info {
    /* Initial no-action hint is not an obstructive banner. */
    display: none !important;
    box-sizing: border-box;
    position: absolute;
    z-index: 18;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    max-height: 76px;
    overflow: hidden;
    padding: 9px 38px 9px 12px;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    cursor: pointer;
    touch-action: manipulation;
  }
  .exchange-shell .map-info.is-visible {
    display: block !important;
  }
  .exchange-shell .map-info.is-visible::after {
    content: "\00d7";
    position: absolute;
    right: 11px;
    top: 4px;
    font-family: system-ui, sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    color: white;
    pointer-events: none;
  }
  .exchange-shell .exchange-map-card,
  .exchange-shell .exchange-map.is-map-fullscreen .exchange-map-card {
    z-index: 24;
    max-height: min(47dvh, 340px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .exchange-shell .exchange-map-card > [data-map-card-address],
  .exchange-shell .exchange-map-card > [data-map-card-status] {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
  .exchange-shell .exchange-map-card-close { z-index: 2; }
}
@media (max-width: 360px) {
  .exchange-shell .exchange-map-actions > .map-fit-button span { font-size: 10px; }
}
