.r-instant-quote {
  margin-top: 16px;
  padding: 22px;
  background: linear-gradient(135deg, #f7f5ed 0%, #eef4e9 100%);
  border-color: rgba(45, 90, 40, 0.28);
  box-shadow: var(--r-shadow-sm);
  font-family: var(--r-body);
  color: var(--r-ink);
}

.r-instant-quote__header,
.r-instant-quote__actions,
.r-instant-quote__destination {
  display: flex;
  align-items: center;
}

.r-instant-quote__header {
  justify-content: space-between;
  gap: 16px;
}

.r-instant-quote__heading {
  margin: 10px 0 4px;
  font-family: var(--r-display);
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.r-instant-quote__copy,
.r-instant-quote__feedback,
.r-instant-quote__note {
  color: var(--r-ink-2);
}

.r-instant-quote__copy {
  max-width: 720px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.r-instant-quote__actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.r-instant-quote__destination {
  min-height: 44px;
  gap: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--r-line-strong);
  border-radius: var(--r-radius);
  font-size: 14px;
}

.r-instant-quote__destination strong {
  font-family: var(--r-mono);
}

.r-instant-quote__feedback {
  margin: 10px 0 0;
  font-size: var(--r-fs-sm);
}

/* A failed lane used to read as quiet grey text and was easy to miss entirely —
   it is the one message the buyer has to act on. */
.r-instant-quote__feedback.is-error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #f0c9c2;
  border-left: 3px solid var(--r-alert, #b3341f);
  border-radius: var(--r-radius);
  background: #fdf3f1;
  color: #7c2414;
  font-weight: 600;
}

.r-instant-quote__feedback.is-error::before {
  content: "!";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--r-alert, #b3341f);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

/* The two equipment options ARE the result, so they are the primary content of
   the panel rather than a footnote under one headline number. Nothing is
   pre-selected: the cheaper option is not automatically the right one, and
   flatbed vs van carries real handling implications the buyer has to weigh. */
.r-instant-quote__options {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.r-instant-quote__option {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 16px;
  padding: 16px 18px;
  border: 1px solid rgba(45, 90, 40, 0.28);
  border-radius: var(--r-radius);
  background: var(--r-surface, #fff);
  box-shadow: var(--r-shadow-sm);
}

.r-instant-quote__option-label {
  flex: 1 1 auto;
  color: var(--r-ink);
  font-size: 16px;
  font-weight: 700;
}

.r-instant-quote__option-amount {
  font-family: var(--r-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--r-green);
  /* Must be allowed to wrap/shrink — "$11,170.33 delivered" overflows the
     card on narrow phones if kept on one line. */
  max-width: 100%;
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  .r-instant-quote__option-amount {
    font-size: 21px;
  }
}

.r-instant-quote__option-capacity {
  flex: 1 0 100%;
  color: var(--r-ink-2);
  font-size: 13px;
}

.r-instant-quote__option-breakdown {
  flex: 1 0 100%;
  margin-top: 2px;
  color: var(--r-ink-2);
  font-size: 12.5px;
}

.r-instant-quote__option-cta {
  flex: 1 1 100%;
  margin-top: 12px;
  justify-content: center;
  /* .r-btn is nowrap with a fixed height — "Order this truckload — 47,040 lbs"
     needs 290px, more than a phone-width card can offer (190–260px inside the
     product-page panel). Let the label wrap and the button grow taller. */
  min-width: 0;
  white-space: normal;
  height: auto;
  min-height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.r-instant-quote__result {
  display: block;
  margin-top: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(45, 90, 40, 0.24);
  border-radius: var(--r-radius);
}

.r-instant-quote__result[hidden] {
  display: none;
}

.r-instant-quote__result-heading {
  margin: 0;
  font-family: var(--r-display);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--r-ink);
}

.r-instant-quote__note {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.r-instant-quote__manual {
  color: var(--r-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 639px) {
  .r-instant-quote {
    padding: 18px;
  }

  .r-instant-quote__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .r-instant-quote__header {
    align-items: flex-start;
  }

  .r-instant-quote__header > svg {
    flex: 0 0 40px;
  }

  .r-instant-quote__actions .r-btn,
  .r-instant-quote__destination {
    width: 100%;
  }

  .r-instant-quote__result {
    padding: 15px;
  }
}

/* Follow-up ("email or text me this quote") card: bare .r-card has no padding
   of its own, so match the sibling instant-quote cards' inset. */
.r-followup {
  padding: 22px;
}

@media (max-width: 640px) {
  .r-followup {
    padding: 18px;
  }
}
