/* THOJA NatCash — interface épurée compatible Goya (hérite des polices du thème) */
:root {
	--thoja-nc-ink: #111111;
	--thoja-nc-muted: #6b6b6b;
	--thoja-nc-line: #e7e5e0;
	--thoja-nc-paper: #faf9f7;
	--thoja-nc-accent: #f28a30;
	--thoja-nc-blue: #0067a5;
	--thoja-nc-ok: #0f7b4b;
	--thoja-nc-wait: #b26a00;
	--thoja-nc-radius: 14px;
}

.thoja-nc-icon { height: 22px !important; width: auto !important; max-width: 110px; margin-left: 8px; vertical-align: middle; object-fit: contain; }
.wc_payment_method.payment_method_thoja_natcash > label img,
li.payment_method_thoja_natcash label img { height: 22px !important; max-height: 22px !important; width: auto !important; max-width: 110px; margin: 0 0 0 8px !important; float: none !important; display: inline-block; vertical-align: middle; object-fit: contain; }
.thoja-nc-label { display: inline-flex; align-items: center; gap: 6px; }

.thoja-nc-notice {
	display: flex; align-items: flex-start; gap: 10px;
	margin-top: 10px; padding: 12px 14px;
	background: var(--thoja-nc-paper); border: 1px solid var(--thoja-nc-line);
	border-left: 3px solid var(--thoja-nc-accent); border-radius: 10px;
	font-size: 0.92em; line-height: 1.5; color: var(--thoja-nc-ink);
}
.thoja-nc-lock {
	flex: 0 0 14px; width: 14px; height: 14px; margin-top: 3px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V8a6 6 0 1 1 12 0v2h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h8V8a4 4 0 1 0-8 0v2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V8a6 6 0 1 1 12 0v2h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1zm2 0h8V8a4 4 0 1 0-8 0v2z'/%3E%3C/svg%3E") center / contain no-repeat;
	color: var(--thoja-nc-accent);
}

.thoja-nc-hint { margin: 8px 0 0; font-size: .85em; line-height: 1.45; color: var(--thoja-nc-muted); }

/* Bloc statut page de retour */
.thoja-nc-status {
	margin: 28px 0 36px; padding: 26px 24px;
	background: #fff; border: 1px solid var(--thoja-nc-line); border-radius: var(--thoja-nc-radius);
	box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 12px 32px -18px rgba(0,0,0,.18);
	animation: thojaNcIn .45s cubic-bezier(.2,.7,.2,1) both;
	color: var(--thoja-nc-ink);
}
.thoja-nc-status__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.thoja-nc-status__brand { display: block; height: 28px !important; width: auto !important; max-width: 140px; object-fit: contain; }
.thoja-nc-badge {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px; border-radius: 999px; font-size: .78em; font-weight: 600;
	background: #fff4e0; color: var(--thoja-nc-wait);
	transition: background-color .3s ease, color .3s ease;
}
.thoja-nc-status { border-top: 3px solid var(--thoja-nc-blue); }
.thoja-nc-status.is-pending .thoja-nc-badge::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
	animation: thojaNcPulse 1.4s ease-in-out infinite;
}
.thoja-nc-status.is-paid .thoja-nc-badge { background: #e3f4ea; color: var(--thoja-nc-ok); }
.thoja-nc-status.is-review .thoja-nc-badge { background: #eef0f4; color: #3b4a63; }
.thoja-nc-status.is-paid { border-color: #bfe3cf; }
.thoja-nc-status__msg { font-size: 1.08em; line-height: 1.5; margin: 0 0 18px; }
.thoja-nc-status__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.thoja-nc-status__grid div { padding: 12px 14px; background: var(--thoja-nc-paper); border-radius: 10px; }
.thoja-nc-status__grid dt { font-size: .74em; text-transform: uppercase; letter-spacing: .06em; color: var(--thoja-nc-muted); margin: 0 0 4px; }
.thoja-nc-status__grid dd { margin: 0; font-weight: 600; word-break: break-word; }
.thoja-nc-status__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.thoja-nc-btn {
	box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 22px; border-radius: 999px;
	border: 1px solid var(--thoja-nc-ink); background: var(--thoja-nc-ink); color: #fff !important;
	font-weight: 600; font-size: .95em; text-decoration: none !important; cursor: pointer;
	transition: transform .15s ease, background-color .2s ease, opacity .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.thoja-nc-btn:hover { transform: translateY(-1px); background: #2a2a2a; }
.thoja-nc-btn:active { transform: translateY(0) scale(.98); }
.thoja-nc-btn--accent { background: var(--thoja-nc-accent); border-color: var(--thoja-nc-accent); }
.thoja-nc-btn--accent:hover { background: #e07a20; }
.thoja-nc-retry-form { margin: 0; display: contents; }
.thoja-nc-status__error { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #fdecec; color: #a01d1d; font-size: .92em; line-height: 1.45; }
.thoja-nc-status__links { margin: 14px 0 0; font-size: .9em; }
.thoja-nc-status__links a { color: var(--thoja-nc-blue); text-decoration: underline; }
.thoja-nc-status.is-cancelled .thoja-nc-badge { background: #fdecec; color: #a01d1d; }
.thoja-nc-btn--ghost { background: transparent; color: var(--thoja-nc-ink) !important; }
.thoja-nc-btn--ghost:hover { background: var(--thoja-nc-paper); }
.thoja-nc-btn[disabled], .thoja-nc-busy { opacity: .6; pointer-events: none; }
.thoja-nc-status__hint { margin: 14px 0 0; font-size: .85em; color: var(--thoja-nc-muted); }

@media (max-width: 600px) {
	.thoja-nc-status { padding: 20px 16px; margin: 20px 0 28px; }
	.thoja-nc-status__grid { grid-template-columns: 1fr; }
	.thoja-nc-status__actions { flex-direction: column; }
	.thoja-nc-btn { width: 100%; }
}

@keyframes thojaNcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes thojaNcPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .thoja-nc-status, .thoja-nc-badge::before { animation: none !important; } }

/* Administration */
.thoja-nc-copy { display: flex; gap: 8px; max-width: 760px; }
.thoja-nc-copy input { flex: 1; }
.thoja-nc-ok { color: #0f7b4b; }
.thoja-nc-ko { color: #b32d2e; }
.thoja-nc-admin-attempt { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 12px; line-height: 1.6; }
.thoja-nc-admin-status { display: inline-block; padding: 0 6px; border-radius: 3px; background: #f0f0f1; font-size: 11px; }
.thoja-nc-admin-status.s-ok { background: #e3f4ea; color: #0f7b4b; }
.thoja-nc-admin-status.s-failed, .thoja-nc-admin-status.s-anomaly { background: #fbeaea; color: #b32d2e; }
