/*
 * Front-end styles for [onzly_products] and [compte].
 * Mirrors the admin palette (admin/src/style.scss) for visual consistency —
 * plain CSS here since there is no front-end build step (see CLAUDE note:
 * "rien de partagé avec l'admin, réutiliser variables/classes").
 */

:root {
	--onzly-front-bg: #f5f6fa;
	--onzly-front-card: #ffffff;
	--onzly-front-text: #111827;
	--onzly-front-muted: #6b7280;
	--onzly-front-border: #e5e7eb;
	--onzly-front-primary: #2563eb;
	--onzly-front-radius: 12px;
}

.onzly-front-muted {
	color: var(--onzly-front-muted);
}

.onzly-front-card {
	background: var(--onzly-front-card);
	border: 1px solid var(--onzly-front-border);
	border-radius: var(--onzly-front-radius);
	padding: 24px;
	margin-bottom: 20px;
}

.onzly-front-button {
	display: inline-block;
	background: var(--onzly-front-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 18px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	font-size: 14px;
}

.onzly-front-button:hover,
.onzly-front-button:focus {
	color: #fff;
	opacity: 0.92;
}

.onzly-front-button--secondary {
	background: #475569;
}

.onzly-front-button--danger {
	background: #dc2626;
}

/* --- Grille de produits ([onzly_products]) ------------------------- */

.onzly-front-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 640px) {
	.onzly-front-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.onzly-front-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	/* Espace client ([account]) : jamais plein largeur (menu latéral), 2
	   colonnes au lieu des 3 de [onzly_products]. */
	.onzly-front-grid--compact {
		grid-template-columns: repeat(2, 1fr);
	}
}

.onzly-front-card.onzly-front-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.onzly-front-card--product {
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.onzly-front-card--product:hover {
	transform: translateY(-2px);
	border-color: var(--onzly-front-card-accent, #ffb020) !important;
}

.onzly-front-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	background: var(--onzly-front-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0 12px;
	border-radius: 8px;
}

.onzly-front-badge--active {
	background: #16a34a;
}

.onzly-front-badge--inactive,
.onzly-front-badge--revoked,
.onzly-front-badge--refunded {
	background: #94a3b8;
}

.onzly-front-badge--expired,
.onzly-front-badge--updates-ended {
	background: #b45309;
}

.onzly-front-card__logo {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--onzly-front-bg);
	border-radius: 10px;
	overflow: hidden;
}

.onzly-front-card__logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.onzly-front-card__logo-placeholder {
	font-size: 28px;
}

.onzly-front-card__title {
	margin: 0;
	font-size: 17px;
}

.onzly-front-card__excerpt {
	color: #5b6475;
	font-size: inherit;
	margin: 0;
}

.onzly-front-card__features {
	color: var(--onzly-front-text);
	font-size: 13px;
	margin: 0;
	padding-top: 10px;
	border-top: 1px solid var(--onzly-front-border);
}

/* --- Card produit (bk-product : home vitrine, [onzly_products], espace client) --- */

.onzly-front-card--product.featured-product {
	background: #fff;
}

.onzly-front-card--product .onzly-front-badge {
	color: #fff;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	padding: 3px 10px;
	border-radius: 4px;
	line-height: 1.6em;
}

.onzly-front-card--product .badge-disponible {
	background: #16c79a;
}

.onzly-front-card--product .badge-en-preparation {
	background: #ff6a3d;
}

.onzly-front-card--product .badge-bientot-disponible {
	background: #2ea3f2;
}

.onzly-front-card__features-list {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.onzly-front-card__features-list li {
	font-size: 15px;
	color: #111827;
	margin-bottom: 6px;
}

.onzly-front-card__dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--onzly-front-card-accent, #ff6a3d);
	margin-right: 10px;
	vertical-align: 2px;
}

.onzly-front-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--onzly-front-border);
}

.onzly-front-card__price {
	font-size: 15px;
	font-weight: 400;
	color: #111827;
}

.onzly-front-card__cta {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--onzly-front-primary);
	text-decoration: none;
	white-space: nowrap;
}

.onzly-front-card__cta:hover,
.onzly-front-card__cta:focus {
	text-decoration: underline;
}

.onzly-front-card__cta--disabled {
	color: var(--onzly-front-muted);
	cursor: default;
}

/* --- Espace client ([compte]) --------------------------------------- */

/* Divi 5 (mode Flexbox) place les modules dans des conteneurs flex
   (et_flex_section/et_flex_row/et_flex_module) : leur wrapper interne
   .et_pb_text_inner est lui-même un item flex qui ne s'étire pas à 100%
   par défaut — sans ceci, le width:100% de .onzly-front-account/
   .onzly-checkout ne vaut que 100% de ce wrapper déjà rétréci à la taille
   du contenu, d'où le bloc coincé trop étroit constaté par Khalid malgré le
   CSS correct en apparence. Repéré via DevTools le 09/11/2026 (capture). */
.et_pb_text_inner:has(> .onzly-front-account),
.et_pb_text_inner:has(> .onzly-checkout) {
	width: 100%;
	flex: 1 1 auto;
}

/* Même famille de problème : un ancêtre Divi flex avec overflow non
   "visible" casse `position: sticky` sur .onzly-checkout__summary. */
.et_pb_section:has(.onzly-checkout),
.et_pb_row:has(.onzly-checkout),
.et_pb_column:has(.onzly-checkout),
.et_pb_module:has(.onzly-checkout) {
	overflow: visible;
}

.onzly-front-account {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	background: transparent;
	border: none;
	border-radius: var(--onzly-front-radius);
	padding: 0;
	width: 100%;
	box-sizing: border-box;
}

.onzly-front-account--login {
	display: block;
	max-width: 360px;
	margin: auto;
	background: var(--onzly-front-card);
	border: 1px solid var(--onzly-front-border);
	border-radius: var(--onzly-front-radius);
	padding: 24px;
}

/* wp_login_form() sort un markup WP core non stylé par défaut — on le
   raccroche aux mêmes variables/classes visuelles que le reste du tunnel. */
.onzly-front-account--login #loginform p {
	margin: 0 0 16px;
}

.onzly-front-account--login #loginform label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--onzly-front-text);
	margin-bottom: 6px;
}

.onzly-front-account--login #loginform input.input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid var(--onzly-front-border);
	border-radius: 10px;
	font-size: 14px;
	color: var(--onzly-front-text);
	background: var(--onzly-front-card);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.onzly-front-account--login #loginform input.input:focus {
	outline: none;
	border-color: var(--onzly-front-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.onzly-front-account--login #loginform .login-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 400;
	color: var(--onzly-front-text);
	margin-bottom: 0;
}

.onzly-front-account--login #loginform .login-remember input[type="checkbox"] {
	accent-color: var(--onzly-front-primary);
}

.onzly-front-account--login #loginform .login-submit {
	margin-bottom: 0;
}

.onzly-front-account--login #loginform #wp-submit {
	display: inline-block;
	width: 100%;
	background: var(--onzly-front-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 11px 18px;
	font-weight: 600;
	font-size: 14.5px;
	cursor: pointer;
}

.onzly-front-account--login #loginform #wp-submit:hover {
	opacity: 0.92;
}

.onzly-front-account__menu {
	flex: 0 0 25%;
	width: 25%;
	background: var(--onzly-front-bg);
	border: 1px solid #e9e9e9;
	border-radius: var(--onzly-front-radius);
	padding: 12px;
	min-width: 300px;
	box-sizing: border-box;
}

.onzly-front-account__menu ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.onzly-front-account__menu li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.onzly-front-account__menu a {
	display: block;
	padding: 10px 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	color: var(--onzly-front-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.onzly-front-account__menu a:hover {
	background: var(--onzly-front-border);
}

.onzly-front-account__menu a.is-active {
	background: white;
	color: inherit;
	font-weight: 900;
}

.onzly-front-account__logout {
	color: var(--onzly-front-muted);
}

.onzly-front-account__content {
	flex: 1 1 0%;
	min-width: 0;
	box-sizing: border-box;
}

.onzly-front-account__panel {
	width: 100%;
	box-sizing: border-box;
}

.onzly-front-account__panel .onzly-front-card,
.onzly-front-account__panel .onzly-front-form,
.onzly-front-account__panel table.onzly-front-table {
	width: 100%;
	box-sizing: border-box;
}

/* Les panneaux d'onglets s'appuient déjà sur `.onzly-front-card` (card blanche
   à bordure fine) dans chaque render_*() — pas de double encart ici. */

.onzly-front-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.onzly-front-table th,
.onzly-front-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid var(--onzly-front-border);
	font-size: 13.5px;
}

.onzly-front-table td:last-child {
	text-align: right;
}

.onzly-front-button--small {
	padding: 6px 12px;
	font-size: 12.5px;
}

.onzly-front-license__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
}

.onzly-front-license__head h3 {
	margin: 0 0 4px;
}

.onzly-front-license__key {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
}

.onzly-front-license__key code {
	margin: 0;
	background: var(--onzly-front-bg);
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 13px;
}

.onzly-front-license__grace {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin: 10px 0;
}

.onzly-front-license__compat {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	color: var(--onzly-front-muted);
	font-size: 13px;
	margin: 10px 0;
	padding-top: 10px;
	border-top: 1px solid var(--onzly-front-border);
}

.onzly-front-license__subscription {
	margin: 14px 0;
	padding-top: 14px;
	border-top: 1px solid var(--onzly-front-border);
	font-size: 13.5px;
}

.onzly-front-license__subscription p {
	margin: 0 0 10px;
}

.onzly-front-license__plan-change {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.onzly-front-plan-select {
	flex: 1;
	min-width: 220px;
	padding: 8px 10px;
	border: 1px solid var(--onzly-front-border);
	border-radius: 8px;
	font-size: 13.5px;
	color: var(--onzly-front-text);
	background: var(--onzly-front-card);
}

.onzly-front-plan-change__result {
	flex-basis: 100%;
	color: var(--onzly-front-text);
	font-size: 13px;
	background: var(--onzly-front-bg);
	border-radius: 8px;
	padding: 8px 10px;
	margin-top: 4px;
}

/* --- Tunnel d'achat ([onzly_checkout]) — présentation 1.25.0 ---------
   Maquette « checkout modernisé » habillée aux couleurs et polices
   d'onzly.fr (Manrope / Sora, encre #111827, outremer #3d5afe, bordures
   #e3e6ec), toujours en thème clair comme le site. Couleur d'accent :
   celle du produit (`--onzly-co-accent`, posée en ligne par le shortcode). */

.onzly-checkout {
	--onzly-co-ink: #111827;
	--onzly-co-muted: #5b6475;
	--onzly-co-line: #e3e6ec;
	--onzly-co-surface: #ffffff;
	--onzly-co-soft: #f3f5f8;
	--onzly-co-blue: #3d5afe;
	--onzly-co-ok: #16794c;
	--onzly-co-ko: #e5484d;
	--onzly-co-accent: #3d5afe;
	--onzly-co-accent-soft: color-mix(in srgb, var(--onzly-co-accent) 9%, #ffffff);
	--onzly-co-head: "Sora", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--onzly-co-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color-scheme: light;
	container: onzlyco / inline-size;
	box-sizing: border-box;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 24px;
	color: var(--onzly-co-ink);
	font-family: var(--onzly-co-body);
	font-size: 15px;
	line-height: 1.5;
}

.onzly-checkout *,
.onzly-checkout *::before,
.onzly-checkout *::after {
	box-sizing: border-box;
}

.onzly-checkout h2,
.onzly-checkout h3 {
	font-family: var(--onzly-co-head);
	color: var(--onzly-co-ink);
	margin: 0;
	padding: 0;
	line-height: 1.2;
	text-wrap: balance;
}

.onzly-checkout p {
	margin: 0;
	padding: 0;
}

.onzly-checkout__title {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.onzly-checkout__steps {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 12px 0 0;
	padding: 0;
	font-size: 13px;
	color: var(--onzly-co-muted);
}

.onzly-checkout__steps li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.onzly-checkout__steps li span {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid var(--onzly-co-line);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 12px;
}

.onzly-checkout__steps li.is-on {
	color: var(--onzly-co-ink);
	font-weight: 600;
}

.onzly-checkout__steps li.is-on span {
	background: var(--onzly-co-accent);
	border-color: var(--onzly-co-accent);
	color: #fff;
}

.onzly-checkout__layout {
	display: grid;
	gap: 22px;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	align-items: start;
}

.onzly-checkout__form,
.onzly-checkout__cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.onzly-co-card {
	background: var(--onzly-co-surface);
	border: 1px solid var(--onzly-co-line);
	border-radius: 14px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.onzly-checkout .onzly-co-card h3 {
	font-size: 17px;
	font-weight: 700;
	display: flex;
	gap: 10px;
	align-items: baseline;
}

.onzly-co-tag {
	font-family: var(--onzly-co-body);
	font-size: 12px;
	font-weight: 500;
	color: var(--onzly-co-muted);
	border: 1px solid var(--onzly-co-line);
	border-radius: 999px;
	padding: 1px 9px;
}

.onzly-checkout .onzly-co-note {
	font-size: 12.5px;
	color: var(--onzly-co-muted);
}

.onzly-co-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--onzly-co-blue);
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.onzly-co-link:hover {
	text-decoration: underline;
}

.onzly-co-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Champs : libellé au-dessus, focus visible, deux par ligne. */
.onzly-checkout .onzly-field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.onzly-checkout .onzly-field label {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--onzly-co-ink);
}

.onzly-checkout .onzly-field-row {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.onzly-checkout .onzly-input {
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	padding: 10px 12px !important;
	border: 1px solid var(--onzly-co-line) !important;
	border-radius: 9px;
	background: var(--onzly-co-surface);
	color: var(--onzly-co-ink) !important;
	min-width: 0;
	width: 100%;
	line-height: 1.5;
	box-shadow: none;
}

.onzly-checkout .onzly-input:focus {
	outline: none;
	box-shadow: none;
}

.onzly-checkout .onzly-input:focus-visible {
	outline: 2px solid var(--onzly-co-blue);
	outline-offset: 1px;
}

.onzly-checkout .onzly-field-group {
	display: flex;
	gap: 8px;
}

.onzly-co-btn2 {
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	padding: 9px 14px;
	border-radius: 9px;
	border: 1px solid var(--onzly-co-line);
	background: var(--onzly-co-soft);
	color: var(--onzly-co-ink);
	white-space: nowrap;
	cursor: pointer;
	line-height: 1.5;
}

.onzly-co-btn2:hover {
	border-color: var(--onzly-co-ink);
}

.onzly-co-btn2:focus-visible {
	outline: 2px solid var(--onzly-co-blue);
	outline-offset: 2px;
}

.onzly-co-btn2:disabled {
	opacity: 0.6;
	cursor: wait;
}

.onzly-checkout .onzly-lookup-notice,
.onzly-checkout .onzly-checkout__promo-feedback {
	font-size: 13px !important;
	margin: 4px 0 0 !important;
	min-height: 0 !important;
	color: var(--onzly-co-muted);
}

.onzly-checkout .onzly-lookup-notice:empty {
	display: none;
}

.onzly-checkout .is-ok {
	color: var(--onzly-co-ok);
	font-weight: 500;
}

.onzly-checkout .is-ko {
	color: var(--onzly-co-ko);
}

/* Type de client : trois cartes sélectionnables (radios natifs). */
.onzly-co-seg {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.onzly-co-seg__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	border-radius: 11px;
	border: 1px solid var(--onzly-co-line);
	background: var(--onzly-co-surface);
	cursor: pointer;
	margin: 0;
}

.onzly-co-seg__item input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.onzly-co-seg__item b {
	font-weight: 600;
}

.onzly-co-seg__item span {
	font-size: 12px;
	color: var(--onzly-co-muted);
}

.onzly-co-seg__item:has(input:checked) {
	border-color: var(--onzly-co-accent);
	background: var(--onzly-co-accent-soft);
	box-shadow: 0 0 0 1px var(--onzly-co-accent);
}

.onzly-co-seg__item:has(input:focus-visible) {
	outline: 2px solid var(--onzly-co-blue);
	outline-offset: 2px;
}

/* Services optionnels. */
.onzly-co-choices {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.onzly-co-choice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	border: 1px solid var(--onzly-co-line);
	border-radius: 10px;
	padding: 12px 14px;
	cursor: pointer;
	min-width: 0;
	margin: 0;
}

.onzly-co-choice:has(input:checked) {
	border-color: var(--onzly-co-accent);
	background: var(--onzly-co-accent-soft);
}

.onzly-co-choice input {
	margin: 3px 0 0;
	accent-color: var(--onzly-co-accent);
	width: 17px;
	height: 17px;
	flex: none;
}

.onzly-co-choice input:focus-visible {
	outline: 2px solid var(--onzly-co-blue);
	outline-offset: 2px;
}

.onzly-co-choice__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.onzly-co-choice__text b {
	font-weight: 600;
}

.onzly-co-choice__text > span,
.onzly-co-choice__details {
	font-size: 13px;
	color: var(--onzly-co-muted);
}

.onzly-co-choice__details summary {
	cursor: pointer;
	color: var(--onzly-co-blue);
	font-weight: 600;
}

.onzly-co-choice__amount {
	font-weight: 600;
	white-space: nowrap;
}

/* Paiement : moyens en cartes. */
.onzly-co-paycards {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.onzly-co-pay {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 13px 14px;
	border-radius: 11px;
	border: 1px solid var(--onzly-co-line);
	cursor: pointer;
	min-width: 0;
	margin: 0;
}

.onzly-co-pay:has(input:checked) {
	border-color: var(--onzly-co-accent);
	background: var(--onzly-co-accent-soft);
	box-shadow: 0 0 0 1px var(--onzly-co-accent);
}

.onzly-co-pay input {
	accent-color: var(--onzly-co-accent);
	width: 17px;
	height: 17px;
	flex: none;
	margin: 0;
}

.onzly-co-pay input:focus-visible {
	outline: 2px solid var(--onzly-co-blue);
	outline-offset: 2px;
}

.onzly-co-pay b {
	font-weight: 600;
}

.onzly-co-pay > span > span {
	display: block;
	font-size: 12px;
	color: var(--onzly-co-muted);
}

.onzly-co-pay.is-off {
	opacity: 0.5;
	cursor: not-allowed;
}

.onzly-checkout .onzly-checkbox-card {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13.5px;
	color: var(--onzly-co-muted);
	margin: 0;
	cursor: pointer;
}

.onzly-checkout .onzly-checkbox-card input {
	margin: 3px 0 0;
	width: 17px;
	height: 17px;
	accent-color: var(--onzly-co-accent);
	flex: none;
}

.onzly-checkout .onzly-checkbox-card a {
	color: var(--onzly-co-blue);
}

.onzly-co-paybar {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-wrap: wrap;
}

/* Boutons principaux (Continuer, Se connecter…). */
.onzly-checkout .onzly-front-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 9px;
	border: 1px solid var(--onzly-co-accent);
	background: var(--onzly-co-accent);
	color: #fff;
	margin: 0;
	width: auto;
	line-height: 1.5;
	cursor: pointer;
	text-decoration: none;
	transition: filter 0.2s ease;
}

.onzly-checkout .onzly-front-button:hover,
.onzly-checkout .onzly-front-button:focus {
	color: #fff;
	opacity: 1;
	filter: brightness(0.92);
}

.onzly-checkout .onzly-front-button:focus-visible {
	outline: 2px solid var(--onzly-co-blue);
	outline-offset: 2px;
}

.onzly-checkout .onzly-front-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	filter: none;
}

.onzly-checkout .onzly-front-button.is-loading {
	opacity: 0.8;
	cursor: progress;
}

.onzly-checkout .onzly-front-button.is-loading::before {
	content: "";
	width: 14px;
	height: 14px;
	margin-right: 8px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: onzly-co-spin 0.8s linear infinite;
}

@keyframes onzly-co-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.onzly-checkout .onzly-front-button.is-loading::before {
		animation: none;
	}
}

.onzly-checkout .onzly-checkout__submit-reason:empty {
	display: none;
}

/* Messages d'erreur (bloc unique, textes serveur inchangés). */
.onzly-checkout .onzly-checkout__error {
	border: 1px solid var(--onzly-co-ko);
	background: rgba(229, 72, 77, 0.08);
	color: var(--onzly-co-ink);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 14px;
	margin: 0;
}

.onzly-checkout--error {
	display: block;
}

/* Dropdown pays : liste filtrée sous le champ. */
.onzly-checkout .onzly-country-dropdown {
	border-color: var(--onzly-co-line);
	border-radius: 10px;
	padding: 6px;
}

.onzly-checkout .onzly-country-option {
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 14px;
}

.onzly-checkout .onzly-country-option:hover,
.onzly-checkout .onzly-country-option.is-active {
	background: var(--onzly-co-accent);
	color: #fff;
}

/* Récapitulatif collant (replié en tête sur mobile). */
.onzly-checkout__summary {
	position: sticky;
	top: 12px;
	align-self: start;
	background: var(--onzly-co-surface);
	border: 1px solid var(--onzly-co-line);
	border-radius: 12px;
	padding: 18px;
	min-width: 0;
}

.onzly-checkout__recap-toggle {
	display: none;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-weight: 600;
	color: var(--onzly-co-ink);
	cursor: pointer;
}

.onzly-checkout__recap-toggle:focus-visible {
	outline: 2px solid var(--onzly-co-blue);
	outline-offset: 4px;
}

.onzly-checkout__recap-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.onzly-co-rprod {
	display: flex;
	gap: 12px;
	align-items: center;
}

.onzly-co-logo {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--onzly-co-accent);
	flex: none;
	position: relative;
	overflow: hidden;
}

.onzly-co-logo:not(.has-image)::after {
	content: "";
	position: absolute;
	inset: 11px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.9);
}

.onzly-co-logo.has-image {
	background: var(--onzly-co-soft);
}

.onzly-co-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.onzly-checkout .onzly-checkout__product {
	font-size: 17px;
	font-weight: 700;
	margin: 0;
}

.onzly-checkout .onzly-checkout__plan {
	margin: 0;
	font-size: 12.5px;
	color: var(--onzly-co-muted);
}

.onzly-co-line {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	font-size: 14px;
}

.onzly-co-line > span:first-child {
	min-width: 0;
}

.onzly-co-line > span:last-child {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.onzly-co-line small {
	display: block;
	color: var(--onzly-co-muted);
	font-size: 12px;
}

.onzly-co-line.is-discount > span:last-child,
.onzly-co-line.is-discount small {
	color: var(--onzly-co-ok);
	font-weight: 600;
}

.onzly-co-lines {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.onzly-co-lines:empty {
	display: none;
}

.onzly-checkout .onzly-checkout__price,
.onzly-checkout .onzly-checkout__amount {
	display: inline;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	padding: 0;
	border: 0;
}

.onzly-checkout .onzly-checkout__amount-original {
	text-decoration: line-through;
	color: var(--onzly-co-muted);
	margin-right: 6px;
	font-size: inherit;
	font-weight: 400;
}

.onzly-checkout .onzly-checkout__discount-note {
	font-size: 12px;
	color: var(--onzly-co-ok);
	margin: -6px 0 0;
}

.onzly-co-sep {
	border-top: 1px solid var(--onzly-co-line);
}

.onzly-co-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-family: var(--onzly-co-head);
	font-size: 20px;
	font-weight: 700;
}

.onzly-co-trust {
	list-style: none;
	margin: 4px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--onzly-co-line);
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: var(--onzly-co-muted);
}

.onzly-co-trust li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.onzly-co-trust li::before {
	content: "✓";
	color: var(--onzly-co-ok);
	font-weight: 700;
	margin-right: 8px;
}

/* Tablette et mobile : 92 % de largeur, colonne unique, récapitulatif en tête. */
@media (max-width: 980px) {
	.onzly-checkout {
		width: 92%;
	}
}

/* Colonne unique dès que le bloc lui-même est étroit (colonne Divi réduite
   sur tablette comprise), pas seulement selon la largeur d'écran. */
@container onzlyco (max-width: 700px) {
	.onzly-checkout__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.onzly-checkout__summary {
		order: -1;
		position: static;
	}

	.onzly-checkout__recap-toggle {
		display: flex;
	}

	.onzly-checkout__recap-toggle[aria-expanded="true"] {
		margin-bottom: 12px;
	}

	.onzly-checkout__recap-toggle[aria-expanded="false"] + .onzly-checkout__recap-body {
		display: none;
	}
}

/* Petits écrans tactiles : 16 px évite le zoom automatique sur les champs (iOS). */
@media (max-width: 480px) {
	.onzly-checkout .onzly-input {
		font-size: 16px;
	}
}

/* Bouton enfant direct d'une card (ex. page de confirmation) : taille de son contenu. */
.onzly-front-card > .onzly-front-button {
	align-self: flex-start;
}

.onzly-field {
	margin-bottom: 16px;
}

.onzly-field label,
.onzly-field__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--onzly-front-text);
	margin-bottom: 6px;
}

.onzly-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.onzly-field-row--three {
	grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 640px) {
	.onzly-field-row--three {
		grid-template-columns: 1fr;
	}
}

.onzly-input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px !important;
	border: 1px solid var(--onzly-front-border) !important;
	border-radius: 10px;
	font-size: 14px;
	color: var(--onzly-front-text) !important;
	background: var(--onzly-front-card);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.onzly-input:focus {
	outline: none;
	border-color: var(--onzly-front-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Groupe input + bouton sur une même ligne (ex. SIRET + "Rechercher") —
   le bouton ne doit pas hériter du width:100% générique des boutons du
   tunnel (voir .onzly-checkout .onzly-front-button plus bas). */
.onzly-field-group {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.onzly-field-group .onzly-input {
	flex: 1;
	min-width: 0;
}

.onzly-field-group .onzly-front-button {
	width: auto !important;
	flex: 0 0 auto;
	margin-top: 0 !important;
	white-space: nowrap;
}

/* Dropdown pays custom (remplace le <datalist> natif, non stylable). */
.onzly-country-field {
	position: relative;
}

.onzly-country-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	background: var(--onzly-front-card);
	border: 1px solid var(--onzly-front-border);
	border-radius: 10px;
	max-height: 220px;
	overflow-y: auto;
	box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
	z-index: 20;
}

.onzly-country-option {
	padding: 9px 14px;
	font-size: 14px;
	color: var(--onzly-front-text);
	cursor: pointer;
}

.onzly-country-option:hover,
.onzly-country-option.is-active {
	background: var(--onzly-front-bg);
}

.onzly-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.onzly-radio-card {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 160px;
	border: 1px solid var(--onzly-front-border);
	border-radius: 10px;
	padding: 11px 14px;
	cursor: pointer;
	font-size: 13.5px;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.onzly-radio-card:has(input:checked) {
	border-color: var(--onzly-front-primary);
	background: #eff6ff;
}

.onzly-radio-card input {
	margin: 0;
	accent-color: var(--onzly-front-primary);
}

.onzly-checkbox-card {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 13.5px;
	line-height: 1.5;
}

.onzly-checkbox-card input {
	margin: 3px 0 0;
	accent-color: var(--onzly-front-primary);
	flex-shrink: 0;
}

/* Responsive : menu gauche -> empilé en haut sur mobile. */
@media (max-width: 640px) {
	.onzly-front-account {
		flex-direction: column;
	}

	.onzly-front-account__menu {
		width: 100%;
		min-width: 0;
	}

	.onzly-front-account__menu ul {
		flex-direction: row;
		overflow-x: auto;
	}

	.onzly-front-grid {
		grid-template-columns: 1fr;
	}

	.onzly-front-card__title {
		font-size: 15px;
	}

	.onzly-front-card__excerpt {
		font-size: 12.5px;
	}

	.onzly-front-card__features-list li {
		font-size: 13px;
	}

	.onzly-front-card__price {
		font-size: 13px;
	}
}

/* --- Services optionnels (confirmation de commande, espace client) --- */

.onzly-services {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.onzly-services__title {
	margin: 0;
	font-size: 16px;
}

.onzly-services__item {
	display: flex;
	gap: 14px;
	justify-content: space-between;
	flex-wrap: wrap;
	border: 1px solid #e3e6ec;
	border-radius: 10px;
	padding: 14px 16px;
}

.onzly-services__item b {
	font-family: "Sora", "Manrope", sans-serif;
}

.onzly-services__item p {
	margin: 2px 0 0;
	padding: 0;
	font-size: 13px;
	color: #5b6475;
}

.onzly-services__pill {
	align-self: flex-start;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
	background: #fbf0d8;
	color: #8a5a00;
}

.onzly-services__pill.is-progress {
	background: #e7eafb;
	color: #2f45d0;
}

.onzly-services__pill.is-done {
	background: #e1f3e9;
	color: #16794c;
}

.onzly-services__pill.is-cancelled,
.onzly-services__pill.is-waiting {
	background: #eef1f5;
	color: #5b6475;
}

.onzly-services__ok {
	display: inline-flex;
	align-self: flex-start;
	background: #e1f3e9;
	color: #16794c;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 13px;
}
