/* Payment tab only: group existing topics into inner cards. No new public copy. */
#payment-details > .wrap{
  display:flex;
  flex-direction:column;
  gap:28px;
}
#payment-details > .wrap > .eyebrow{
  margin-bottom:0;
}
#payment-details > .wrap > h2{
  margin:0 0 4px;
}
#payment-details .pay-topic{
  background:#FFFEF8;
  color:#292b30;
  border:1px solid #d2d2bf;
  border-radius:18px;
  padding:32px 32px 28px;
  box-shadow:none;
  max-width:52rem;
}
#payment-details .pay-topic > h3{
  margin:0 0 16px;
  color:#141518;
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(24px,2.4vw,30px);
  line-height:1.2;
}
#payment-details .pay-topic > p{
  margin:0 0 16px;
  max-width:42em;
  color:#292b30;
}
#payment-details .pay-topic > p:last-child{
  margin-bottom:0;
}
#payment-details .pay-topic-table{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  margin:0 0 16px;
  -webkit-overflow-scrolling:touch;
}
#payment-details .pay-topic-table .cost-table{
  margin-bottom:0;
  max-width:none;
  min-width:36rem;
}
#payment-details .pay-method-btns{
  margin:4px 0 16px;
}
@media (max-width:760px){
  #payment-details > .wrap{
    gap:22px;
  }
  #payment-details .pay-topic{
    padding:24px 16px 22px;
    border-radius:16px;
  }
  #payment-details .pay-topic > h3{
    margin-bottom:14px;
  }
}
@media (prefers-reduced-motion:reduce){
  #payment-details .pay-topic{
    transition:none;
  }
}

/* t981: Reserving + Final payment side by side on desktop; stack on narrow screens. */
#payment-details .pay-topic-pair{
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
  width:100%;
  max-width:none;
}
#payment-details .pay-topic-pair > .pay-topic{
  max-width:none;
  width:100%;
  height:100%;
  box-sizing:border-box;
}
/* Cost table uses the full available wrap/card width instead of the 52rem topic cap. */
#payment-details .pay-topic-cost{
  max-width:none;
  width:100%;
  box-sizing:border-box;
}
#payment-details .pay-topic-cost > p{
  max-width:none;
}
#payment-details .pay-topic-cost .pay-topic-table,
#payment-details .pay-topic-cost .cost-table{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
/* Indent only the item chart so the remaining-balance note stays flush and separate. */
#payment-details .pay-topic-cost .pay-topic-table{
  padding-inline-start:14px;
  max-width:100%;
}
@media (min-width:900px){
  #payment-details .pay-topic-pair{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:28px;
    align-items:stretch;
  }
}
@media (max-width:899px){
  #payment-details .pay-topic-pair{
    grid-template-columns:1fr;
    gap:22px;
  }
}

/* How Adoption Works: each existing step in its own square card. No arrows. */
#how .adopt-steps{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin:0 0 8px;
}
#how .adopt-steps > li{
  margin:0;
  padding:28px 28px 24px;
  background:#FFFEF8;
  color:#292b30;
  border:1px solid #d2d2bf;
  border-radius:0;
  box-shadow:none;
  box-sizing:border-box;
}
@media (max-width:760px){
  #how .adopt-steps{
    grid-template-columns:1fr;
    gap:16px;
  }
  #how .adopt-steps > li{
    padding:22px 20px 20px;
  }
}

/* Mobile only: keep the original wide cost table and make horizontal scroll obvious.
   Native overlay scrollbars (Chrome/iOS) often stay hidden, so a 6px custom bar
   is always shown. Native thin-scrollbar rules are kept as a fallback and then
   suppressed so only one bar is visible. */
.cost-table-scroll-hint,
.cost-table-hscroll{display:none}
@media (max-width:760px){
  #payment-details .pay-topic-table{
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:thin;
    scrollbar-color:#8B9098 #EEF0F2;
  }
  #payment-details .pay-topic-table::-webkit-scrollbar{
    height:6px;
  }
  #payment-details .pay-topic-table::-webkit-scrollbar-track{
    background:#EEF0F2;
  }
  #payment-details .pay-topic-table::-webkit-scrollbar-thumb{
    background:#8B9098;
    border-radius:3px;
  }
  /* Suppress the native bar so the always-visible custom bar is the only one. */
  #payment-details .pay-topic-table{
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  #payment-details .pay-topic-table::-webkit-scrollbar{
    display:none;
    height:0;
  }
  .cost-table-hscroll{
    display:block;
    margin:8px 0 16px;
  }
  .cost-table-hscroll-track{
    position:relative;
    height:10px;
    background:#EEF0F2;
    border-radius:5px;
  }
  .cost-table-hscroll-thumb{
    position:absolute;
    top:0;
    left:0;
    height:10px;
    background:#8B9098;
    border-radius:5px;
    width:30%;
    will-change:transform;
  }
  .cost-table-scroll-hint{
    display:block;
    margin:8px 0 16px;
    color:#5E636B;
    font:12px/1.4 Inter,system-ui,sans-serif;
  }
}
