/* =========================================================
   ACCOUNT.CSS
========================================================= */


/* =========================================================
   1. Section
========================================================= */

.account {
  width: 100%;

  text-align: center;
}


/* =========================================================
   2. Groups
========================================================= */

.account__groups {
  display: grid;

  width: 100%;

  gap: 10px;

  margin-top:
    clamp(30px, 8vw, 38px);

  text-align: left;
}


/* =========================================================
   3. Group
========================================================= */

.account-group {
  overflow: hidden;

  border:
    1px solid
    rgba(229, 218, 218, 0.75);

  border-radius: 12px;

  background:
    rgba(255, 255, 255, 0.62);

  box-shadow:
    0 5px 15px
    rgba(43, 37, 36, 0.04);
}


/* =========================================================
   4. Summary
========================================================= */

.account-group__summary {
  display: flex;

  min-height: 58px;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding:
    0 16px;

  color:
    var(--color-ink);

  font-family:
    "SUIT-Light",
    sans-serif;

  font-size:
    17px;

  font-weight: 300;

  line-height: 1;

  cursor: pointer;

  list-style: none;

  user-select: none;
}


.account-group__summary::-webkit-details-marker {
  display: none;
}


.account-group__summary::marker {
  content: "";
}


/* =========================================================
   5. Arrow
========================================================= */

.account-group__arrow {
  width: 8px;
  height: 8px;

  border-right:
    1px solid
    var(--color-muted);

  border-bottom:
    1px solid
    var(--color-muted);

  transform:
    rotate(45deg);

  transition:
    transform
    var(--motion-normal)
    var(--ease-soft);
}


.account-group[open]
.account-group__arrow {
  transform:
    rotate(225deg);
}


/* =========================================================
   6. Content
========================================================= */

.account-group__content {
  display: grid;

  gap:
    clamp(10px, 3vw, 14px);

  padding:
    14px 12px 12px;

  border-top:
    1px solid
    rgba(229, 218, 218, 0.7);

  background:
    rgba(209, 148, 156, 0.08);
}


/* =========================================================
   7. Account Card
========================================================= */

.account-card {
  padding:
    12px 18px 16px;

  border-radius: 12px;

  background:
    rgba(255, 255, 255, 0.92);

  box-shadow:
    0 7px 18px
    rgba(43, 37, 36, 0.07);
}


/* =========================================================
   8. Head
========================================================= */

.account-card__head {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-bottom:
    4px;
}


.account-card__label {
  margin: 0;

  color:
    var(--color-ink);

  font-family:
    "SUIT-Regular",
    sans-serif;

  font-size:
    16px;

  font-weight: 400;

  line-height: 1.4;
}


/* =========================================================
   9. Bank Box
========================================================= */

.account-card__bank {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  min-height: 58px;

  padding:
    5px 12px;

  border-radius: 9px;

  background:
    rgba(43, 37, 36, 0.045);
}


/* =========================================================
   10. Account Info
========================================================= */

.account-card__info {
  display: grid;

  min-width: 0;

  gap: 4px;
}


.account-card__bank-name {
  color:
    var(--color-muted);

  font-family:
    "SUIT-Light",
    sans-serif;

  font-size:
    16px;

  font-weight: 300;
}


.account-card__number {
  color:
    var(--color-ink);

  font-family:
    "SUIT-Regular",
    sans-serif;

  font-size:
    15px;

  font-weight: 400;

  line-height: 1.3;

  letter-spacing:
    0.01em;

  font-variant-numeric:
    tabular-nums;
}

.account-card__name
{
  font-size:
    16px;
}

/* =========================================================
   11. Copy
========================================================= */

.account-card__copy {
  display: flex;

  flex:
    0 0 auto;

  align-items: center;

  gap: 5px;

  padding:
    8px 9px;

  border: 0;

  border-radius: 8px;

  background:
    transparent;

  color:
    var(--color-muted);

  font-family:
    "SUIT-Light",
    sans-serif;

  font-size:
    14px;

  font-weight: 300;

  cursor: pointer;

  transition:
    color
    var(--motion-fast)
    var(--ease-standard),

    background-color
    var(--motion-fast)
    var(--ease-standard);
}


.account-card__copy-icon {
  font-size: 15px;

  line-height: 1;
}


/* =========================================================
   12. Open State
========================================================= */

.account-group[open] {
  border-color:
    rgba(209, 148, 156, 0.25);
}


/* =========================================================
   13. Hover
========================================================= */

@media (hover: hover) {

  .account-card__copy:hover {
    color:
      var(--color-accent);

    background:
      rgba(209, 148, 156, 0.08);
  }

}


/* =========================================================
   14. Small Mobile
========================================================= */

@media (max-width: 360px) {

  .account-group__summary {
    min-height: 54px;

    padding:
      0 14px;
  }


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


  .account-card__bank {
    padding:
      9px 10px;
  }

}


/* =========================================================
   15. Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .account-group__arrow,
  .account-card__copy {
    transition: none;
  }

}