/**
 * Styles du formulaire de rétractation.
 * Volontairement neutres pour s'intégrer à n'importe quel thème client.
 */

.wbr-card {
	max-width: 640px;
	margin: 30px auto;
	padding: 28px;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.wbr-header {
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid #eee;
}

.wbr-title {
	margin: 0 0 6px;
	font-size: 1.4em;
}

.wbr-subtitle {
	margin: 0;
	color: #666;
	font-size: 0.95em;
}

.wbr-row {
	margin-bottom: 22px;
}

.wbr-label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.wbr-identity {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.wbr-identity input {
	flex: 1;
	min-width: 200px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #f6f6f6;
	color: #555;
}

.wbr-hint {
	margin: 8px 0 0;
	font-size: 0.85em;
	color: #888;
}

.wbr-products {
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
}

.wbr-product {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #f0f0f0;
}

.wbr-product:last-child {
	border-bottom: none;
}

.wbr-check input {
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.wbr-product-info {
	flex: 1;
}

.wbr-product-name {
	display: block;
	font-weight: 600;
	cursor: pointer;
}

.wbr-product-meta {
	font-size: 0.85em;
	color: #888;
	margin-top: 2px;
}

.wbr-product-qty input {
	width: 64px;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 6px;
	text-align: center;
}

.wbr-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-family: inherit;
	resize: vertical;
}

.wbr-notice {
	padding: 14px 16px;
	background: #f6f8fb;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 0.9em;
	color: #444;
	margin-bottom: 22px;
}

.wbr-card .wbr-submit,
.wbr-card button.wbr-submit,
.woocommerce .wbr-card .wbr-submit {
	width: 100% !important;
	padding: 14px !important;
	border: none !important;
	border-radius: 8px !important;
	background: #2b3a57 !important;
	color: #fff !important;
	font-size: 1em !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: filter 0.2s ease !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: normal !important;
	text-decoration: none !important;
}

.wbr-card .wbr-submit:hover,
.wbr-card button.wbr-submit:hover,
.woocommerce .wbr-card .wbr-submit:hover {
	filter: brightness(0.85) !important;
	opacity: 1 !important;
}

/* Bouton dans la liste Mon Compte > Commandes */
a.woocommerce-button.button.wbr_retractation,
.woocommerce-orders-table__cell-order-actions a.wbr_retractation,
td.woocommerce-orders-table__cell-order-actions .wbr_retractation,
body .woocommerce-orders-table__cell-order-actions a.wbr_retractation,
html body a.wbr_retractation,
html body a.button.wbr_retractation,
html body a.woocommerce-button.wbr_retractation,
html body .woocommerce-MyAccount-content a.wbr_retractation {
	background: #2b3a57 !important;
	background-color: #2b3a57 !important;
	color: #fff !important;
	border-color: #2b3a57 !important;
	white-space: nowrap !important;
	width: auto !important;
	min-width: unset !important;
	overflow: visible !important;
	display: inline-block !important;
	padding: 8px 14px !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	text-decoration: none !important;
	text-transform: none !important;
	line-height: 1.4 !important;
}

a.woocommerce-button.button.wbr_retractation:hover,
html body a.wbr_retractation:hover,
html body a.button.wbr_retractation:hover {
	filter: brightness(0.85) !important;
	opacity: 1 !important;
}

a.woocommerce-button.button.wbr_retractation:visited,
html body a.wbr_retractation:visited,
html body a.button.wbr_retractation:visited {
	color: #fff !important;
}

/* Lien bouton sur la page détail commande */
html body a.wbr-retract-link,
html body .woocommerce a.wbr-retract-link {
	text-decoration: none !important;
	box-shadow: none !important;
}

html body a.wbr-retract-link:visited {
	color: inherit !important;
}

html body a.wbr-retract-link:hover,
html body .woocommerce a.wbr-retract-link:hover {
	filter: brightness(0.85) !important;
	opacity: 1 !important;
}

.wbr-legal-form {
	margin-bottom: 22px;
	padding: 16px 18px;
	background: #fffbeb;
	border: 1px solid #f5e6b8;
	border-radius: 8px;
}

.wbr-legal-form h2 {
	margin: 0 0 8px;
	font-size: 1em;
	font-weight: 600;
}

.wbr-legal-form p {
	margin: 4px 0;
	font-size: 0.9em;
	color: #666;
}

.wbr-legal-form blockquote {
	margin: 10px 0 0;
	padding: 12px 16px;
	background: #fff;
	border-left: 3px solid #d4a853;
	border-radius: 4px;
	font-size: 0.9em;
	color: #555;
}

.wbr-legal-form blockquote p {
	margin: 4px 0;
}

.wbr-item-excluded {
	opacity: 0.5;
}

.wbr-excluded-badge {
	display: inline-block;
	padding: 2px 8px;
	background: #fee2e2;
	color: #991b1b;
	font-size: 0.8em;
	border-radius: 4px;
	margin-left: 8px;
}
