/* ============================================================================
   CPR INSTANT BUYBACK QUOTE WIDGET
   Scoped to .cpr-bb so it cannot collide with the host page's styles.
   Brand: red #DC282E (Pantone 186C), light blue #4FB0E3, body #4E4E50.
   Font: Avenir LT Pro where the site provides it, system stack otherwise.
   ========================================================================== */

.cpr-bb {
  --bb-red: #DC282E;
  --bb-red-light: #F15F5E;
  --bb-blue: #4FB0E3;
  --bb-dark: #2D2D3B;
  --bb-text: #4E4E50;
  --bb-grey: #B9BDCB;
  --bb-bg: #F3F2F2;
  --bb-white: #fff;
  --bb-radius: 10px;
  --bb-shadow: 0 1px 3px rgba(45, 45, 59, .10), 0 8px 24px rgba(45, 45, 59, .07);

  font-family: 'Avenir LT Pro', Avenir, 'Avenir Next', Montserrat,
               -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--bb-text);
  background: var(--bb-white);
  border: 1px solid #e6e5e5;
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow);
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

.cpr-bb *, .cpr-bb *::before, .cpr-bb *::after { box-sizing: border-box; }

/* The host page's own h2/p/ul/li rules must not bleed in here. The widget
   lands inside pages we do not control. :where() gives this reset ZERO
   specificity, so every .cpr-bb__* rule below still wins without !important
   and without depending on source order. */
:where(.cpr-bb h2, .cpr-bb h3, .cpr-bb p, .cpr-bb ul, .cpr-bb ol, .cpr-bb li,
       .cpr-bb legend, .cpr-bb fieldset, .cpr-bb label, .cpr-bb b,
       .cpr-bb strong, .cpr-bb small) {
  margin: 0; padding: 0; border: 0; background: none;
  font-family: inherit; color: inherit; text-align: left;
  text-transform: none; letter-spacing: normal; line-height: inherit;
  font-style: normal; text-decoration: none; float: none; width: auto;
}
:where(.cpr-bb ul, .cpr-bb ol) { list-style: none; }
.cpr-bb img { max-width: 100%; }

/* ---------- header ---------- */
.cpr-bb__head {
  background: var(--bb-red);
  color: #fff;
  padding: 18px 20px 16px;
  position: relative;
  overflow: hidden;
}
/* plus-cross brand texture */
.cpr-bb__head::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M12 5h4v6h6v4h-6v6h-4v-6H6v-4h6z' fill='%23fff' fill-opacity='.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.cpr-bb__logo {
  position: relative; z-index: 1;
  display: block; height: 26px; width: auto; margin: 0 0 12px;
}
.cpr-bb__eyebrow {
  position: relative; z-index: 1;
  font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  opacity: .85; margin: 0 0 4px; color: #fff;
}
.cpr-bb__title {
  position: relative; z-index: 1;
  margin: 0; font-size: 21px; font-weight: 900; letter-spacing: -.2px;
  color: #fff;
}
.cpr-bb__sub {
  position: relative; z-index: 1;
  margin: 5px 0 0; font-size: 13px; opacity: .92; color: #fff;
}

/* ---------- progress ---------- */
/* A single slim bar. Dots and step counters make a short form look long. */
.cpr-bb__bar { height: 4px; background: #e8e7e7; }
.cpr-bb__bar i { display: block; height: 100%; width: 4%; background: var(--bb-blue);
  transition: width .3s cubic-bezier(.22,.61,.36,1); }

/* ---------- body ---------- */
.cpr-bb__body { padding: 20px; }
.cpr-bb__panel[hidden] { display: none; }

.cpr-bb__label {
  display: block; text-transform: uppercase; letter-spacing: 2px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--bb-text);
  margin: 0 0 8px;
}
.cpr-bb__card { animation: cprbbIn .22s ease both; }
@keyframes cprbbIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cpr-bb__counter {
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: #9a9a9a; margin: 0 0 8px;
}
.cpr-bb__ask {
  font-size: 22px; font-weight: 800; line-height: 1.25; color: #2D2D3B;
  margin: 0 0 18px; letter-spacing: -.3px;
}
.cpr-bb__field { margin: 0 0 14px; }
.cpr-bb__nav { margin-top: 18px; }

.cpr-bb__q { margin: 0 0 22px; }
.cpr-bb__offerlabel, .cpr-bb__eyebrow { text-transform: uppercase; }
.cpr-bb__q:last-of-type { margin-bottom: 8px; }
.cpr-bb__qtext { font-size: 16px; font-weight: 600; margin: 0 0 10px; color: #333; }
.cpr-bb__hint { font-size: 13px; color: #777; margin: 6px 0 0; }

/* ---------- controls ---------- */
.cpr-bb__select,
.cpr-bb select,
.cpr-bb input[type=text],
.cpr-bb input[type=tel],
.cpr-bb input[type=email] {
  width: 100%; font: inherit; font-size: 16px;  /* 16px stops iOS zoom-on-focus */
  color: var(--bb-text); background: #fff;
  padding: 12px 13px; border: 1.5px solid #dcdbdb; border-radius: 8px;
  appearance: none; -webkit-appearance: none;
}
.cpr-bb__select, .cpr-bb select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234E4E50' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.cpr-bb__select:focus-visible,
.cpr-bb select:focus-visible,
.cpr-bb input:focus-visible,
.cpr-bb button:focus-visible,
.cpr-bb__opt:focus-visible {
  outline: 3px solid var(--bb-blue); outline-offset: 2px;
}

/* radio card list */
.cpr-bb__opts { display: grid; gap: 9px; }
.cpr-bb__opt {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 16px; border: 1.5px solid #e2e1e1; border-radius: 10px;
  cursor: pointer; background: #fff; text-align: left;
  font: inherit; font-size: 16px; color: var(--bb-text);
  transition: border-color .15s, background .15s;
  min-height: 56px;                                 /* thumb-sized target */
}
.cpr-bb__opt:hover { border-color: var(--bb-blue); }

.cpr-bb__dot {
  flex: none; width: 20px; height: 20px;
  border: 2px solid var(--bb-grey); border-radius: 50%; background: #fff;
  transition: border-color .15s, border-width .15s;
}
.cpr-bb__opt.is-on .cpr-bb__dot { border-color: var(--bb-red); border-width: 6px; }
.cpr-bb__opt.is-on { border-color: var(--bb-red); background: #fdf5f5; }
.cpr-bb__opttext { font-size: 15.5px; line-height: 1.35; }
.cpr-bb__opt { min-height: 66px; }


/* ---------- buttons ---------- */

/* Only a bare reset for every button. The old rule here was `.cpr-bb button`,
   which is specificity (0,1,1) and quietly out-ranked every single-class
   component rule below it - tiles and pills lost their borders to it. The
   CTA styling now lives on the two buttons that actually want it. */
.cpr-bb button { font: inherit; cursor: pointer; }

.cpr-bb__next, .cpr-bb__back {
  font-weight: 700; border-radius: 8px;
  border: 1.5px solid transparent; padding: 14px 22px; font-size: 16px;
  min-height: 48px; transition: background .15s, opacity .15s;
}
.cpr-bb__next { background: var(--bb-red); color: #fff; width: 100%; margin-top: 14px; font-size: 17px; }
.cpr-bb__next:hover { background: #c31f25; }
.cpr-bb__next[disabled] { background: var(--bb-grey); cursor: not-allowed; }
.cpr-bb__back {
  background: transparent; color: #8b8b8b; border-color: transparent;
  padding: 10px 2px; font-size: 14px; font-weight: 600; min-height: 40px;
}
.cpr-bb__back:hover { color: var(--bb-red); }

/* ---------- picture tiles (what are you selling) ---------- */
.cpr-bb__tiles {
  display: grid; gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cpr-bb__tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 6px 12px;
  border: 1.5px solid #e2e1e1; border-radius: 12px; background: #fff;
  cursor: pointer; font: inherit; color: var(--bb-text);
  transition: border-color .15s, background .15s, transform .08s;
  min-height: 96px;
}
.cpr-bb__tile:hover { border-color: var(--bb-blue); }
.cpr-bb__tile:active { transform: scale(.97); }
.cpr-bb__tile.is-on { border-color: var(--bb-red); background: #fdf5f5; }
.cpr-bb__tiletext { font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }

/* ---------- storage pills ---------- */
.cpr-bb__pills {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}
.cpr-bb__pill {
  padding: 16px 10px; border: 1.5px solid #e2e1e1; border-radius: 12px; background: #fff;
  cursor: pointer; font: inherit; font-size: 17px; font-weight: 700; color: var(--bb-text);
  transition: border-color .15s, background .15s, transform .08s;
  min-height: 56px; text-align: center;
}
.cpr-bb__pill:hover { border-color: var(--bb-blue); }
.cpr-bb__pill:active { transform: scale(.97); }
.cpr-bb__pill.is-on { border-color: var(--bb-red); background: #fdf5f5; }

/* ---------- the line-art icons ---------- */
.cpr-bb__ico {
  flex: none; width: 40px; height: 40px;
  fill: none; stroke: currentColor; stroke-width: 2.8;
  stroke-linecap: round; stroke-linejoin: round;
  color: var(--bb-dark);
}
.cpr-bb__tile .cpr-bb__ico { width: 40px; height: 40px; }
.cpr-bb__opt .cpr-bb__ico { width: 46px; height: 46px; }
/* damage and warnings read red; .af is the filled variant */
.cpr-bb__ico .a { stroke: var(--bb-red); }
.cpr-bb__ico .af { fill: var(--bb-red); }
.cpr-bb__tile.is-on .cpr-bb__ico, .cpr-bb__opt.is-on .cpr-bb__ico { color: var(--bb-red); }

.cpr-bb__tile:focus-visible, .cpr-bb__pill:focus-visible {
  outline: 3px solid var(--bb-blue); outline-offset: 2px;
}

@media (max-width: 380px) {
  .cpr-bb__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- the number ---------- */
.cpr-bb__offer {
  background: var(--bb-dark); color: #fff;
  /* keep white text even if the host page colours p/strong */ border-radius: var(--bb-radius);
  padding: 24px 20px; text-align: center; position: relative; overflow: hidden;
}
.cpr-bb__offer::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M12 5h4v6h6v4h-6v6h-4v-6H6v-4h6z' fill='%23fff' fill-opacity='.04'/%3E%3C/svg%3E");
}
.cpr-bb__offerlabel {
  position: relative; z-index: 1;
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  opacity: .8; margin: 0 0 6px;
}
.cpr-bb__amount {
  position: relative; z-index: 1;
  letter-spacing: -1.5px;
  font-size: 52px; font-weight: 900; line-height: 1; letter-spacing: -1.5px;
  margin: 0; color: #fff;
}
.cpr-bb__amount small { font-size: 22px; font-weight: 800; vertical-align: super; }
.cpr-bb__estimate {
  position: relative; z-index: 1;
  margin: 14px auto 0; max-width: 34ch;
  font-size: 15px; font-weight: 700; line-height: 1.45; color: #fff;
}
.cpr-bb__upnote {
  position: relative; z-index: 1;
  margin: 10px auto 0; max-width: 34ch;
  font-size: 13.5px; line-height: 1.45; color: var(--bb-blue); font-weight: 600;
}

.cpr-bb__credit {
  margin-top: 12px; border: 2px solid var(--bb-blue); border-radius: var(--bb-radius);
  background: #f2fafe; padding: 15px 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.cpr-bb__credit b { color: var(--bb-dark); font-size: 21px; font-weight: 900; }
.cpr-bb__credittext { font-size: 13px; }

/* the competitive pitch */
.cpr-bb__microhead {
  font-size: 10px; font-weight: 700; color: var(--bb-red);
  margin: 0 0 10px; text-transform: uppercase; letter-spacing: 2.5px;
}
.cpr-bb__why { margin: 22px 0 0; }
.cpr-bb__why ul { margin: 0; padding: 0; list-style: none; }
.cpr-bb__why li {
  position: relative; padding: 0 0 0 26px; margin: 0 0 9px; font-size: 14.5px; line-height: 1.45;
}
.cpr-bb__why li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--bb-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17'%3E%3Cpath d='M7.4 3.8h2.2v2.8h2.8v2.2H9.6v2.8H7.4V8.8H4.6V6.6h2.8z' fill='%23fff'/%3E%3C/svg%3E") center/17px no-repeat;
}

/* callouts */
.cpr-bb__warn, .cpr-bb__info {
  border-radius: 8px; padding: 13px 15px; font-size: 13.5px; margin-top: 14px;
  line-height: 1.5;
}
.cpr-bb__warn { background: #fff6e8; border-left: 4px solid #E8A33D; }
.cpr-bb__info { background: #f2fafe; border-left: 4px solid var(--bb-blue); }
.cpr-bb__warn strong, .cpr-bb__info strong { display: block; margin-bottom: 3px; }

/* ---------- confirmation ---------- */
.cpr-bb__code {
  font-size: 34px; font-weight: 900; letter-spacing: 2px;
  color: var(--bb-red); margin: 6px 0 0; font-variant-numeric: tabular-nums;
}
.cpr-bb__bring li { font-size: 14.5px; }

/* what we will and will not buy */
.cpr-bb__buy {
  margin-top: 20px; padding: 15px 17px;
  background: var(--bb-bg); border-radius: 10px;
}
.cpr-bb__buy strong { display: block; font-size: 14px; color: #2D2D3B; margin-bottom: 8px; }
.cpr-bb__buy p { font-size: 13.5px; line-height: 1.5; margin: 0 0 7px; }
.cpr-bb__buy p:last-child { margin-bottom: 0; }
.cpr-bb__yes { color: var(--bb-text); }
.cpr-bb__no { color: #8a4b1d; }

/* the estimate reminder on the confirmation screen */
.cpr-bb__estimatebox {
  margin-top: 14px; padding: 14px 16px; border-radius: 10px;
  background: #fff6e8; border-left: 4px solid #E8A33D;
  font-size: 14px; line-height: 1.5; font-weight: 600; color: #6b4a1c;
}
.cpr-bb__bring li { margin-bottom: 5px; }

/* ---------- grid for the lead form ---------- */
.cpr-bb__grid { display: grid; gap: 13px; grid-template-columns: 1fr 1fr; }
.cpr-bb__grid > .cpr-bb__full { grid-column: 1 / -1; }

/* ---------- misc ---------- */
.cpr-bb__foot {
  border-top: 1px solid #ededed; padding: 13px 20px;
  font-size: 11.5px; color: #8b8b8b; background: #fcfcfc;
}
.cpr-bb__stripe { display: flex; height: 4px; }
.cpr-bb__stripe i { flex: 1; }
.cpr-bb__stripe i:nth-child(1) { background: var(--bb-red); }
.cpr-bb__stripe i:nth-child(2) { background: var(--bb-blue); }
.cpr-bb__stripe i:nth-child(3) { background: var(--bb-dark); }
.cpr-bb__stripe i:nth-child(4) { background: var(--bb-grey); }

.cpr-bb__err { color: #b3181e; font-size: 14px; margin-top: 12px; font-weight: 600; }
.cpr-bb__busy { opacity: .55; pointer-events: none; }

.cpr-bb__sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- phone ---------- */
@media (max-width: 480px) {
  .cpr-bb__body { padding: 16px; }
  .cpr-bb__head { padding: 15px 16px 14px; }
  .cpr-bb__title { font-size: 19px; }
  .cpr-bb__logo { height: 22px; margin-bottom: 10px; }
  .cpr-bb__amount { font-size: 46px; }
  .cpr-bb__ask { font-size: 20px; }
  .cpr-bb__grid { grid-template-columns: 1fr; }
  
  .cpr-bb__credit { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .cpr-bb *, .cpr-bb *::before, .cpr-bb *::after { transition: none !important; }
}
