/* Saved funds are reviewed here; editing stays in the funds menu. */

#funds-review .funds-review-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

#funds-review .funds-review-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e6def1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(86, 61, 124, .025);
  transition: border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}

#funds-review .funds-review-card.is-open {
  border-color: #c7b5ed;
  background: #fdfbff;
  box-shadow: 0 8px 26px rgba(109, 76, 170, .055);
}

#funds-review .funds-review-card > header {
  min-width: 0;
}

#funds-review .funds-review-toggle {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(0, .85fr) 22px;
  grid-template-areas:
    "hole kind amount chevron"
    "hole name amount chevron";
  align-items: center;
  gap: 4px 17px;
  width: 100%;
  min-height: 124px;
  min-width: 0;
  padding: 25px 26px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #373040;
  text-align: left;
  touch-action: manipulation;
}

#funds-review .funds-review-toggle:hover {
  background: #faf7ff;
}

#funds-review .funds-review-toggle:focus-visible {
  outline: 3px solid var(--brand-purple, #7658df);
  outline-offset: -5px;
  border-radius: 21px;
}

#funds-review .funds-review-hole {
  grid-area: hole;
  display: block;
  width: 54px;
  height: 54px;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
}

#funds-review .is-open .funds-review-hole {
  animation: funds-review-paper-pop .32s cubic-bezier(.22, .8, .34, 1) both;
}

#funds-review .funds-review-kind {
  grid-area: kind;
  align-self: end;
  min-width: 0;
  color: #665475;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#funds-review .funds-review-name {
  grid-area: name;
  align-self: start;
  min-width: 0;
  color: #38313f;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -.65px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

#funds-review .funds-review-amount {
  grid-area: amount;
  min-width: 0;
  color: var(--brand-purple, #7658df);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.9px;
  line-height: 1.4;
  text-align: right;
  overflow-wrap: anywhere;
}

#funds-review .funds-review-amount small {
  display: inline-block;
  margin-left: 5px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.3px;
}

#funds-review .funds-review-chevron {
  grid-area: chevron;
  width: 22px;
  height: 22px;
  color: #796690;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .32s ease, color .22s ease;
}

#funds-review .funds-review-toggle[aria-expanded="true"] .funds-review-chevron {
  color: var(--brand-purple, #7658df);
  transform: rotate(180deg);
}

#funds-review .funds-review-panel {
  display: grid;
  grid-template-rows: 0fr;
  min-width: 0;
  transition: grid-template-rows .32s cubic-bezier(.25, .7, .3, 1);
}

#funds-review .funds-review-card.is-open .funds-review-panel {
  grid-template-rows: 1fr;
}

#funds-review .funds-review-panel-inner {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

#funds-review .funds-review-details {
  display: grid;
  grid-template-columns: minmax(100px, .8fr) minmax(0, 1.4fr);
  align-items: baseline;
  gap: 17px 20px;
  margin: 0;
  padding: 24px 26px 28px 97px;
  border-top: 1px solid #ece5f5;
  background: #fcfaff;
}

#funds-review .funds-review-details dt,
#funds-review .funds-review-details dd {
  min-width: 0;
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

#funds-review .funds-review-details dt {
  color: #5d5267;
  font-size: 16px;
  font-weight: 550;
}

#funds-review .funds-review-details dd {
  color: #403449;
  font-size: 18px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

#funds-review .funds-review-empty {
  margin: 0;
  border-radius: 20px;
  background: #f5f0fc;
  color: #776585;
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
}

#ammo-page[data-mode="review"] > .ammo-summary {
  border-radius: 22px;
}

#ammo-page[data-mode="review"] > .target-recap {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

#ammo-page[data-mode="review"] .launch-bar {
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding-top: 30px;
}

#ammo-page[data-mode="review"] .launch-bar > div {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#ammo-page[data-mode="review"] .launch-bar p {
  color: #4e5968;
  font-size: 14px;
  line-height: 1.6;
}

#ammo-page[data-mode="review"] .fire-button {
  width: min(100%, 380px);
  min-width: 0;
  min-height: 68px;
  padding: 15px 28px;
  border-radius: 16px;
  background: var(--brand-purple, #7658df);
  font-size: 24px;
  font-weight: 750;
  line-height: 1.45;
  justify-content: center;
  gap: 12px;
  white-space: normal;
}

#ammo-page[data-mode="review"] .fire-button .icon {
  width: 24px;
  height: 24px;
}

#ammo-page[data-mode="review"] .fire-button span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

@keyframes funds-review-paper-pop {
  0% { transform: scale(.9) rotate(-6deg); }
  60% { transform: scale(1.08) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

@media (max-width: 560px) {
  #funds-review {
    margin-top: 22px;
  }

  #funds-review .funds-review-list {
    gap: 12px;
  }

  #funds-review .funds-review-card {
    border-radius: 19px;
  }

  #funds-review .funds-review-toggle {
    grid-template-columns: 43px minmax(0, 1fr) 20px;
    grid-template-areas:
      "hole kind chevron"
      "hole name chevron"
      "hole amount amount";
    gap: 3px 12px;
    min-height: 132px;
    padding: 22px 18px;
  }

  #funds-review .funds-review-hole {
    align-self: start;
    width: 43px;
    height: 43px;
    margin-top: 4px;
  }

  #funds-review .funds-review-kind {
    font-size: 13px;
  }

  #funds-review .funds-review-name {
    font-size: 21px;
    letter-spacing: -.6px;
  }

  #funds-review .funds-review-amount {
    padding-top: 9px;
    font-size: 27px;
    text-align: left;
  }

  #funds-review .funds-review-amount small {
    font-size: 14px;
  }

  #funds-review .funds-review-chevron {
    width: 20px;
    height: 20px;
  }

  #funds-review .funds-review-details {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
    gap: 15px 14px;
    padding: 22px 20px 25px;
  }

  #funds-review .funds-review-details dt {
    font-size: 15px;
  }

  #funds-review .funds-review-details dd {
    font-size: 17px;
  }

  #ammo-page[data-mode="review"] > .ammo-summary {
    border-radius: 19px;
  }

  #ammo-page[data-mode="review"] .launch-bar {
    padding-top: 25px;
  }

  #ammo-page[data-mode="review"] .fire-button {
    padding: 16px 20px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #funds-review *,
  #funds-review *::before,
  #funds-review *::after {
    animation: none !important;
    transition: none !important;
  }
}
