/* Rétractation E-commerce — styles frontend */

.rde-form-wrap {
	max-width: 640px;
	margin: 0 auto;
}

.rde-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rde-form__row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rde-form__row label {
	font-weight: 600;
	font-size: .9375rem;
}

.rde-form__input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: .9375rem;
	box-sizing: border-box;
	transition: border-color .15s;
}

.rde-form__input:focus {
	outline: none;
	border-color: #0a6cff;
	box-shadow: 0 0 0 3px rgba(10,108,255,.15);
}

.rde-form__textarea {
	resize: vertical;
	min-height: 90px;
}

.rde-form__select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23555'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
}

.rde-form__row--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
}

.rde-form__row--checkbox label {
	font-weight: normal;
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.rde-form__row--checkbox input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.rde-form__help {
	font-size: .875rem;
	color: #555;
	margin: 4px 0 0;
}

.rde-form__static-label {
	margin: 0;
	font-weight: 600;
	font-size: .9375rem;
}

.rde-form__static-value {
	margin: 4px 0 0;
	padding: 10px 12px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.rde-form__required-note {
	font-size: .8125rem;
	color: #888;
	margin: 0;
}

.rde-required {
	color: #c0392b;
}

.rde-form__actions {
	margin-top: 8px;
}

/* Bouton CTA */
.rde-button {
	display: inline-block;
	padding: 12px 22px;
	background: #0a6cff;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background .15s, transform .1s;
}

.rde-button:hover,
.rde-button:focus {
	background: #0057d8;
	color: #fff;
	text-decoration: none;
}

.rde-button:active {
	transform: translateY(1px);
}

.rde-button--cta {
	font-size: 1.0625rem;
	padding: 14px 28px;
}

/* Notices */
.rde-notice {
	padding: 16px 20px;
	border-radius: 6px;
	margin-bottom: 24px;
}

.rde-notice--success {
	background: #eafaf1;
	border: 1px solid #a9dfbf;
	color: #1e8449;
}

.rde-notice--error {
	background: #fdf3f3;
	border: 1px solid #e6b0aa;
	color: #922b21;
}

.rde-notice h3 {
	margin: 0 0 8px;
	font-size: 1rem;
}

.rde-notice p {
	margin: 0 0 8px;
}

.rde-notice p:last-child {
	margin-bottom: 0;
}

/* Section commande sur la page account */
.rde-order-section {
	margin-top: 24px;
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

.rde-order-section h2 {
	margin-top: 0;
	font-size: 1.1rem;
}

.rde-order-section__note {
	color: #666;
	font-style: italic;
}

/* Liste des commandes dans Mon compte */
.rde-account-orders {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rde-account-orders li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid #e0e0e0;
}

.rde-account-orders li:last-child {
	border-bottom: none;
}

/* Suivi */
.rde-tracking__table {
	width: 100%;
	border-collapse: collapse;
}

.rde-tracking__table th,
.rde-tracking__table td {
	padding: 10px 14px;
	border: 1px solid #e0e0e0;
	text-align: left;
}

.rde-tracking__table th {
	background: #f9f9f9;
	width: 200px;
}

/* Statuts (frontend) */
.rde-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: .8125rem;
	font-weight: 600;
}

.rde-status--received   { background: #e8f4fd; color: #0273a1; }
.rde-status--processing { background: #fff3cd; color: #856404; }
.rde-status--accepted   { background: #d4edda; color: #155724; }
.rde-status--refunded   { background: #d1ecf1; color: #0c5460; }
.rde-status--rejected   { background: #f8d7da; color: #721c24; }

/* Menu footer « À propos » */
.rde-footer-nav {
	text-align: center;
	padding: 12px 0;
	font-size: .8125rem;
}

.rde-footer-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 16px;
}

.rde-footer-nav__list a {
	color: inherit;
	opacity: .7;
	text-decoration: underline;
}

.rde-footer-nav__list a:hover {
	opacity: 1;
}

/* Mentions légales */
.rde-legal-notice,
.rde-model-form {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 20px 24px;
	margin: 16px 0;
}

.rde-legal-notice h2 {
	margin-top: 0;
}

.rde-legal-notice__merchant {
	font-size: .875rem;
	color: #666;
}
