/* The dashboard behind the account-opening card.

   An illustration of the ShopWired Payments home page (merchant-web's own
   layout, navigation and tokens) with invented figures, blurred and veiled so
   it reads as the account being opened rather than as something to use. The
   markup is aria-hidden and inert. Every rule is scoped to .account-opening.

   Wide screens show the full dashboard fixed behind the page; at 900px and
   below a phone-sized version sits in a strip at the top instead. */

.account-opening .account-opening-backdrop {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  user-select: none;
  z-index: 0;
}

/* :where() keeps these resets weaker than the component rules below. */
.account-opening :where(.account-opening-backdrop p),
.account-opening :where(.account-opening-backdrop ul) {
  list-style: none;
  margin: 0;
  padding: 0;
}

.account-opening :where(.account-opening-backdrop i),
.account-opening :where(.account-opening-backdrop em) {
  font-style: normal;
}

.account-opening :where(.account-opening-backdrop svg) {
  display: block;
  flex: 0 0 auto;
}

.account-opening .aod {
  background: #f6f8fa;
  color: #0f1b26;
  display: grid;
  filter: blur(2.2px) saturate(0.95);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  grid-template-columns: 236px minmax(0, 1fr);
  inset: 0;
  position: absolute;
  transform: scale(1.012);
  transform-origin: 70% 40%;
}

.account-opening .aod-side {
  background: #ffffff;
  border-right: 1px solid #dfe6ed;
  display: flex;
  flex-direction: column;
  padding: 14px 10px 10px;
}

.account-opening .aod-brand,
.account-opening .aod-account,
.account-opening .aod-nav-item,
.account-opening .aod-toolbar,
.account-opening .aod-search,
.account-opening .aod-live,
.account-opening .aod-activity li,
.account-opening .aod-status,
.account-opening .aom-bar {
  align-items: center;
  display: flex;
}

.account-opening .aod-brand {
  gap: 9px;
  margin: 0 0 12px;
  padding: 0 4px;
}

.account-opening .aod-brand span,
.account-opening .aom-tile {
  background: #0f6b8c;
  border-radius: 6px;
  color: #ffffff;
  display: grid;
  font-size: 11px;
  font-weight: 700;
  height: 26px;
  place-items: center;
  width: 26px;
}

.account-opening .aod-brand b {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.account-opening .aod-account {
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  gap: 9px;
  margin: 0 4px 6px;
  padding: 7px 9px;
}

.account-opening .aod-account i {
  background: #e2eff4;
  border-radius: 50%;
  color: #0f6b8c;
  display: grid;
  font-size: 10.5px;
  font-weight: 700;
  height: 26px;
  place-items: center;
  width: 26px;
}

.account-opening .aod-account b,
.account-opening .aod-account small {
  display: block;
}

.account-opening .aod-account b {
  font-size: 12.5px;
  font-weight: 600;
}

.account-opening .aod-account small {
  color: #586d80;
  font-size: 11px;
}

.account-opening .aod-account svg {
  color: #6c8093;
  height: 14px;
  margin-left: auto;
  width: 14px;
}

.account-opening .aod-nav,
.account-opening .aod-nav-foot {
  display: grid;
  gap: 1px;
}

.account-opening .aod-nav-foot {
  border-top: 1px solid #edf1f5;
  margin-top: auto;
  padding-top: 8px;
}

.account-opening .aod-nav-heading {
  color: #586d80;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 8px 5px;
  text-transform: uppercase;
}

.account-opening .aod-nav-item {
  border-radius: 6px;
  color: #44586b;
  font-size: 13px;
  gap: 10px;
  padding: 7px 8px;
}

.account-opening .aod-nav-item svg {
  height: 15px;
  width: 15px;
}

.account-opening .aod-nav-item.is-current {
  background: #e2eff4;
  color: #0f6b8c;
  font-weight: 600;
}

.account-opening .aod-nav-item small {
  color: #586d80;
  font: 10.5px ui-monospace, Menlo, monospace;
  margin-left: auto;
}

.account-opening .aod-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.account-opening .aod-toolbar {
  background: #ffffff;
  border-bottom: 1px solid #dfe6ed;
  gap: 12px;
  height: 52px;
  padding: 0 24px;
}

.account-opening .aod-search {
  background: #f6f8fa;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  color: #6c8093;
  font-size: 13px;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  width: 420px;
}

.account-opening .aod-search svg {
  height: 15px;
  width: 15px;
}

.account-opening .aod-search kbd {
  background: #ffffff;
  border: 1px solid #dfe6ed;
  border-radius: 4px;
  font: 11px ui-monospace, Menlo, monospace;
  margin-left: auto;
  padding: 1px 5px;
}

.account-opening .aod-live {
  background: #e0f1ec;
  border-radius: 999px;
  color: #0e7a63;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  margin-left: auto;
  padding: 5px 10px;
}

.account-opening .aod-live i,
.account-opening .aod-status i {
  background: #0e7a63;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.account-opening .aod-avatar {
  background: #0f6b8c;
  border-radius: 50%;
  color: #ffffff;
  display: grid;
  font-size: 11px;
  font-weight: 700;
  height: 30px;
  place-items: center;
  width: 30px;
}

.account-opening .aod-content {
  align-content: start;
  display: grid;
  gap: 14px;
  max-width: 1180px;
  padding: 22px 28px;
}

.account-opening .aod-head {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
}

.account-opening .aod-head p {
  color: #0f6b8c;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.055em;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.account-opening .aod-head b {
  font-size: 25px;
  font-weight: 660;
  letter-spacing: -0.03em;
}

.account-opening .aod-periods {
  background: #edf1f5;
  border-radius: 8px;
  display: flex;
  padding: 2px;
}

.account-opening .aod-periods span {
  border-radius: 6px;
  color: #44586b;
  font-size: 12px;
  padding: 5px 10px;
}

.account-opening .aod-periods .is-current {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 27, 38, 0.08);
  color: #0f1b26;
  font-weight: 600;
}

.account-opening .aod-card {
  background: #ffffff;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 27, 38, 0.05);
  min-width: 0;
  padding: 16px 18px;
}

.account-opening .aod-summary {
  display: grid;
  gap: 14px;
  grid-template-columns: 0.82fr 1.35fr 0.95fr;
}

.account-opening .aod-summary .aod-card {
  display: flex;
  flex-direction: column;
  min-height: 150px;
}

.account-opening .aod-kicker {
  color: #586d80;
  font-size: 12px;
  margin: 0 0 9px;
}

.account-opening .aod-money,
.account-opening .aod-chart-head strong,
.account-opening .aod-metrics b,
.account-opening .aom-card strong {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 660;
  letter-spacing: -0.035em;
}

.account-opening .aod-money {
  font-size: 25px;
}

.account-opening .aod-up {
  color: #0e7a63;
  font-size: 12px;
  font-weight: 620;
  margin-top: 5px;
}

.account-opening .aod-small {
  color: #586d80;
  font-size: 11.5px;
  margin-top: 3px;
}

.account-opening .aod-bottom,
.account-opening .aod-link {
  margin-top: auto;
}

.account-opening .aod-balance {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin: 12px 0 10px;
}

.account-opening .aod-balance span {
  color: #586d80;
  font-size: 11.5px;
}

.account-opening .aod-balance b {
  display: block;
  font: 600 16px ui-monospace, Menlo, monospace;
  margin-top: 2px;
}

.account-opening .aod-link {
  color: #0f6b8c;
  font-size: 12.5px;
  font-weight: 600;
}

.account-opening .aod-overview {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.6fr 1fr;
}

.account-opening .aod-chart-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.account-opening .aod-chart-head b,
.account-opening .aod-activity > b {
  font-size: 14px;
  font-weight: 600;
}

.account-opening .aod-chart-head .aod-up {
  display: block;
  margin-top: 3px;
}

.account-opening .aod-chart-head strong {
  font-size: 20px;
}

.account-opening .aod-chart {
  height: 150px;
  width: 100%;
}

.account-opening .aod-axis {
  color: #6c8093;
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  margin-top: 6px;
}

.account-opening .aod-activity ul {
  display: grid;
  margin-top: 8px;
}

.account-opening .aod-activity li {
  border-top: 1px solid #edf1f5;
  font-size: 12.5px;
  gap: 10px;
  padding: 8px 0;
}

.account-opening .aod-activity li:first-child {
  border-top: 0;
}

.account-opening .aod-activity li i {
  background: #e0f1ec;
  border-radius: 50%;
  color: #0e7a63;
  display: grid;
  flex: 0 0 auto;
  height: 26px;
  place-items: center;
  width: 26px;
}

.account-opening .aod-activity li i svg {
  height: 13px;
  width: 13px;
}

.account-opening .aod-activity li i.aod-payout {
  background: #e2eff4;
  color: #0f6b8c;
}

.account-opening .aod-activity li i.aod-refund {
  background: #edf1f5;
  color: #44586b;
}

.account-opening .aod-activity li span {
  display: grid;
  min-width: 0;
}

.account-opening .aod-activity li b {
  font-weight: 600;
}

.account-opening .aod-activity li small {
  color: #586d80;
  font-size: 11.5px;
}

.account-opening .aod-activity li em {
  font: 600 12.5px ui-monospace, Menlo, monospace;
  margin-left: auto;
}

.account-opening .aod-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.account-opening .aod-metrics .aod-card {
  padding: 14px 16px;
}

.account-opening .aod-metrics b {
  display: block;
  font-size: 19px;
  margin-top: 4px;
}

.account-opening .aod-status {
  color: #0e7a63;
  font-size: 12.5px;
  font-weight: 600;
  gap: 6px;
  margin-top: 6px;
}

/* Phone-sized dashboard, used at 900px and below */

.account-opening .aom {
  background: #f6f8fa;
  color: #0f1b26;
  display: none;
  filter: blur(1.4px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  height: 330px;
  inset: 0 0 auto;
  position: absolute;
  transform: scale(1.02);
  transform-origin: 50% 0;
}

.account-opening .aom-bar {
  background: #ffffff;
  border-bottom: 1px solid #dfe6ed;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
}

.account-opening .aom-bar b {
  font-size: 14px;
  font-weight: 600;
}

.account-opening .aom-bar svg {
  color: #44586b;
  height: 20px;
  margin-left: auto;
  width: 20px;
}

.account-opening .aom-body {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.account-opening .aom-title {
  font-size: 22px;
  font-weight: 660;
  letter-spacing: -0.03em;
}

.account-opening .aom-card {
  background: #ffffff;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  padding: 12px 14px;
}

.account-opening .aom-card p {
  color: #586d80;
  font-size: 12px;
}

.account-opening .aom-card strong {
  display: block;
  font-size: 22px;
  margin-top: 4px;
}

.account-opening .aom-card span {
  color: #0e7a63;
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 3px;
}

.account-opening .aom-card .aom-muted {
  color: #586d80;
  font-weight: 400;
}

.account-opening .aom-card svg {
  height: 46px;
  margin-top: 8px;
  width: 100%;
}

.account-opening .aom-pair {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.account-opening .aom-pair strong {
  font-size: 18px;
}

/* The veil fades the dashboard behind the card and leaves the figures to
   its right readable as shapes. */
.account-opening .account-opening-veil {
  background: linear-gradient(90deg, rgba(246, 248, 250, 0.96) 0, rgba(246, 248, 250, 0.9) 30%, rgba(246, 248, 250, 0.42) 52%, rgba(246, 248, 250, 0.16) 72%, rgba(246, 248, 250, 0.1) 100%);
  inset: 0;
  position: absolute;
}

@media (max-width: 900px) {
  .account-opening .account-opening-backdrop {
    bottom: auto;
    height: 330px;
    position: absolute;
  }

  .account-opening .aod {
    display: none;
  }

  .account-opening .aom {
    display: block;
  }

  .account-opening .account-opening-veil {
    background: linear-gradient(180deg, rgba(246, 248, 250, 0.08) 0, rgba(246, 248, 250, 0.3) 45%, rgba(246, 248, 250, 0.85) 100%);
  }
}
