/* WalletConnect + mobile wallet sheet */

:root {
  --w3m-z-index: 2147483646;
  --wcm-z-index: 2147483646;
}

wcm-modal,
w3m-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2147483646 !important;
}

.swal2-container {
  z-index: 2147483000 !important;
}

html.wc-modal-lock .vg-app,
html.wc-modal-lock .vg-shell {
  pointer-events: none !important;
}

html.wc-modal-lock,
html.wc-modal-lock body {
  overflow: hidden !important;
  touch-action: none;
}

.wc-ios-sheet {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
}

.wc-ios-sheet[hidden] {
  display: none !important;
}

.wc-ios-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.wc-ios-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: min(85vh, 640px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #141821;
  color: #eef2ff;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  animation: wc-ios-slide-up 0.28s ease-out;
}

@keyframes wc-ios-slide-up {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.wc-ios-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wc-ios-sheet-head h3 {
  margin: 0;
  font: 600 18px/1.3 system-ui, -apple-system, sans-serif;
}

.wc-ios-sheet-close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #eef2ff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
}

.wc-ios-sheet-note {
  margin: 0 0 14px;
  font: 400 13px/1.45 system-ui, -apple-system, sans-serif;
  color: rgba(238, 242, 255, 0.72);
}

.wc-ios-wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.wc-ios-wallet-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef2ff;
  font: 500 12px/1.2 system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.wc-ios-wallet-btn:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.1);
}

.wc-ios-wallet-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 16px/1 system-ui, -apple-system, sans-serif;
}
