/* Intrusive Robotics RMA — front-end */

.ir-rma-form-wrap { max-width: 760px; }
.ir-rma-help { font-size: 0.9em; color: #555; }
.ir-rma-req { color: #cc1818; }

.ir-rma-field { margin: 0 0 14px; }
.ir-rma-field label { display: block; margin-bottom: 4px; }
.ir-rma-field input[type="text"],
.ir-rma-field input[type="email"],
.ir-rma-field input[type="date"],
.ir-rma-field select,
.ir-rma-field textarea { width: 100%; box-sizing: border-box; }

.ir-rma-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .ir-rma-grid { grid-template-columns: 1fr; } }

.ir-rma-items { margin: 8px 0 18px; }
.ir-rma-item { border: 1px solid #e2e2e2; border-radius: 6px; padding: 12px 14px; margin-bottom: 10px; }
.ir-rma-item__head { font-size: 1.02em; }
.ir-rma-item__head input { margin-right: 6px; }
.ir-rma-qty { color: #777; font-size: 0.85em; margin-left: 6px; }
.ir-rma-item__fields { margin-top: 10px; padding-left: 24px; }
.ir-rma-label { display: block; font-weight: 600; font-size: 0.9em; margin-bottom: 4px; }
.ir-rma-serials { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ir-rma-serial { font-weight: normal; }
.ir-rma-serial-text { width: 100%; box-sizing: border-box; }

.ir-rma-notice { padding: 10px 14px; border-radius: 5px; margin: 0 0 16px; }
.ir-rma-notice--success { background: #edf7ed; border: 1px solid #b6e0b6; }
.ir-rma-notice--error { background: #fdeded; border: 1px solid #f0b6b6; }
.ir-rma-notice--info { background: #eef4fb; border: 1px solid #c2d6ec; }

.ir-rma-submit { margin-top: 8px; }

/* Status badges (shared customer/admin) */
.ir-rma-badge {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
	background: #eceff1;
	color: #333;
}
.ir-rma-badge--requested { background: #e7f0fb; color: #1a5fb4; }
.ir-rma-badge--under_review { background: #fff4d6; color: #8a6d00; }
.ir-rma-badge--approved { background: #e2f3e2; color: #1d6f1d; }
.ir-rma-badge--denied { background: #fde2e2; color: #a31515; }
.ir-rma-badge--awaiting_return { background: #f0e7fb; color: #6a32b4; }
.ir-rma-badge--received { background: #e0f3f5; color: #11707a; }
.ir-rma-badge--replacement_shipped { background: #e2eefb; color: #1857b4; }
.ir-rma-badge--closed { background: #eceff1; color: #555; }

.ir-rma-history { list-style: none; padding-left: 0; }
.ir-rma-history li { padding: 4px 0; border-bottom: 1px solid #eee; }
.ir-rma-history__date { color: #888; font-size: 0.85em; margin-right: 8px; }

.ir-rma-order-section { margin-top: 24px; }
