/* Wallet p102 — precise table gutters and a legible AML state. */

/* The activity row group inherited row padding from p96. That narrowed every
   transaction and made its asset/date cell look right-aligned. Keep padding
   on actual rows only, so the header and data share one horizontal contract. */
.wallet-premium.wallet65-ready .wallet-activity-table > .sx96-wallet-activity-row:not([role="row"]) {
  width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  box-sizing: border-box !important;
}

.wallet-premium.wallet65-ready .wallet-activity-table > .sx96-wallet-activity-row:not([role="row"]) > .divide-y {
  width: 100% !important;
}

.wallet-premium.wallet65-ready .wallet-activity-table [role="row"].sx96-wallet-activity-row {
  width: 100% !important;
  box-sizing: border-box !important;
}

.wallet-premium.wallet65-ready .wallet-activity-table [role="row"].sx96-wallet-activity-row > :first-child,
.wallet-premium.wallet65-ready .wallet-activity-table [role="row"].sx96-wallet-activity-row > :first-child > * {
  justify-self: start !important;
  width: 100% !important;
  text-align: left !important;
}

/* The AML message is a blocking account state, not low-priority metadata. */
.wallet-premium.wallet65-ready button.sx96-aml-card {
  border-color: rgba(255, 255, 255, .42) !important;
  background: #c92f3f !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(126, 12, 29, .24), inset 0 1px rgba(255, 255, 255, .16) !important;
}

.wallet-premium.wallet65-ready button.sx96-aml-card:hover {
  background: #d63848 !important;
}

.wallet-premium.wallet65-ready button.sx96-aml-card,
.wallet-premium.wallet65-ready button.sx96-aml-card * {
  color: #fff !important;
  opacity: 1 !important;
}

.wallet-premium.wallet65-ready button.sx96-aml-card svg {
  stroke: currentColor !important;
}

/* The legacy AML policy link is accidentally picked up by the p96 detector.
   It is not the account-state banner and must not render as a second alert. */
.wallet-premium.wallet65-ready a.sx96-aml-card {
  display: none !important;
}

@media (min-width: 980px) {
  /* Match the column header gutter to the Assets title, asset count and rows.
     Equal available width also makes every header sit directly over its data. */
  .wallet-premium.wallet65-ready .wallet-assets-panel [aria-label="Portfolio assets"] > [role="row"]:first-child {
    padding-right: 22px !important;
    padding-left: 22px !important;
    box-sizing: border-box !important;
  }
}
