/* Wallet page-owned presentation.
   Presentation only: reduce section chrome and improve scanability without changing behavior. */

.v4-products-page .v4-products-head{
  align-items:center;
}
.v4-products-page .v4-add-product{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.v4-products-page .v4-add-product-glyph{
  width:16px;
  height:16px;
  display:block;
  flex:0 0 16px;
  margin:0;
  fill:none;
  stroke:currentColor;
  stroke-width:2.25;
  stroke-linecap:round;
}

.v4-products-page .v4-needs-attention{display:none}

.v4-products-page .credit-products,
.v4-products-page .account-products,
.v4-products-page .membership-products,
.v4-products-page .other-products{
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
  padding-left:0;
  padding-right:0;
  padding-top:12px;
  padding-bottom:15px;
  margin-bottom:5px;
  border-bottom:1px solid rgba(60,60,67,.10);
}
.v4-products-page .other-products{border-bottom:0}

.v4-products-page .credit-products .v4-section-head,
.v4-products-page .account-products .v4-section-head,
.v4-products-page .membership-products .v4-section-head,
.v4-products-page .other-products .v4-section-head{margin-bottom:9px}

.v4-products-page .wallet-section-controls{
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:auto;
}
.v4-products-page .product-sort-wrap{position:relative;margin-left:0}
.v4-products-page .product-sort-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:30px;
  padding:0 10px;
  border:1px solid rgba(60,60,67,.08);
  border-radius:999px;
  background:rgba(118,118,128,.07);
  color:#3a3a3c;
  cursor:pointer;
  transition:background .14s ease,border-color .14s ease;
}
.v4-products-page .product-sort-button:hover{
  background:rgba(118,118,128,.11);
  border-color:rgba(60,60,67,.11);
}
.v4-products-page .product-sort-chevron{color:#8e8e93}
.v4-products-page .product-sort-menu{
  right:0;
  top:36px;
  width:148px;
}
.v4-products-page .product-sort-menu button.selected{
  background:#f2f2f7;
  color:#1d1d1f;
}
.v4-products-page .product-section-toggle{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 30px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#8e8e93;
  cursor:pointer;
  transition:background .14s ease,color .14s ease;
}
.v4-products-page .product-section-toggle:hover{background:rgba(118,118,128,.08);color:#3a3a3c}
.v4-products-page .product-section-chevron{
  display:inline-flex;
  transform:rotate(0deg);
  transition:transform .16s ease;
}
.v4-products-page .product-section-chevron.is-expanded{transform:rotate(180deg)}
.v4-products-page .v4-product-section.is-collapsed{padding-bottom:12px}
.v4-products-page .v4-product-section.is-collapsed .v4-section-head{margin-bottom:0}

.v4-products-page .credit-products .v4-owned-product-card{position:relative;text-align:left}
.v4-products-page .credit-products .owned-product-meta{
  display:block;
  position:absolute;
  right:8px;
  bottom:7px;
  z-index:2;
  margin:0;
  padding:0;
  pointer-events:none;
}
.v4-products-page .credit-products .owned-product-meta strong{display:none}
.v4-products-page .credit-products .owned-product-meta small{
  display:block;
  margin:0;
  padding:2px 6px;
  border-radius:999px;
  background:rgba(18,18,20,.46);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  white-space:nowrap;
}
.v4-products-page .credit-products .v4-owned-product-card:hover .v4-owned-product-art{
  transform:translateY(-1px);
  filter:drop-shadow(0 4px 8px rgba(24,44,78,.07));
}

.v4-products-page .account-products .v10-info-tile,
.v4-products-page .membership-products .v10-info-tile,
.v4-products-page .other-products .v10-info-tile{
  box-shadow:none;
  border-color:rgba(60,60,67,.11);
}
.v4-products-page .account-products .v10-info-tile:hover,
.v4-products-page .membership-products .v10-info-tile:hover,
.v4-products-page .other-products .v10-info-tile:hover{
  box-shadow:0 3px 10px rgba(28,49,84,.035);
  transform:translateY(-1px);
}
.v4-products-page .v10-info-logo{border-color:rgba(60,60,67,.08);background:rgba(118,118,128,.04)}
.v4-products-page .v4-past-products{
  margin-top:10px;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
}
.v4-products-page .v4-past-head{
  width:100%;
  border:0;
  border-top:1px solid rgba(0,0,0,.065);
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 2px;
  color:#1d1d1f;
  text-align:left;
  cursor:pointer;
}
.v4-products-page .v4-past-head-title{display:flex;align-items:center;gap:10px}
.v4-products-page .v4-past-head-title small{
  color:#86868b;
  background:#f2f2f7;
  border-radius:999px;
  padding:3px 8px;
}
.v4-products-page .v4-past-head-chevron{
  font-size:22px;
  line-height:1;
  color:#b0b0b5;
  transform:rotate(0deg);
  transition:transform .16s ease;
}
.v4-products-page .v4-past-products.is-open .v4-past-head-chevron{transform:rotate(180deg)}
.v4-products-page .v4-past-list{
  margin-top:2px;
  padding:0;
  background:#fff;
  border:1px solid rgba(0,0,0,.055);
  border-radius:16px;
  overflow:hidden;
}
.v4-products-page .v4-past-row{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 18px;
  gap:14px;
  align-items:center;
  border:0;
  border-bottom:1px solid rgba(0,0,0,.045);
  background:#fff;
  padding:15px 16px;
  color:#1d1d1f;
  text-align:left;
  cursor:pointer;
  transition:background .15s ease;
}
.v4-products-page .v4-past-row:last-child{border-bottom:0}
.v4-products-page .v4-past-row:hover{background:#fafafa}
.v4-products-page .v4-past-row-title{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.v4-products-page .v4-past-row-status{
  color:#86868b;
  white-space:nowrap;
}
.v4-products-page .v4-past-row-chevron{
  font-size:22px;
  line-height:1;
  color:#b0b0b5;
}

@media(max-width:780px){
  .v4-products-page .v4-add-product{
    width:42px;
    height:42px;
    min-width:42px;
    min-height:42px;
    padding:0;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .v4-products-page .v4-add-product-glyph{
    width:24px;
    height:24px;
    display:block;
    flex:0 0 24px;
    margin:0;
    fill:none;
    stroke:currentColor;
    stroke-width:2.25;
    stroke-linecap:round;
  }
  .v4-products-page .v4-add-product-label{display:none}
  .v4-products-page .wallet-section-controls{gap:4px}
  .v4-products-page .product-sort-button{min-height:28px;padding:0 9px}
  .v4-products-page .product-section-toggle{width:28px;height:28px;flex-basis:28px}
  .v4-products-page .product-sort-menu{top:34px}
  .v4-products-page .credit-products,
  .v4-products-page .account-products,
  .v4-products-page .membership-products,
  .v4-products-page .other-products{
    padding-left:0;
    padding-right:0;
    padding-top:10px;
    padding-bottom:13px;
  }
  .v4-products-page .credit-products .owned-product-meta{right:7px;bottom:6px}
  .v4-products-page .v4-past-list{border-radius:14px}
  .v4-products-page .v4-past-row{
    grid-template-columns:minmax(0,1fr) 16px;
    gap:10px;
    padding:14px;
  }
  .v4-products-page .v4-past-row-status{
    grid-column:1;
    grid-row:2;
    margin-top:-6px;
  }
  .v4-products-page .v4-past-row-chevron{
    grid-column:2;
    grid-row:1 / span 2;
    align-self:center;
  }
}

/* Product logo fitting belongs to Wallet presentation. */
.v10-info-logo{padding:0;background:#fff;overflow:hidden}
.v10-info-logo img{width:84%;height:84%;padding:0;object-fit:contain;transform-origin:center;border-radius:12px}
.v10-info-logo[data-product-id="p-chase-checking"] img,
.v10-info-logo[data-product-id="p-fidelity"] img,
.v10-info-logo[data-product-id="p-robinhood"] img,
.v10-info-logo[data-product-id="p-truist"] img,
.v10-info-logo[data-product-id="p-usbank"] img,
.v10-info-logo[data-product-id="p-wf-checking"] img,
.v10-info-logo[data-product-id="p-hilton"] img,
.v10-info-logo[data-product-id="p-ihg"] img,
.v10-info-logo[data-product-id="p-marriott-status"] img,
.v10-info-logo[data-product-id="p-hyatt"] img,
.v10-info-logo[data-product-id="p-awardwallet"] img,
.v10-info-logo[data-product-id="p-pointsyeah"] img,
.v10-info-logo[data-product-id="p-cardpointers"] img,
.v10-info-logo[data-product-id="p-maxrewards"] img,
.v10-info-logo[data-product-id="p-rakuten"] img,
.v10-info-logo[data-product-id="p-google-one"] img{width:78%;height:78%;transform:none}
.v10-info-logo[data-product-id="p-delta-status"] img{transform:scale(1.30)}
.v10-info-logo[data-product-id="p-topcashback"] img{transform:scale(1.22)}
.v10-info-logo[data-product-id="p-rebatesme"] img{transform:scale(1.22)}
.v10-info-logo[data-product-id="p-gocashback"] img{transform:scale(1.20)}
.v10-info-logo[data-product-id="p-bilt-rent"] img{transform:scale(1.12)}


/* Mobile Wallet card stack experiment.
   Presentation only: keep the existing credit-card tiles, order and Product Detail routing. */

@media(max-width:780px){
  .v4-products-page .credit-products .v4-owned-product-grid.nb-wallet-card-stack{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:0;
    padding:2px 0 4px;
    overflow:visible;
  }

  .v4-products-page .credit-products .nb-wallet-card-stack .v4-owned-product-card.credit-tile{
    width:min(100%,360px);
    margin:0 auto;
    position:relative;
    transition:margin .24s ease, transform .24s ease, filter .24s ease;
    transform:translateZ(0);
  }

  /* Each following card advances only enough to expose a recognizable top strip. */
  .v4-products-page .credit-products .nb-wallet-card-stack .v4-owned-product-card.credit-tile + .v4-owned-product-card.credit-tile{
    margin-top:clamp(-172px,-44vw,-144px);
  }

  .v4-products-page .credit-products .nb-wallet-card-stack .v4-owned-product-card.credit-tile .v4-owned-product-art{
    border-radius:13px;
    filter:drop-shadow(0 5px 12px rgba(24,44,78,.10));
  }

  /* A selected card opens enough vertical space to reveal the full card.
     Cards below it continue as a compact stack. */
  .v4-products-page .credit-products .nb-wallet-card-stack .v4-owned-product-card.credit-tile.nb-wallet-card-expanded{
    z-index:30!important;
    margin-bottom:clamp(156px,44vw,184px);
    transform:translateY(0);
  }

  .v4-products-page .credit-products .nb-wallet-card-stack .v4-owned-product-card.credit-tile.nb-wallet-card-expanded .v4-owned-product-art{
    filter:drop-shadow(0 12px 22px rgba(24,44,78,.16));
  }

  .v4-products-page .credit-products .nb-wallet-card-stack .v4-owned-product-card.credit-tile:active .v4-owned-product-art{
    transform:scale(.992);
  }

  /* Keep the suffix attached to the card artwork while cards overlap. */
  .v4-products-page .credit-products .nb-wallet-card-stack .owned-product-meta{
    z-index:3;
  }
}

@media(prefers-reduced-motion:reduce){
  .v4-products-page .credit-products .nb-wallet-card-stack .v4-owned-product-card.credit-tile{
    transition:none;
  }
}
