/* Pricing Review is wide enough to keep its ordinary decision buttons together.
   Small screens still wrap so every action remains touchable. */
.rr-review-actions .j360-btn,
.rr-review-actions .btn {
  white-space: nowrap;
  height: 24px;
  line-height: 22px;
  padding: 0 9px;
  box-sizing: border-box;
  font-size: 10px;
}

@media (min-width: 900px) {
  .rr-review-actions {
    flex-wrap: nowrap !important;
  }
}

/* The "Take <source> instead (<rate>)" label is the one that grows with the source's name and the size of the figure. On a row that cannot wrap
   it is the button that gives way (ellipsis), so the row never runs past the card whatever the font is; every other button keeps its full label. */
.rr-review-actions .rr-alt-btn {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rr-review-actions .j360-btn:not(.rr-alt-btn),
.rr-review-actions .btn:not(.rr-alt-btn) {
  flex-shrink: 0;
}

/* The estimate popup's two decisions are touch targets: tall enough for a thumb on a phone on site. */
.rr-alt-decision .j360-btn {
  min-height: 44px;
  padding: 0 14px;
}

/* Signature Review Modal & Card Layout */
#rrReviewOverlay .rr-modal-box,
.rr-modal-box {
  width: min(96vw, 1000px) !important;
  max-width: 1000px !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
}

.rr-review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rr-review-card:hover {
  border-color: rgba(240, 192, 0, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rr-benchmark-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

