/* =============================================================================
   WyRetract — Front-end form styles
   Décret n°2026-3, parcours 4 étapes
   ============================================================================= */

.wyret-retractation-wrap {
	max-width: 720px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Intro */
.wyret-intro {
	font-size: 15px;
	line-height: 1.6;
}

/* Legal mentions */
.wyret-legal-mentions {
	background: #fafafa;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 20px 24px;
	margin-bottom: 28px;
	font-size: 14px;
}
.wyret-legal-mentions h3 {
	margin-top: 0;
	font-size: 15px;
	color: #1a3a5c;
}
.wyret-legal-ref {
	font-size: 12px;
	color: #888;
	margin-bottom: 0;
}

/* Form container */
.wyret-form-container {
	overflow: hidden;
	margin-top: 20px;
	margin-bottom: 28px;
}

/* -------------------------------------------------------------------------
   Progress bar
   ------------------------------------------------------------------------- */
.wyret-progress {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 20px 24px 16px;
	gap: 0;
}

.wyret-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex: 1;
	position: relative;
}

/* connecting line between dots */
.wyret-progress-step + .wyret-progress-step::before {
	content: '';
	position: absolute;
	top: 13px;
	right: 50%;
	width: 100%;
	height: 2px;
	background: #e5e7eb;
	z-index: 0;
	transition: background 0.3s;
}
.wyret-progress-step.done + .wyret-progress-step::before,
.wyret-progress-step.active + .wyret-progress-step::before {
	background: #1a3a5c;
}

.wyret-progress-dot {
	position: relative;
	z-index: 1;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #e5e7eb;
	border: 2px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s, border-color 0.25s;
}
.wyret-progress-step.active .wyret-progress-dot {
	background: #1a3a5c;
	border-color: #1a3a5c;
	box-shadow: 0 0 0 4px rgba(26, 58, 92, 0.12);
}
.wyret-progress-step.done .wyret-progress-dot {
	background: #1a3a5c;
	border-color: #1a3a5c;
}
.wyret-progress-step.done .wyret-progress-dot::after {
	content: '';
	display: block;
	width: 6px;
	height: 10px;
	border: 2px solid #fff;
	border-top: none;
	border-left: none;
	transform: rotate(45deg) translate(-1px, -1px);
}

.wyret-progress-label {
	font-size: 11px;
	font-weight: 500;
	color: #9ca3af;
	text-align: center;
	transition: color 0.25s;
	white-space: nowrap;
}
.wyret-progress-step.active .wyret-progress-label { color: #1a3a5c; font-weight: 700; }
.wyret-progress-step.done  .wyret-progress-label { color: #6b7280; }

/* -------------------------------------------------------------------------
   Step 1 — Hero
   ------------------------------------------------------------------------- */
.wyret-step-hero {
	padding: 48px 32px 40px;
	text-align: center;
	background: #fff;
}

.wyret-hero-icon {
	width: 72px;
	height: 72px;
	background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	box-shadow: 0 8px 24px rgba(26, 58, 92, 0.22);
}
.wyret-hero-icon svg {
	width: 34px;
	height: 34px;
	stroke: #fff;
}

.wyret-hero-title {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	color: #111827;
	line-height: 1.25;
}

.wyret-reassurance {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}
.wyret-reassurance span {
	display: inline-block;
	padding: 4px 12px;
	background: #eef5ff;
	color: #1a3a5c;
	border: 1px solid #c0d8f0;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.wyret-days-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fffbe6;
	border: 1px solid #f0d060;
	color: #7a6000;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 28px;
}
.wyret-days-badge svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	fill: #b08000;
}

.wyret-hero-cta {
	display: block;
	width: 100%;
	max-width: 320px;
	margin: 0 auto 16px;
	padding: 14px 24px;
	font-size: 16px;
}

.wyret-hero-legal {
	margin: 0;
	font-size: 11px;
	color: #9ca3af;
}

/* Steps */
.wyret-step {
	padding: 28px 32px;
	border-bottom: 1px solid #f0f0f0;
	background: #fff;
}
.wyret-step:last-child {
	border-bottom: none;
}
.wyret-step-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}
.wyret-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: #1a3a5c;
	color: #fff;
	border-radius: 50%;
	font-weight: 700;
	font-size: 14px;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(26, 58, 92, 0.2);
}
.wyret-step-header h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #1a3a5c;
}
.wyret-step-success .wyret-step-icon {
	font-size: 28px;
}

/* Fields */
.wyret-field {
	margin-bottom: 16px;
}
.wyret-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
	color: #333;
}
.wyret-field input[type="text"],
.wyret-field input[type="email"],
.wyret-field textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.15s;
}
.wyret-field input:focus,
.wyret-field textarea:focus {
	border-color: #1a3a5c;
	outline: none;
	box-shadow: 0 0 0 2px rgba(26, 58, 92, 0.15);
}
.wyret-field textarea[readonly] {
	background: #f5f5f5;
	color: #555;
}
.wyret-field small {
	display: block;
	font-size: 12px;
	color: #888;
	margin-top: 4px;
}
.wyret-req { color: #c00; }

/* Buttons */
.wyret-btn-primary {
	background: #1a3a5c;
	color: #fff;
	border: none;
	padding: 11px 22px;
	border-radius: 5px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}
.wyret-btn-primary:hover { background: #0e253f; }
.wyret-btn-primary:disabled { background: #999; cursor: not-allowed; }

.wyret-btn-confirm {
	background: #1a7a3a;
	font-size: 16px;
	padding: 13px 26px;
}
.wyret-btn-confirm:hover { background: #125c2b; }

.wyret-btn-secondary {
	background: #fff;
	color: #1a3a5c;
	border: 2px solid #1a3a5c;
	padding: 9px 18px;
	border-radius: 5px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.15s;
	margin-bottom: 20px;
}
.wyret-btn-secondary:hover { background: #f0f6ff; }
.wyret-btn-secondary:disabled { opacity: 0.6; cursor: not-allowed; }

.wyret-btn-link {
	background: none;
	border: none;
	color: #1a3a5c;
	cursor: pointer;
	font-size: 14px;
	padding: 11px 22px;
	text-decoration: underline;
	margin-left: 12px;
}

/* Errors */
.wyret-error {
	background: #fdf0f0;
	border: 1px solid #e0a0a0;
	color: #c00;
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 12px;
	font-size: 14px;
}

/* Step 3 recap */
.wyret-recap {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 20px;
}
.wyret-recap-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wyret-recap-table td { padding: 6px 10px; border-bottom: 1px solid #eee; vertical-align: top; }
.wyret-recap-table td:first-child { color: #666; width: 35%; }

.wyret-confirm-notice {
	background: #fffbe6;
	border: 1px solid #f0d060;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 13px;
	margin-bottom: 20px;
}

/* Step 4 success */
#wyret-step-4 .wyret-step-header { color: #1a7a3a; }
#wyret-success-message {
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 14px;
	color: #1a7a3a;
	font-weight: 600;
}
.wyret-step4-ref {
	background: #eefaf1;
	border: 1px solid #9de0b5;
	padding: 10px 16px;
	border-radius: 4px;
	margin-bottom: 14px;
	font-size: 14px;
}
.wyret-step4-email {
	font-size: 13px;
	color: #555;
}

/* Paper form (details/summary) */
.wyret-formulaire-type {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 0;
	margin-bottom: 20px;
	font-size: 14px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.wyret-formulaire-type summary {
	padding: 14px 18px;
	cursor: pointer;
	font-weight: 600;
	color: #1a3a5c;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
}
.wyret-formulaire-type summary::-webkit-details-marker { display: none; }
.wyret-formulaire-type summary svg {
	width: 16px;
	height: 16px;
	fill: #1a3a5c;
	flex-shrink: 0;
}
.wyret-formulaire-type-content {
	padding: 16px 20px;
	border-top: 1px solid #f0f0f0;
}
.wyret-formulaire-type-text {
	background: #f9f9f9;
	border: 1px dashed #ccc;
	padding: 14px 18px;
	border-radius: 4px;
	font-family: Georgia, serif;
	font-size: 13px;
	line-height: 1.7;
}

/* My Account button block */
.wyret-order-action {
	margin-top: 20px;
	padding: 18px 20px;
	background: #f0f6ff;
	border: 1px solid #c0d8f0;
	border-radius: 6px;
}
.wyret-info-text { margin-bottom: 12px; font-size: 14px; }

/* !important needed to override WooCommerce theme button resets */
.wyret-btn-retractation {
	background: var(--wyret-btn-bg, #1a3a5c) !important;
	color: var(--wyret-btn-color, #ffffff) !important;
	border-radius: var(--wyret-btn-radius, 4px) !important;
	border: none !important;
	font-weight: 600;
	text-decoration: none;
}
.wyret-btn-retractation:hover {
	background: var(--wyret-btn-bg, #1a3a5c) !important;
	color: var(--wyret-btn-color, #ffffff) !important;
	filter: brightness(0.88) !important;
}

.wyret-expired,
.wyret-excluded,
.wyret-pending {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
}
.wyret-expired  { background: #f9f9f9; color: #888; border: 1px solid #ddd; }
.wyret-excluded { background: #fffbe6; color: #7a6000; border: 1px solid #e0c830; }
.wyret-pending  { background: #eef5ff; color: #1a3a5c; border: 1px solid #c0d8f0; }

/* Item selection checkboxes (Lot 5 partial withdrawal) */
.wyret-items-list {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 6px 12px;
}

.wyret-item-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #eeeeee;
	font-size: 14px;
	cursor: pointer;
	line-height: 1.4;
}

.wyret-item-check:last-child {
	border-bottom: none;
	padding-bottom: 2px;
}

.wyret-item-check input[type="checkbox"] {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	cursor: pointer;
	accent-color: #1a3a5c;
}

.wyret-item-check input[type="checkbox"]:focus-visible {
	outline: 2px solid #1a3a5c;
	outline-offset: 2px;
}

.wyret-item-meta {
	font-size: 12px;
	color: #888;
}

/* Utility */
.wyret-hidden { display: none !important; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.wyret-btn-primary,
	.wyret-btn-secondary {
		transition: none;
	}
}
