
/* =========================================================
   AML SCREENING MODAL
   ========================================================= */

.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.wallet-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.wallet-modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(15, 23, 42, 0.58);

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.wallet-modal-card {
  position: relative;
  z-index: 1;

  width: min(590px, calc(100vw - 32px));

  background: #ffffff;
  color: #172033;

  border-radius: 18px;

  padding: 30px 34px 34px;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.25),
    0 8px 30px rgba(0, 0, 0, 0.12);

  transform: translateY(0) scale(1);

  animation: walletModalIn 0.2s ease-out;
}

.wallet-modal.hidden .wallet-modal-card {
  animation: none;
}

@keyframes walletModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* =========================================================
   TITLE
   ========================================================= */

.wallet-modal-title {
  text-align: center;
  padding: 0 35px 12px;
}

.wallet-modal-title h2 {
  margin: 0;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;

  color: #202532;
}


/* =========================================================
   SUBTITLE
   ========================================================= */

.wallet-modal-subtitle {
  margin: 8px auto 20px;

  max-width: 460px;

  text-align: center;

  color: #697180;

  font-size: 13px;
  line-height: 1.6;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.wallet-modal-close {
  position: absolute;

  top: 16px;
  right: 18px;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  background: transparent;

  color: #626a78;

  font-size: 27px;
  line-height: 1;

  border-radius: 8px;

  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.wallet-modal-close:hover {
  background: #f2f4f7;
  color: #111827;
}


/* =========================================================
   SCREENING OPTIONS
   ========================================================= */

.wallet-options {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 16px;

  margin-bottom: 22px;
}

.wallet-option {
  position: relative;

  min-height: 122px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 12px;

  border: 1px solid #e6e9ee;
  border-radius: 12px;

  background: #f8f9fb;

  color: #252b36;

  cursor: pointer;

  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.wallet-option:hover {
  border-color: #cfd5df;

  background: #f5f7fa;

  transform: translateY(-1px);
}

.wallet-option.selected {
  border-color: #dbe8f8;

  background: #edf5ff;

  box-shadow:
    inset 0 0 0 1px
    rgba(58, 130, 246, 0.04);
}


/* =========================================================
   WALLET ICONS
   ========================================================= */

.wallet-icon {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  flex-shrink: 0;
}

.address-icon {
  background:
    linear-gradient(
      135deg,
      #2563eb,
      #1d4ed8
    );

  color: white;

  font-size: 22px;
  font-weight: 800;
}

.transaction-icon {
  background: #eef2ff;

  color: #4338ca;

  font-size: 21px;
  font-weight: 700;
}

.qr-icon {
  background: #f0fdf4;

  color: #15803d;

  font-size: 22px;
  font-weight: 700;
}


/* =========================================================
   OPTION NAME
   ========================================================= */

.wallet-option-name {
  font-size: 14px;

  line-height: 1;

  font-weight: 600;
}


/* =========================================================
   SELECTED CHECK
   ========================================================= */

.wallet-selected {
  position: absolute;

  top: 10px;
  right: 10px;

  width: 17px;
  height: 17px;

  display: none;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #246bd6;

  color: #fff;

  font-size: 10px;

  font-weight: 800;
}

.wallet-option.selected .wallet-selected {
  display: flex;
}


/* =========================================================
   INPUT WRAPPER
   ========================================================= */

.screening-input-wrap {
  margin-bottom: 18px;
}

.screening-input-wrap label {
  display: block;

  margin-bottom: 7px;

  color: #343b49;

  font-size: 12px;

  font-weight: 600;
}


/* =========================================================
   INPUT
   ========================================================= */

.screening-input {
  width: 100%;
  height: 48px;

  box-sizing: border-box;

  padding: 0 14px;

  border: 1px solid #dfe3e8;

  border-radius: 8px;

  background: #fff;

  color: #172033;

  font-family: inherit;

  font-size: 13px;

  outline: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.screening-input:focus {
  border-color: #3b82f6;

  box-shadow:
    0 0 0 3px
    rgba(59, 130, 246, 0.12);
}


/* =========================================================
   ACCESS CODE SECTION
   ========================================================= */

.access-code-wrap {
  margin-bottom: 18px;
}

.access-code-wrap[hidden] {
  display: none;
}

.access-code-wrap label {
  display: block;

  margin-bottom: 7px;

  color: #343b49;

  font-size: 12px;

  font-weight: 600;
}

.access-code-help {
  margin: 7px 0 0;

  color: #697180;

  font-size: 11px;

  line-height: 1.5;
}


/* =========================================================
   BUTTON
   ========================================================= */

.wallet-connect-btn {
  width: 100%;

  height: 48px;

  border: 0;

  border-radius: 8px;

  background: #111111;

  color: #ffffff;

  font-family: inherit;

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.15s ease,
    transform 0.15s ease,
    opacity 0.15s ease;
}

.wallet-connect-btn:hover {
  background: #252525;
}

.wallet-connect-btn:active {
  transform: scale(0.99);
}

.wallet-connect-btn:disabled {
  opacity: 0.55;

  cursor: not-allowed;
}


/* =========================================================
   TERMS
   ========================================================= */

.wallet-terms {
  margin: 18px 0 0;

  text-align: center;

  color: #697180;

  font-size: 11px;

  line-height: 1.7;
}

.wallet-terms a {
  margin-left: 5px;

  color: #2563eb;

  text-decoration: none;
}

.wallet-terms a:hover {
  text-decoration: underline;
}


/* =========================================================
   INSTALL / INFO TEXT
   ========================================================= */

.wallet-install {
  margin: 18px 0 0;

  padding: 10px 12px;

  border-radius: 8px;

  background: #f8fafc;

  text-align: center;

  color: #697180;

  font-size: 11px;

  line-height: 1.6;
}


/* =========================================================
   BODY LOCK
   ========================================================= */

body.wallet-modal-open {
  overflow: hidden;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .wallet-modal {
    padding: 14px;
  }

  .wallet-modal-card {
    width: min(100%, 430px);

    padding: 25px 20px 25px;

    border-radius: 16px;
  }

  .wallet-options {
    grid-template-columns: 1fr;

    gap: 10px;

    margin-bottom: 20px;
  }

  .wallet-option {
    min-height: 72px;

    flex-direction: row;

    justify-content: flex-start;

    padding: 10px 16px;
  }

  .wallet-icon {
    width: 42px;
    height: 42px;
  }

  .wallet-selected {
    top: 50%;
    right: 14px;

    transform: translateY(-50%);
  }

}

.screening-input.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10) !important;
}

.screening-input.input-valid {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.10) !important;
}


