/**
 * WooCommerce Divi Custom (WCDC) : alignement du panneau sur l'espace client.
 *
 * Chargé uniquement quand WCDC est actif. Les couleurs et les rayons viennent
 * de ses variables « :root » (--wcdc-*) posées sur la page compte, avec un
 * repli sur l'habillage par défaut de Checkpoint si elles manquent.
 *
 * Comme dans account.css, l'habillage des boutons est suspendu quand le
 * réglage « Style des boutons » demande celui du thème : le <body> porte
 * alors « wcdc-theme-buttons » et Divi reprend la main.
 */

/* ---------- Carte ---------- */

.wc-checkpoint {
	padding: 26px;
	border-color: var(--wcdc-border, rgba(0, 0, 0, 0.12));
	border-radius: 14px;
	background: var(--wcdc-card-bg, #fff);
}

/* Dans l'espace client : même carte que « Détails du compte ». */
.woocommerce-MyAccount-content .wc-checkpoint {
	padding: 22px;
	border-radius: 12px;
}

.wc-checkpoint__title {
	margin: 0 0 14px;
	font-size: 19px;
	font-weight: 700;
	color: var(--wcdc-text, inherit);
}

.wc-checkpoint__intro,
.wc-checkpoint__reset {
	color: var(--wcdc-muted, inherit);
}

.wc-checkpoint__timer {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--wcdc-muted, inherit);
	opacity: 1;
}

/* ---------- Champs ---------- */

.wc-checkpoint__form .form-row {
	margin: 0 0 14px;
}

.wc-checkpoint__form label {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wcdc-text, inherit);
}

.wc-checkpoint__form input[type="email"],
.wc-checkpoint__form input[type="text"] {
	height: 44px;
	padding: 0 13px;
	border: 1px solid var(--wcdc-border, rgba(0, 0, 0, 0.12));
	border-radius: 8px;
	background: var(--wcdc-card-bg, #fff);
	color: var(--wcdc-text, inherit);
	font-size: inherit;
	line-height: 1.4;
}

.wc-checkpoint__form input[type="email"]:focus,
.wc-checkpoint__form input[type="text"]:focus {
	border-color: var(--wcdc-primary, #2e7d32);
	background: var(--wcdc-card-bg, #fff);
	color: var(--wcdc-text, inherit);
	outline: none;
}

/* Le champ code reste plus haut : il porte une suite de chiffres espacés. */
#wc-checkpoint-code {
	height: 52px;
}

/* ---------- Boutons ---------- */

.wc-checkpoint__actions .button:where(body:not(.wcdc-theme-buttons) *) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 11px 16px;
	border: 1px solid var(--wcdc-border);
	border-radius: 8px;
	background: var(--wcdc-card-bg);
	color: var(--wcdc-text);
	font-size: 13px;
	font-weight: 600;
	transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.wc-checkpoint__actions .button:where(body:not(.wcdc-theme-buttons) *):hover {
	border-color: var(--wcdc-primary);
	background: var(--wcdc-bg);
	color: var(--wcdc-text);
}

/* L'action principale reprend le bouton plein des formulaires de connexion. */
.wc-checkpoint__actions .wc-checkpoint__submit:where(body:not(.wcdc-theme-buttons) *) {
	border-color: var(--wcdc-primary);
	background: var(--wcdc-primary);
	color: #fff;
}

.wc-checkpoint__actions .wc-checkpoint__submit:where(body:not(.wcdc-theme-buttons) *):hover {
	border-color: var(--wcdc-primary);
	background: var(--wcdc-primary);
	color: #fff;
	filter: brightness(0.92);
}

/* ---------- Lien secondaire ---------- */

.wc-checkpoint__reset a {
	color: var(--wcdc-primary, inherit);
	text-decoration: none;
}

.wc-checkpoint__reset a:hover {
	text-decoration: underline;
}
