/* Centre the existing swap control and its native SVG without changing its handler. */
html body[data-sk-page=home] [data-testid=exchange-calculator]>div:has([data-testid=from-amount-input]) {
  margin-bottom: 0 !important;
}
html body[data-sk-page=home] [data-testid=exchange-calculator]>div:has(>[data-testid=swap-btn]) {
  display: flex !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: -4px !important;
  margin-bottom: -4px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  justify-content: center !important;
  align-items: center !important;
}
html body[data-sk-page=home] [data-testid=swap-btn] {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  gap: 0 !important;
  flex-shrink: 0;
}
html body[data-sk-page=home] [data-testid=swap-btn]::before,
html body[data-sk-page=home] [data-testid=swap-btn]::after { display: none !important; }
html body[data-sk-page=home] [data-testid=swap-btn]>svg { display: block; margin: 0 !important; flex-shrink: 0; }

@media (max-width: 767px) {
  html body[data-sk-page=home] [data-radix-popper-content-wrapper][data-sk-currency-sheet] {
    position: fixed !important;
    inset: auto 0 var(--sk-sheet-bottom, 0px) !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    z-index: 1001 !important;
    pointer-events: auto !important;
  }
  html body[data-sk-page=home] [data-sk-currency-sheet] [data-testid=currency-selector-popover] {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    max-height: min(80dvh, calc(var(--sk-sheet-height, 100dvh) - 16px)) !important;
    height: min(650px, 80dvh, calc(var(--sk-sheet-height, 100dvh) - 16px)) !important;
    margin: 0 !important;
    padding: 0 0 env(safe-area-inset-bottom, 0px) !important;
    overflow: hidden !important;
    border: 1px solid #b6cce7 !important;
    border-bottom: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    box-shadow: 0 -15px 55px #0d2e5b30 !important;
    background: #fff !important;
    color: #173555 !important;
    animation: none !important;
    transform: none !important;
    overscroll-behavior: contain;
  }
  html body[data-sk-page=home] [data-sk-currency-sheet] .sk-mobile-currency-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 17px 10px;
    background: #fff;
  }
  html body[data-sk-page=home] [data-sk-currency-sheet] .sk-mobile-currency-header h2 {
    font-family: Onest, sans-serif;
    font-size: 17px !important;
    font-weight: 650;
    color: #173555 !important;
    margin: 0 !important;
    line-height: 1.4;
    letter-spacing: -.025em;
  }
  html body[data-sk-page=home] [data-sk-currency-sheet] .sk-mobile-currency-header p {
    font-family: Onest, sans-serif;
    margin: 4px 0 0;
    font-size: 11px;
    color: #536d8b;
  }
  html body[data-sk-page=home] [data-sk-currency-sheet] [data-testid=mobile-currency-close] {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid #d1dfef;
    border-radius: 12px;
    background: #edf4fd;
    color: #34577c;
    flex: 0 0 auto;
  }
  html body[data-sk-page=home] [data-sk-currency-sheet] [data-testid=mobile-currency-close] svg { width: 19px; height: 19px; }
  html body[data-sk-page=home] [data-sk-currency-sheet] .sk-mobile-currency-search {
    flex: 0 0 auto;
    padding: 9px 16px 14px !important;
    background: #fff;
    border-bottom-color: #dce6f2 !important;
  }
  html body[data-sk-page=home] [data-sk-currency-sheet] [data-testid=currency-search-input] {
    width: 100%;
    min-height: 46px !important;
    font-size: 16px !important;
    background: #edf4ff !important;
    border-color: #abc4e6 !important;
    color: #1a3e67 !important;
  }
  html body[data-sk-page=home] [data-sk-currency-sheet] .sk-mobile-currency-list {
    flex: 1 1 auto;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  html body[data-sk-page=home] [data-sk-currency-sheet] [data-testid^=currency-option-] {
    width: 100% !important;
    min-height: 78px !important;
    padding: 12px 18px !important;
    gap: 12px !important;
  }
  html body[data-sk-page=home] [data-sk-currency-sheet] [data-testid^=currency-option-]>div.flex-1>div:nth-child(2),
  html body[data-sk-page=home] [data-sk-currency-sheet] [data-testid^=currency-option-]>div:last-child:not(.flex-1) { color: #526b8b !important; }
  html body[data-sk-page=home] [data-sk-currency-sheet] .sk-network-option { font-size: 11px !important; color: #285d9d !important; }
  html body[data-sk-page=home] .sk-mobile-currency-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #0b24467a;
    touch-action: none;
  }
  html body[data-sk-page=home].sk-currency-sheet-open [data-testid=chat-open-btn] { visibility: hidden !important; pointer-events: none !important; }
}
@media (max-width: 767px) and (max-height: 450px) {
  html body[data-sk-page=home] [data-sk-currency-sheet] [data-testid=currency-selector-popover] { height: calc(var(--sk-sheet-height, 100dvh) - 12px) !important; max-height: calc(var(--sk-sheet-height, 100dvh) - 12px) !important; }
  html body[data-sk-page=home] [data-sk-currency-sheet] .sk-mobile-currency-header { padding-top: 9px; padding-bottom: 4px; }
  html body[data-sk-page=home] [data-sk-currency-sheet] .sk-mobile-currency-header p { display: none; }
  html body[data-sk-page=home] [data-sk-currency-sheet] .sk-mobile-currency-search { padding-top: 4px !important; padding-bottom: 9px !important; }
}
