/* Exchanges, item issues and store credit (customer pages). */
.rtn { margin: 28px 0; padding: 22px 24px; border: 1px solid var(--portal-border, #eadcd8); border-radius: 16px; background: var(--card, #fffdfb); }
.rtn h2 { margin: 0 0 8px; font-size: 1.25rem; }
.rtn-sub { margin: 22px 0 10px; font-size: 1rem; }
.rtn-lead { margin: 0 0 14px; color: var(--ink-soft, #6b5a5a); font-size: .9rem; line-height: 1.65; }
.rtn-meta { display: block; color: var(--ink-soft, #7a6a6a); font-size: .8125rem; line-height: 1.5; }
.rtn-why { display: block; margin-top: 4px; color: #8a3a30; font-size: .8125rem; }
.rtn-note { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: #f8f0ec; color: #5b4a4a; font-size: .875rem; line-height: 1.55; }
.rtn-note--bad { background: #f9e4e0; color: #8a3a30; }
.rtn-note--good { background: #e6f0df; color: #3f6b2a; }
.rtn-note--warn { background: #fbf1da; color: #7a5a14; }
.rtn-lines { list-style: none; margin: 0; padding: 0; }
.rtn-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--portal-border, #eadcd8); }
.rtn-line:first-child { border-top: 0; }
.rtn-requests { display: grid; gap: 14px; }
.rtn-card { padding: 16px 18px; border: 1px solid var(--portal-border, #eadcd8); border-radius: 14px; background: #fff; }
.rtn-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.rtn-badge { flex: none; padding: 3px 12px; border-radius: 999px; background: #eee; color: #555; font-size: .72rem; font-weight: 600; }
.rtn-badge--completed { background: #dcead4; color: #3f6b2a; }
.rtn-badge--rejected, .rtn-badge--inspection_issue, .rtn-badge--cancelled { background: #f6dcd8; color: #8a3a30; }
.rtn-badge--requested, .rtn-badge--received_inspecting, .rtn-badge--credit_pending, .rtn-badge--refund_pending { background: #f4e2b8; color: #8a6a1f; }
.rtn-badge--approved_awaiting_item, .rtn-badge--awaiting_dropoff, .rtn-badge--in_transit { background: #dde3ee; color: #3d4f6e; }
.rtn-approved { margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: #eef2f8; font-size: .875rem; line-height: 1.55; }
.rtn-approved p { margin: 0 0 6px; }
.rtn-quote { padding-left: 10px; border-left: 3px solid #b9c5dc; }
.rtn-track { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 8px; }
.rtn-track label { margin: 0; font-size: .8125rem; }
.rtn-track input { display: block; width: 190px; height: 38px; margin-top: 4px; }
.rtn-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.rtn-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--portal-border, #eadcd8); }
.rtn-link { padding: 0; border: 0; background: none; color: var(--rose, #8c3b55); font: inherit; font-size: .8125rem; text-decoration: underline; cursor: pointer; }
.rtn-timeline { margin-top: 10px; font-size: .8125rem; color: var(--ink-soft, #6b5a5a); }
.rtn-timeline summary { cursor: pointer; }
.rtn-timeline ol { margin: 8px 0 0; padding-left: 18px; }
.rtn-timeline li span { display: inline-block; margin-right: 6px; color: #9a8a8a; }
.rtn-balance { margin: 0; font-size: 1.5rem; font-weight: 600; }
.rtn-balance .rtn-meta { display: inline; font-weight: 400; }

.rtn-overlay { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(26, 10, 16, .5); }
.rtn-dialog { position: relative; width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px clamp(20px, 4vw, 34px); border-radius: 20px; background: var(--card, #fffdfb); box-shadow: 0 24px 60px rgba(26, 10, 16, .25); }
.rtn-dialog h2 { margin: 0 34px 4px 0; font-size: 1.35rem; }
.rtn-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; background: none; font-size: 1.7rem; line-height: 1; color: #7a6a6a; cursor: pointer; }
.rtn-dialog form > label, .rtn-dialog [data-rtn-exchange] > label, .rtn-dialog [data-rtn-issue] > label { display: block; margin: 14px 0 0; font-size: .875rem; }
.rtn-dialog select, .rtn-dialog textarea, .rtn-dialog input[type="text"], .rtn-dialog input:not([type]), .rtn-dialog input[type="file"] { width: 100%; margin-top: 6px; box-sizing: border-box; }
.rtn-choice { margin: 16px 0 0; padding: 0; border: 0; }
.rtn-choice legend { padding: 0; margin-bottom: 6px; font-size: .875rem; font-weight: 600; }
.rtn-choice > label { display: flex !important; align-items: flex-start; gap: 10px; margin: 6px 0 0 !important; padding: 10px 12px; border: 1px solid var(--portal-border, #eadcd8); border-radius: 12px; cursor: pointer; }
.rtn-choice > label.is-off { opacity: .55; cursor: not-allowed; }
.rtn-choice input[type="radio"] { width: 16px; height: 16px; margin: 3px 0 0; flex: none; }
.rtn-choice small { display: block; color: var(--ink-soft, #7a6a6a); font-size: .78rem; font-weight: 400; line-height: 1.45; }
.rtn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 10px; }
.rtn-grid label { margin: 0; font-size: .8125rem; }
.rtn-error { margin: 12px 0 0; color: #8a3a30; font-size: .875rem; }
.rtn-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@media (max-width: 560px) {
  .rtn { padding: 18px 16px; }
  .rtn-line { flex-direction: column; align-items: stretch; }
  .rtn-actions { flex-direction: column-reverse; }
}
.rtn-deadline { margin: 8px 0; padding: 8px 12px; border-radius: 8px; background: #eef5ea; color: #3f6b2a; }
.rtn-deadline--late { background: #f6dcd8; color: #8a3a30; }
