/* WC Punti Fedeltà – Il mio account. Colori e font ereditati dal tema. */

.wcpf-account { --wcpf-border: rgba(0, 0, 0, .12); --wcpf-muted: rgba(0, 0, 0, .6); }

/* Selettori con div/ul/li: devono battere le regole liste del tema
   (es. BeTheme ".the_content_wrapper ul { margin: 0 0 15px 30px }"). */
div.wcpf-account ul.wcpf-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}
div.wcpf-account ul.wcpf-stats > li.wcpf-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--wcpf-border);
	border-radius: 6px;
}
div.wcpf-account ul.wcpf-stats > li.wcpf-stat--balance { border-width: 2px; }
.wcpf-stat__label { font-size: .85em; color: var(--wcpf-muted); }
.wcpf-stat__value { font-size: 1.25em; line-height: 1.2; }

.wcpf-rules,
.wcpf-in-cart { color: var(--wcpf-muted); }
.wcpf-title { margin-top: 1.5em; }

div.wcpf-account ul.wcpf-rewards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
}
div.wcpf-account ul.wcpf-rewards > li.wcpf-reward {
	display: flex;
	flex-direction: column;
	margin: 0;
	border: 1px solid var(--wcpf-border);
	border-radius: 6px;
	overflow: hidden;
}
.wcpf-reward__image img { display: block; width: 100%; height: auto; }
.wcpf-reward__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.wcpf-reward__name { font-weight: 600; }
.wcpf-reward__points { font-size: 1.1em; font-weight: 700; }
.wcpf-reward__limit,
.wcpf-reward__reason { font-size: .85em; color: var(--wcpf-muted); }
.wcpf-reward__form { margin: auto 0 0; }
.wcpf-reward__form .button { width: 100%; }
.wcpf-reward--disabled .wcpf-reward__image { opacity: .5; }

.wcpf-history .wcpf-num { text-align: right; white-space: nowrap; }
.wcpf-history .wcpf-plus { color: #1e7e34; }
.wcpf-history .wcpf-minus { color: #b32d2e; }

/* Scheda prodotto */
.wcpf-product-reward {
	clear: both;
	margin: 16px 0;
	padding: 12px 16px;
	border: 1px dashed rgba(0, 0, 0, .25);
	border-radius: 6px;
}
.wcpf-product-reward p { margin: 0 0 6px; }
.wcpf-product-reward__info { font-size: .9em; color: rgba(0, 0, 0, .65); }
.wcpf-product-reward__form { margin: 10px 0 0; }

/* Punti che si accumulano: riga in scheda prodotto */
.wcpf-earn-line { margin: 8px 0 16px; font-size: .95em; }
.wcpf-earn-line a { white-space: nowrap; }

/* Nota informativa (checkout ospite, pagina di conferma): aspetto da nota, non da avviso o errore */
.wcpf-note {
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-left: 4px solid currentColor;
	border-radius: 6px;
	background: rgba(0, 0, 0, .02);
}
.wcpf-note[hidden] { display: none; }
.wcpf-note p { margin: 0 0 10px; }
.wcpf-note p:last-child { margin-bottom: 0; }
/* i due pulsanti hanno la stessa evidenza */
.wcpf-note__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wcpf-note__actions .button { margin: 0; }
.wcpf-activate__form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wcpf-activate__form label { flex-basis: 100%; margin: 0; font-weight: 600; }
.wcpf-activate__form input[type="password"] { flex: 1 1 220px; max-width: 320px; margin: 0; }
.wcpf-activate__form .button { margin: 0; }
.wcpf-activate__error { color: #b32d2e; }
