.t4a-wizard { max-width: 880px; }
.t4a-wizard-title { margin-bottom: 12px; }
.t4a-wizard-steps { display: flex; gap: 8px; margin: 18px 0 28px; padding: 0; list-style: none; }
.t4a-wizard-steps li { flex: 1; }
.t4a-wizard-steps a { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #fff; border: 1px solid #dcdcde; border-radius: 6px; text-decoration: none; color: #1d2327; font-weight: 500; }
.t4a-wizard-steps li.is-active a { border-color: #2271b1; background: #f0f6fc; box-shadow: inset 0 0 0 1px #2271b1; }
.t4a-wizard-steps li.is-done a { color: #2271b1; }
.t4a-step-num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: #f0f0f1; color: #1d2327; align-items: center; justify-content: center; font-weight: 700; }
.t4a-wizard-steps li.is-active .t4a-step-num { background: #2271b1; color: #fff; }
.t4a-wizard-steps li.is-done .t4a-step-num { background: #00a32a; color: #fff; }
.t4a-wizard-steps li.is-final .t4a-step-num { background: #e9eef4; color: #2271b1; }
.t4a-wizard-steps li.is-final.is-active .t4a-step-num { background: #2271b1; color: #fff; }
.t4a-wizard-steps li.is-final.is-active a { border-color: #2271b1; background: #f0f6fc; box-shadow: inset 0 0 0 1px #2271b1; }
.t4a-wizard-steps li.is-final .t4a-step-num svg { display: block; }
.t4a-wizard-card { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 24px 28px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.t4a-wizard-card h2 { margin: 0 0 14px; font-size: 16px; color: var(--wp-admin-theme-color, #2271b1); border-bottom: 1px solid #f0f0f1; padding-bottom: 10px; }
.t4a-card-intro { margin: -6px 0 14px; color: #50575e; }
.t4a-field-row { margin-bottom: 16px; }
.t4a-field-row > label:not(.t4a-checkbox) { display: block; font-weight: 600; margin-bottom: 6px; color: #1d2327; }
.t4a-field-row input[type=text], .t4a-field-row input[type=password], .t4a-field-row input[type=number], .t4a-field-row input[type=email], .t4a-field-row input[type=file], .t4a-field-row select { width: 100%; max-width: 480px; }
.t4a-field-row .description { margin: 6px 0 0; color: #646970; font-size: 13px; }
.t4a-field-row.t4a-inline { display: flex; gap: 16px; }
.t4a-field-row.t4a-inline > div { flex: 1; }
.t4a-checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.t4a-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.t4a-status { padding: 10px 14px; border-radius: 6px; margin: 0 0 14px; }
.t4a-status-ok { background: #edfaef; border: 1px solid #b8e2bf; color: #16591f; }
.t4a-status-warn { background: #fcf9e8; border: 1px solid #f0e3a8; color: #6b5b00; }
.t4a-status-error { background: #fbeaea; border: 1px solid #f1bcbc; color: #8a1f11; }
/* Connexion à TWINT - rendu plain background, juste une ligne */
.t4a-test-line { margin: 0 0 14px; padding: 0; color: #1d2327; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t4a-test-line-empty { color: #50575e; }
.t4a-test-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.t4a-test-icon-ok { background: #d7f0db; color: #1c6b27; }
.t4a-test-icon-ko { background: #f5d2cf; color: #8a1f11; }
.t4a-test-time { color: #646970; font-size: 12px; }
.t4a-summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; }
.t4a-summary dt { font-weight: 600; color: #50575e; }
.t4a-summary dd { margin: 0; }
.t4a-pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.t4a-pill-ok { background: #d7f0db; color: #1c6b27; }
.t4a-pill-error { background: #f5d2cf; color: #8a1f11; }
.button.button-hero { padding: 10px 22px !important; height: auto !important; font-size: 15px !important; }
/* Modern file upload */
.t4a-upload-zone { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.t4a-upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.t4a-upload-button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; background: linear-gradient(180deg, #ffffff, #f4f6f8); border: 1.5px dashed #c3c4c7; border-radius: 8px; cursor: pointer; color: #1d2327; font-weight: 600; transition: all .18s ease; line-height: 1; }
.t4a-upload-button:hover, .t4a-upload-input:focus + .t4a-upload-button { background: #f0f6fc; border-color: #2271b1; border-style: solid; color: #2271b1; transform: translateY(-1px); box-shadow: 0 4px 10px -4px rgba(34, 113, 177, .35); }
.t4a-upload-button svg { transition: transform .18s ease; }
.t4a-upload-button:hover svg { transform: translateY(-2px); }
.t4a-upload-filename { color: #646970; font-style: italic; font-size: 13px; }
.t4a-upload-filename.has-file { color: #1d2327; font-style: normal; font-weight: 500; }
.t4a-upload-filename.has-file::before { content: "✓ "; color: #00a32a; font-weight: 700; }
/* Intro step */
.t4a-checklist { counter-reset: t4a-step; list-style: none; margin: 0; padding: 0; }
.t4a-checklist > li { position: relative; padding: 14px 16px 14px 60px; background: #fafbfc; border: 1px solid #eef0f2; border-radius: 8px; margin-bottom: 12px; counter-increment: t4a-step; }
.t4a-checklist > li::before { content: counter(t4a-step); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; background: #2271b1; color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.t4a-checklist > li strong { display: block; font-size: 14px; color: #1d2327; margin-bottom: 4px; }
.t4a-checklist > li .description { margin: 0; color: #50575e; font-size: 13px; }
.t4a-needs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.t4a-needs > li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; background: #fafbfc; border: 1px solid #eef0f2; border-radius: 8px; }
.t4a-need-icon { flex-shrink: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: #eaf3fb; color: #2271b1; border-radius: 8px; }
.t4a-need-icon svg { display: block; }
.t4a-needs > li strong { display: block; color: #1d2327; margin-bottom: 2px; }
.t4a-needs > li .description { margin: 0; color: #50575e; font-size: 13px; }
/* Callouts inside checklist */
.t4a-callout { margin: 8px 0 0; padding: 10px 12px; background: #fff8e1; border: 1px solid #f5e4a5; border-radius: 6px; color: #6b5800; font-size: 13px; line-height: 1.5; }
.t4a-callout.t4a-callout-optional { background: #eaf3fb; border-color: #c2dcef; color: #1d4d7a; }
.t4a-callout-label { display: inline-block; padding: 2px 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.08); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; margin-right: 6px; vertical-align: 1px; }
.t4a-callout-optional .t4a-callout-label { background: rgba(34, 113, 177, 0.18); }
/* Tutorial link */
.t4a-tutorial-link { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 18px; background: linear-gradient(135deg, #ebf4fd 0%, #f4f9fe 100%); border: 1px solid #c2dcef; border-radius: 8px; text-decoration: none; color: #1d4d7a; transition: all .18s ease; }
.t4a-tutorial-link:hover { border-color: #2271b1; background: linear-gradient(135deg, #d9eafa 0%, #ebf4fd 100%); transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(34, 113, 177, .35); color: #1d4d7a; }
.t4a-tutorial-icon { flex-shrink: 0; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: #2271b1; color: #fff; border-radius: 8px; }
.t4a-tutorial-text { flex: 1; display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.t4a-tutorial-text strong { color: #1d2327; font-size: 14px; }
.t4a-tutorial-text span { color: #50575e; font-size: 13px; }
.t4a-tutorial-arrow { font-size: 22px; line-height: 1; color: #2271b1; transition: transform .18s ease; }
.t4a-tutorial-link:hover .t4a-tutorial-arrow { transform: translateX(4px); }
/* Accordion (advanced settings) */
.t4a-accordion { background: #fafbfc; border: 1px solid #eef0f2; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.t4a-accordion[open] { border-color: #c2dcef; background: #fff; }
.t4a-accordion > summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 600; color: #1d2327; user-select: none; }
.t4a-accordion > summary::-webkit-details-marker, .t4a-accordion > summary::marker { display: none; content: ''; }
.t4a-accordion > summary:hover { background: rgba(34, 113, 177, .05); }
.t4a-accordion-title { flex: 1; font-size: 14px; }
.t4a-accordion-chevron { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(34, 113, 177, .12); color: #2271b1; transition: transform .2s ease; }
.t4a-accordion[open] .t4a-accordion-chevron { transform: rotate(180deg); }
.t4a-accordion-body { padding: 4px 18px 18px; border-top: 1px solid #eef0f2; }
.t4a-advanced .t4a-card-intro { margin: -6px 0 14px; }

/* Overlay spinner (was inline at ConfigPage step 5). */
@keyframes t4a-spin { to { transform: rotate(360deg); } }
