/*
 * Cash Time public completed-bank history repair.
 * Scope: public logged-out account cards only. The body marker and absence of the
 * authenticated cash-private-access surface prevent this from touching member UI.
 * The earlier base layer intentionally owns this component because earlier
 * important utility rules otherwise win over the public-profile stylesheet.
 */
@layer base {
  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 1rem 0 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(148, 163, 184, .34) !important;
    border-radius: 1rem !important;
    background: linear-gradient(116deg, rgba(6, 78, 59, .46), rgba(15, 23, 42, .72) 54%, rgba(6, 46, 31, .82)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 20px rgba(0, 0, 0, .2) !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-layout {
    display: grid !important;
    grid-template-columns: minmax(10rem, 11.25rem) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: .75rem 1rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 1rem 1.25rem !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-heading {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 .75rem 0 0 !important;
    border: 0 !important;
    border-right: 1px solid rgba(167, 243, 208, .2) !important;
    color: #a7f3d0 !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-heading p,
  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-heading span {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #a7f3d0 !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-metrics {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-metric {
    display: block !important;
    box-sizing: border-box !important;
    grid-column: auto !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: .5rem .55rem !important;
    overflow: hidden !important;
    border: 0 !important;
    border-right: 1px solid rgba(167, 243, 208, .14) !important;
    background: transparent !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-metric:last-child {
    border-right: 0 !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-metric p {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #b4d2b9 !important;
    font-size: .62rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-metric strong {
    display: block !important;
    min-width: 0 !important;
    margin: .25rem 0 0 !important;
    padding: 0 !important;
    color: #f1f5f9 !important;
    font-size: .84rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-next {
    color: #cbd5e1 !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-progress {
    display: block !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: .75rem 0 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-top: 1px solid rgba(167, 243, 208, .18) !important;
    background: transparent !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-progress-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .5rem !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 .45rem !important;
    padding: 0 !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-progress-head p {
    margin: 0 !important;
    color: #b4d2b9 !important;
    font-size: .62rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-progress-head strong {
    margin: 0 !important;
    color: #34d399 !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-progress-track {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: .75rem !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(167, 243, 208, .24) !important;
    border-radius: 9999px !important;
    background: rgba(2, 27, 18, .92) !important;
  }

  body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
  .cash-shell.cash-first-visual-exact
  article.nexo-account-card:not([data-cash-member-card])
  .cash-bank-strip.is-completed .cash-bank-progress-track > div {
    display: block !important;
    min-width: 0 !important;
    height: 100% !important;
    border-radius: inherit !important;
  }

  @media (max-width: 1050px) {
    body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
    .cash-shell.cash-first-visual-exact
    article.nexo-account-card:not([data-cash-member-card])
    .cash-bank-strip.is-completed .cash-bank-layout {
      grid-template-columns: minmax(7.1rem, 8.5rem) minmax(0, 1fr) !important;
      gap: .65rem .75rem !important;
      padding: .85rem .95rem !important;
    }
  }

  @media (max-width: 820px) {
    body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
    .cash-shell.cash-first-visual-exact
    article.nexo-account-card:not([data-cash-member-card])
    .cash-bank-strip.is-completed .cash-bank-layout {
      grid-template-columns: minmax(0, 1fr) !important;
      grid-template-rows: auto auto auto !important;
      row-gap: .65rem !important;
      padding: .85rem .95rem !important;
    }

    body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
    .cash-shell.cash-first-visual-exact
    article.nexo-account-card:not([data-cash-member-card])
    .cash-bank-strip.is-completed .cash-bank-heading {
      display: flex !important;
      flex-direction: row !important;
      align-items: baseline !important;
      justify-content: space-between !important;
      grid-column: 1 / -1 !important;
      grid-row: 1 !important;
      padding: 0 0 .45rem !important;
      border: 0 !important;
      border-bottom: 1px solid rgba(167, 243, 208, .2) !important;
    }

    body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
    .cash-shell.cash-first-visual-exact
    article.nexo-account-card:not([data-cash-member-card])
    .cash-bank-strip.is-completed .cash-bank-metrics {
      grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
      grid-column: 1 / -1 !important;
      grid-row: 2 !important;
    }

    body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
    .cash-shell.cash-first-visual-exact
    article.nexo-account-card:not([data-cash-member-card])
    .cash-bank-strip.is-completed .cash-bank-metric {
      grid-row: auto !important;
      padding: .5rem .35rem !important;
    }
  }

  @media (max-width: 639px) {
    body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
    .cash-shell.cash-first-visual-exact
    article.nexo-account-card:not([data-cash-member-card])
    .cash-bank-strip.is-completed .cash-bank-layout {
      grid-template-columns: minmax(0, 1fr) !important;
      grid-template-rows: auto auto auto !important;
      row-gap: .55rem !important;
      padding: .72rem .78rem !important;
    }

    body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
    .cash-shell.cash-first-visual-exact
    article.nexo-account-card:not([data-cash-member-card])
    .cash-bank-strip.is-completed .cash-bank-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      grid-column: 1 / -1 !important;
      grid-row: 2 !important;
      row-gap: .5rem !important;
    }

    body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
    .cash-shell.cash-first-visual-exact
    article.nexo-account-card:not([data-cash-member-card])
    .cash-bank-strip.is-completed .cash-bank-metric {
      grid-column: auto !important;
      grid-row: auto !important;
      padding: .5rem .35rem !important;
    }

    body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
    .cash-shell.cash-first-visual-exact
    article.nexo-account-card:not([data-cash-member-card])
    .cash-bank-strip.is-completed .cash-bank-metric:nth-child(odd) {
      border-right: 1px solid rgba(167, 243, 208, .14) !important;
    }

    body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
    .cash-shell.cash-first-visual-exact
    article.nexo-account-card:not([data-cash-member-card])
    .cash-bank-strip.is-completed .cash-bank-metric:nth-child(even) {
      border-right: 0 !important;
    }

    body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
    .cash-shell.cash-first-visual-exact
    article.nexo-account-card:not([data-cash-member-card])
    .cash-bank-strip.is-completed .cash-bank-metric:last-child {
      grid-column: 1 / -1 !important;
      border-right: 0 !important;
      border-top: 1px solid rgba(167, 243, 208, .14) !important;
    }

    body.cash-pasted11-profile-scope:not(:has(.cash-private-access))
    .cash-shell.cash-first-visual-exact
    article.nexo-account-card:not([data-cash-member-card])
    .cash-bank-strip.is-completed .cash-bank-progress {
      grid-column: 1 / -1 !important;
      grid-row: 3 !important;
    }
  }
}
