/* ==========================================================================
   chargeback-recovery.php only. Every class here starts with rp- so nothing
   leaks into the shared stylesheet's components.
   ========================================================================== */

/* inline links inside body copy */
.lead-cg a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.section-dark .lead-cg a,
.section-blue .lead-cg a { color: var(--gold); }

/* ---- what is representment: four-step flow ---- */
.rp-flow {
  list-style: none;
  margin: 0;
  padding: 26px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  position: relative;
}
.rp-flow li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  position: relative;
}
/* the line joining the numbers */
.rp-flow li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px; top: 54px; bottom: -14px;
  width: 2px;
  background: var(--line-2);
}
.rp-flow-n {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.rp-flow li.is-win .rp-flow-n { background: var(--gold); border-color: var(--gold); color: #000; }
.rp-flow b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.rp-flow div > span { display: block; font-size: 14px; color: var(--muted); line-height: 1.55; }
/* .rp-flow-n is a span too, so it is restated here at the same weight as the
   rule above; without it the number sat in the circle's top-left corner */
.rp-flow .rp-flow-n { display: grid; font-size: 16px; line-height: 1; color: var(--blue); }
.rp-flow li.is-win .rp-flow-n { color: #000; }

/* ---- how to win a chargeback: five white cards on the blue band ---- */
.rp-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.rp-step {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.rp-step-n {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #000;
  background: var(--gold);
  border-radius: 8px;
  padding: 4px 9px;
  margin-bottom: 16px;
}
.section-blue .rp-step h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.section-blue .rp-step p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.rp-band-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.section-blue .rp-band-cta p { margin: 0; font-size: 17px; font-weight: 600; color: #fff; }
@media (max-width: 1199.98px) {
  .rp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .rp-steps { grid-template-columns: 1fr; }
}

/* ---- evidence: the CE3.0 box and the case view sit side by side ---- */
.rp-case { margin: 0; }
/* the CE box is stretched to the case view's height. Stack the badge over
   the heading and centre the pair, so the spare height is shared above and
   below instead of piling up under the text */
@media (min-width: 768px) {
  .rep-ce.h-100 { flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }
}

/* ---- reason codes footer row ---- */
.rp-codes-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.rp-codes-foot .rep-codes-note { margin-top: 0; max-width: 60ch; }

/* ---- friendly fraud: claim / answer list on black ---- */
.rp-ff { display: grid; gap: 14px; }
/* the left column carries the copy and the scale scene, so it is far taller
   than this list. Centred, the list left a dead band above and below it; now
   it starts level with the heading and stays in view while the scene passes. */
@media (min-width: 992px) {
  .rp-ff { position: sticky; top: calc(var(--nav-h) + 32px); }
}
.rp-ff-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.rp-ff-item > i {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--peri);
  color: #fff;
  font-size: 18px;
}
.rp-ff-item b { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.rp-ff-item span { display: block; color: rgba(255, 255, 255, .75); font-size: 14.5px; line-height: 1.6; }

/* ---- maths side: the reasons not to file ---- */
.rp-nofight { list-style: none; padding: 0; margin: 0 0 16px; }
.rp-nofight li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 10px;
}
.rp-nofight i { color: var(--danger); margin-top: 2px; }

/* ---- link cards to the other services ---- */
.rp-link-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--sh-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.rp-link-card:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--line-2); color: var(--ink); }
.rp-link-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 18px;
}
.rp-link-card b { font-size: 19px; margin-bottom: 8px; }
.rp-link-card > span { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-bottom: 18px; }
/* the icon tile is also a direct span child, so the rule above turned its
   glyph grey and invisible on the blue tile */
.rp-link-card > .rp-link-icon { color: var(--gold); font-size: 20px; line-height: 1; }
.rp-link-card em {
  margin-top: auto;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* the maths side panel is blue, so its list and button flip to light/amber */
.rep-maths-side .rp-nofight li { color: rgba(255, 255, 255, .85); }
.rep-maths-side .rp-nofight i { color: var(--gold); }
.rep-maths-side .btn-cg { background: var(--gold); color: #000; box-shadow: none; }
.rep-maths-side .btn-cg:hover, .rep-maths-side .btn-cg:focus { background: var(--gold-2); color: #000; }

/* the issuer decision card stays in view beside the timeline */
@media (min-width: 992px) {
  .rp-outcome-wrap { position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* the evidence assembly scene under "What is chargeback representment?" */
.rp-asm-wrap { margin-top: 56px; }
