/* Rive Refund System — Frontend CSS */

/* Badge stato */
.rrs-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.rrs-status--pending    { background: #dbeafe; color: #1d4ed8; }
.rrs-status--processing { background: #fef9c3; color: #854d0e; }
.rrs-status--on-hold    { background: #f3f4f6; color: #374151; }
.rrs-status--approved   { background: #dcfce7; color: #166534; }
.rrs-status--rejected   { background: #fee2e2; color: #991b1b; }
.rrs-status--refunded   { background: #e0f2fe; color: #075985; }
.rrs-status--completed  { background: #dcfce7; color: #166534; }
.rrs-status--cancelled  { background: #f3f4f6; color: #6b7280; }

/* Nuovo ordine button */
.rrs-btn-new {
	margin-bottom: 20px;
}

/* Barra stato dettaglio */
.rrs-request-status-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding: 12px 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
}

.rrs-request-date {
	color: #6b7280;
	font-size: 13px;
	margin-left: auto;
}

/* Messaggi */
.rrs-messages-section {
	margin-top: 30px;
}

.rrs-messages-list {
	margin-bottom: 20px;
}

.rrs-message {
	padding: 14px 16px;
	margin-bottom: 12px;
	border-radius: 8px;
}

.rrs-message--user {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}

.rrs-message--admin {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
}

.rrs-message-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 6px;
	font-size: 13px;
}

.rrs-message-header time {
	color: #6b7280;
}

.rrs-message-body {
	line-height: 1.6;
}

.rrs-message-attachment {
	margin-top: 8px;
	font-size: 13px;
}

.rrs-send-message-form {
	background: #f9fafb;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
}

.rrs-send-message-form h5 {
	margin: 0 0 10px;
}

.rrs-send-message-form textarea {
	width: 100%;
	box-sizing: border-box;
}

/* Form nuova richiesta */
.rrs-new-request {
	max-width: 700px;
}

.rrs-products-table {
	width: 100%;
	margin-bottom: 20px;
	border-collapse: collapse;
}

.rrs-products-table tr:nth-child(even) {
	background: #f9fafb;
}

.rrs-products-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #e5e7eb;
}

.rrs-non-refundable-note {
	color: #9ca3af;
	font-style: italic;
	font-size: 12px;
}

.rrs-qty-input {
	width: 60px;
}

.rrs-policy-note {
	color: #6b7280;
	font-size: 13px;
	font-style: italic;
	margin-top: 16px;
}

/* Coupon notice */
.rrs-coupon-notice {
	background: #fefce8;
	border-color: #fde047;
	margin: 20px 0;
}

/* Risultati AJAX */
.rrs-form-result {
	padding: 12px 16px;
	border-radius: 6px;
	margin: 10px 0;
}

.rrs-form-result--success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.rrs-form-result--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Spinner */
.rrs-loading::after {
	content: ' ⏳';
}
