.rrw-account-returns .rrw-status-badge {
	display: inline-block;
	color: #fff;
	padding: 3px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.rrw-account-returns .rrw-detail-items {
	margin: 0 0 10px;
	padding-left: 0;
	list-style: none;
}

.rrw-account-returns .rrw-detail-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 12px;
}

.rrw-account-returns .rrw-detail-item img {
	flex-shrink: 0;
}

.rrw-account-returns .rrw-detail-item-info {
	flex: 1;
}

.rrw-account-returns .rrw-admin-message {
	background: #f0f6ff;
	border-left: 3px solid #2271b1;
	padding: 8px 12px;
}

.rrw-account-returns .rrw-item-status {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}
.rrw-item-status-accepted { color: #2a7a3b; }
.rrw-item-status-rejected { color: #a4282e; }

.rrw-return-form .form-row {
	margin-bottom: 1.2em;
}

.rrw-return-form select,
.rrw-return-form textarea,
.rrw-return-form input[type="number"],
.rrw-return-form input[type="text"] {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
}

/*
 * Filet de sécurité mobile : sur un très petit écran, le point de retrait
 * "#rrw-dropoff-point" peut contenir des libellés longs (nom + adresse du
 * point). Sans "box-sizing: border-box" ni contrainte de largeur propre au
 * conteneur, un <select> avec un contenu long peut dépasser la largeur de
 * l'écran et se retrouver visuellement hors champ (donc "invisible" pour le
 * client), même s'il est bien présent et fonctionnel dans le code. On
 * repasse explicitement en pleine largeur du conteneur en dessous de 480px.
 */
@media screen and (max-width: 480px) {
	.rrw-return-form select,
	#rrw-dropoff-select-row select {
		max-width: 100%;
	}
}

.rrw-items-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
	table-layout: fixed;
}

.rrw-items-table th,
.rrw-items-table td {
	border: 1px solid #e2e2e2;
	padding: 10px;
	text-align: left;
	vertical-align: top;
	word-wrap: break-word;
}

.rrw-items-table .rrw-item-details {
	width: 100%;
	min-height: 40px;
	margin-top: 4px;
	box-sizing: border-box;
}

.rrw-items-table .rrw-item-reason {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.rrw-account-returns .rrw-policy-text {
	background: #f7f7f7;
	border-left: 3px solid #999;
	padding: 10px 14px;
	margin-bottom: 1.2em;
}

.rrw-excluded-note,
.rrw-refund-method-note {
	font-size: 13px;
	color: #666;
	background: #fafafa;
	border-left: 3px solid #ccc;
	padding: 8px 12px;
	margin: 0 0 12px;
}

.rrw-photo-label {
	display: block;
	margin-top: 6px;
	font-size: 12px;
}

/*
 * Version mobile : le tableau des articles à retourner passe en mode
 * "cartes" empilées, avec le nom de la colonne (dont le motif) affiché
 * devant chaque valeur, pour rester lisible sans défilement horizontal.
 */
@media screen and (max-width: 680px) {
	.rrw-items-table,
	.rrw-items-table thead,
	.rrw-items-table tbody,
	.rrw-items-table tr,
	.rrw-items-table th,
	.rrw-items-table td {
		display: block;
		width: 100% !important;
	}

	.rrw-items-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.rrw-items-table tr.rrw-item-row {
		border: 1px solid #ddd;
		border-radius: 6px;
		margin-bottom: 16px;
		padding: 4px 0;
		background: #fff;
	}

	.rrw-items-table td {
		border: none;
		border-bottom: 1px solid #f0f0f0;
		padding: 8px 12px;
	}

	.rrw-items-table td:last-child {
		border-bottom: none;
	}

	.rrw-items-table td::before {
		content: attr(data-label);
		display: block;
		font-weight: 600;
		font-size: 12px;
		text-transform: uppercase;
		letter-spacing: .02em;
		color: #666;
		margin-bottom: 4px;
	}

	.rrw-items-table td[data-label=""]::before {
		display: none;
	}

	.rrw-items-table .rrw-item-checkbox {
		transform: scale(1.3);
		margin-right: 6px;
	}

	.rrw-items-table .rrw-item-reason,
	.rrw-items-table .rrw-item-details {
		font-size: 16px; /* évite le zoom automatique iOS au focus */
	}
}

.rrw-feedback {
	padding: 12px 16px;
	border-radius: 4px;
	margin: 1em 0;
}

.rrw-feedback-success {
	background: #eafaf0;
	border: 1px solid #2a7a3b;
	color: #205c2c;
}

.rrw-feedback-error {
	background: #fdeaea;
	border: 1px solid #a4282e;
	color: #7d1f24;
}

.rrw-copy-code {
	cursor: pointer;
	background: #f7f7f7;
	padding: 4px 10px;
	border: 1px dashed #ccc;
	border-radius: 3px;
	transition: background-color .15s ease;
}

.rrw-copy-code:hover {
	background: #eef6ff;
	border-color: #2271b1;
}

.rrw-copy-code-done {
	background: #eafaf0 !important;
	border-color: #2a7a3b !important;
	color: #205c2c;
}

.rrw-refund-choice-box {
	background: #f0f6ff;
	border-left: 3px solid #2271b1;
	padding: 12px 16px;
	margin-top: 10px;
}

.rrw-refund-choice-box .form-row {
	margin-bottom: 10px;
}

.rrw-refund-choice-box select,
.rrw-refund-choice-box input[type="text"] {
	max-width: 320px;
	width: 100%;
}

.rrw-refund-choice-feedback {
	margin-top: 8px;
	font-size: 13px;
}

.rrw-dropoff-box {
	background: #fff7ed;
	border: 1px solid #fdba74;
	border-radius: 4px;
	padding: 12px 16px;
	margin: 10px 0;
	font-size: 14px;
}

.rrw-dropoff-box p {
	margin: 0 0 8px;
}

.rrw-dropoff-box p:last-child {
	margin-bottom: 0;
}

.rrw-dropoff-box .rrw-dropoff-expired {
	color: #a4282e;
	font-weight: 600;
}
