:root{--tfdu-ink:#0d2247;--tfdu-muted:#687b9b;--tfdu-line:#d7e2f0;--tfdu-blue:#1673e6;--tfdu-bg:#f4f9ff;--tfdu-green:#178458;--tfdu-red:#c72535;--tfdu-yellow:#9b7115}
#tfdu-root{box-sizing:border-box;font-family:inherit;color:var(--tfdu-ink);max-width:100%;font-size:16px;line-height:1.45;margin:24px 0}
#tfdu-root *{box-sizing:border-box}
#tfdu-root button{font:inherit;cursor:pointer}
#tfdu-root .tfdu-card{border:1px solid #d9e3f0;border-radius:11px;background:#fff;box-shadow:0 7px 25px rgba(18,49,91,.045);padding:25px 26px;margin-bottom:20px}
#tfdu-root .tfdu-head{display:flex;align-items:center;gap:18px;margin-bottom:20px}
#tfdu-root .tfdu-head-icon{width:48px;height:48px;flex:none;display:flex;align-items:center;justify-content:center;border:1px solid #c9dcf1;background:#eef7ff;color:#27649c;border-radius:13px}
#tfdu-root .tfdu-title{font-size:25px;font-weight:750;line-height:1.15;color:#12244b;margin:0 0 5px}
#tfdu-root .tfdu-subtitle{color:#687b9b;font-size:15px;margin:0}
#tfdu-root .tfdu-dropzone{border:2px dashed #aabed7;border-radius:11px;background:linear-gradient(110deg,#f9fcff,#f0f7ff);min-height:154px;display:flex;flex-flow:column;align-items:center;justify-content:center;text-align:center;padding:24px;cursor:pointer;transition:.15s ease;outline-offset:3px}
#tfdu-root .tfdu-dropzone:hover,#tfdu-root .tfdu-dropzone:focus{border-color:#377fd2;background:#ecf6ff}
#tfdu-root .tfdu-dropzone.tfdu-drag{border-color:#047aff;background:#e5f3ff;box-shadow:inset 0 0 0 1px #047aff}
#tfdu-root .tfdu-drop-icon{color:#587ea8;margin-bottom:4px}
#tfdu-root .tfdu-drop-title{font-size:19px;font-weight:750;color:#101f42}
#tfdu-root .tfdu-picker-text{color:#0272e6;font-weight:600}
#tfdu-root .tfdu-hint{color:#7285a3;font-size:13px;margin-top:7px}
#tfdu-root .tfdu-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}
#tfdu-root .tfdu-list{margin-top:15px;display:grid;gap:10px}
#tfdu-root .tfdu-file{display:grid;grid-template-columns:39px minmax(0,1fr) auto 30px;align-items:center;gap:14px;padding:13px 13px;border:1px solid #d8e2ef;border-radius:8px;background:#fff}
#tfdu-root .tfdu-fileicon{color:#ce2236;display:flex;align-items:center;justify-content:center}
#tfdu-root .tfdu-filename{font-size:15px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tfdu-root .tfdu-filesize{font-size:13px;color:#8795a9}
#tfdu-root .tfdu-filebadge{padding:7px 10px;border-radius:7px;background:#fff1ce;color:#8b6913;font-size:12px;font-weight:600;max-width:230px}
#tfdu-root .tfdu-filebadge.ok{background:#e4f5ed;color:#18744b}
#tfdu-root .tfdu-filebadge.bad{background:#fce7e8;color:#c72b37}
#tfdu-root .tfdu-remove{border:0;background:transparent;color:#7788a4;font-size:22px;padding:0 4px;line-height:1.2}
#tfdu-root .tfdu-remove:hover{color:#c9293f}
#tfdu-root .tfdu-message{display:none;margin-top:13px;padding:11px 13px;background:#fff2d4;color:#875c13;border:1px solid #f7dfa3;border-radius:6px;font-size:14px}
#tfdu-root .tfdu-message.tfdu-show{display:block}
#tfdu-root .tfdu-legacy-button{margin-top:13px;background:transparent!important;border:0!important;text-decoration:underline;color:#6e84a2;padding:0;font-size:12px!important}
#tfdu-root .tfdu-statusline{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:17px;flex-wrap:wrap}
#tfdu-root .tfdu-statusline span{color:#697e9d;font-size:13px}
#tfdu-root .tfdu-status-pill{color:var(--tfdu-green)!important;background:#e7f5ee;border-radius:6px;padding:5px 10px;font-weight:650}
#tfdu-root .tfdu-section-title{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:750;color:#0c244d;margin:0 0 7px}
#tfdu-root .tfdu-preflight-description{margin:0 0 16px;color:#607594;font-size:15px}
#tfdu-root .tfdu-preflight-slot{min-height:20px;margin-top:12px}
#tfdu-root .tfdu-preflight-wait{padding:16px 18px;border:1px solid #d9e5f3;border-radius:7px;background:#f3f8ff;color:#67809d;font-size:14px}
#tfdu-root .tfdu-warning{margin-top:12px;font-size:13px;background:#fff6dd;color:#916b14;padding:10px;border-radius:6px}
#tfdu-root .tfdu-preflight-slot>.tfdu-preflight-native{margin:0!important;max-width:100%!important;width:100%!important;box-shadow:none!important;border:0!important;background:transparent!important;padding:0!important}
#tfdu-root .tfdu-preflight-slot .tfsa-result-success,#tfdu-root .tfdu-preflight-slot [class*="tfsa-success"]{border-radius:8px!important}
#tfdu-root .tfdu-preflight-slot .tfsa-result-error,#tfdu-root .tfdu-preflight-slot [class*="tfsa-error"]{border-radius:8px!important}
/* Native upload fields stay mounted and functional. They are only hidden visually. */
.tfdu-native-hidden{position:absolute!important;clip-path:inset(50%)!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;margin:0!important;padding:0!important;left:-9999px!important}
.tfdu-native-visible{position:static!important;clip-path:none!important;width:auto!important;height:auto!important;opacity:1!important;pointer-events:auto!important;left:auto!important}
@media(max-width:700px){#tfdu-root .tfdu-card{padding:17px 15px}#tfdu-root .tfdu-head{align-items:flex-start;gap:12px}#tfdu-root .tfdu-head-icon{height:42px;width:42px}#tfdu-root .tfdu-title{font-size:20px}#tfdu-root .tfdu-file{grid-template-columns:29px minmax(0,1fr) 26px;gap:9px}#tfdu-root .tfdu-filebadge{grid-column:2/3;grid-row:2;max-width:100%}#tfdu-root .tfdu-remove{grid-column:3;grid-row:1}#tfdu-root .tfdu-drop-title{font-size:17px}}

/* Integrated server-owned preflight (0.2.0). */
#tfdu-root .tfdu-preflight-summary{padding:13px 16px;border-radius:8px;border:1px solid #cbdff4;background:#edf5ff;color:#335c87;font-size:14px;font-weight:600}
#tfdu-root .tfdu-summary-success{background:#e5f6ed;border-color:#a7d7bd;color:#14734d}
#tfdu-root .tfdu-summary-error{background:#ffebed;border-color:#edabb1;color:#b62534}
#tfdu-root .tfdu-summary-warning{background:#fff4dc;border-color:#efdda9;color:#86600d}
#tfdu-root .tfdu-preflight-fallback{padding:11px 15px;margin:10px 0;border-radius:7px;background:#fff4dc;color:#75540d;font-size:13px}
#tfdu-root .tfdu-preflight-fallback[hidden]{display:none!important}
#tfdu-root .tfdu-native-redundant-heading{display:none!important}
#tfdu-root .tfdu-tech-details{margin:12px 0;border:1px solid #d9e5f2;border-radius:8px;padding:10px 14px;background:#f7fbff;color:#244c78}
#tfdu-root .tfdu-tech-details summary{font-size:13px;font-weight:650;cursor:pointer;list-style:revert}
#tfdu-root .tfdu-tech-details[open] > :not(summary){margin-top:13px}
#tfdu-root .tfdu-preflight-native button{max-width:100%}
#tfdu-root .tfdu-preflight-native table{max-width:100%}
#tfdu-root .tfdu-preflight-native{font-size:14px;max-width:100%;width:100%;background:transparent!important;box-shadow:none!important;border:0!important;margin:0!important;padding:0!important}
#tfdu-root .tfdu-preflight-native [type=radio]{accent-color:#147bd1}
#tfdu-root .tfdu-preflight-native input[type=button],#tfdu-root .tfdu-preflight-native button:not(.tfdu-remove){border-radius:6px}

/* 0.2.1: keep native preflight in its original parent; JS handlers stay attached. */
.tfdu-preflight-native-offscreen{position:absolute!important;left:-12000px!important;top:auto!important;width:430px!important;min-height:1px!important;max-height:none!important;opacity:0!important;pointer-events:none!important;z-index:-1!important;overflow:visible!important;clip-path:inset(50%)!important}
#tfdu-root .tfdu-preflight-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:13px}
#tfdu-root .tfdu-preflight-proxy{background:#0875e9!important;color:#fff!important;border:1px solid #0875e9!important;border-radius:6px!important;padding:11px 19px!important;font-weight:650!important;cursor:pointer!important}
#tfdu-root .tfdu-preflight-proxy:disabled{opacity:.55;cursor:not-allowed!important}
#tfdu-root .tfdu-native-toggle{background:transparent!important;color:#4d749d!important;border:0!important;padding:8px 0!important;font-size:12px!important;text-decoration:underline;cursor:pointer!important}

/* 0.2.3 – visible missing options, and accurate, non-percent preflight timer. */
#tfdu-root .tfdu-preflight-validation{margin-top:13px;padding:12px 14px;background:#fff0f1;color:#aa2634;border:1px solid #edb2b8;border-radius:8px;font-size:14px;font-weight:600}
#tfdu-root .tfdu-preflight-validation[hidden],#tfdu-root .tfdu-progress[hidden],#tfdu-root .tfdu-progress-notice[hidden]{display:none!important}
form.cart .tfdu-field-invalid{border-color:#d23343!important;box-shadow:0 0 0 2px rgba(210,51,67,.12)!important}
#tfdu-root .tfdu-progress{margin-top:13px;padding:15px;border:1px solid #c7ddf4;background:#f0f7ff;border-radius:8px;color:#1a4b7e}
#tfdu-root .tfdu-progress-top{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:14px}
#tfdu-root .tfdu-progress-time{margin-left:auto;font-size:13px;color:#557a9e;font-variant-numeric:tabular-nums}
#tfdu-root .tfdu-progress-spinner{height:17px;width:17px;border:2px solid #bad6f5;border-top-color:#1673e6;border-radius:50%;animation:tfdu-spin .8s linear infinite;flex:none}
#tfdu-root .tfdu-progress-track{height:5px;background:#d7e8f8;border-radius:8px;overflow:hidden;margin-top:12px;position:relative}
#tfdu-root .tfdu-progress-track span{position:absolute;left:-40%;height:100%;width:40%;background:#2c83eb;border-radius:8px;animation:tfdu-slide 2s ease-in-out infinite}
#tfdu-root .tfdu-progress-help{font-size:12px;color:#587b9c;margin:9px 0 0}
#tfdu-root .tfdu-progress-help-warn{color:#995f1d!important;font-weight:600}
#tfdu-root .tfdu-progress-notice{font-size:13px;background:#fff4dd;color:#855f12;border:1px solid #ecd9a4;border-radius:8px;padding:12px;margin-top:12px}
@keyframes tfdu-spin{to{transform:rotate(360deg)}}
@keyframes tfdu-slide{0%{left:-40%}100%{left:100%}}
@media(prefers-reduced-motion:reduce){#tfdu-root .tfdu-progress-spinner,#tfdu-root .tfdu-progress-track span{animation:none}}

/* 0.2.5: server-reported reasons and the real WooCommerce fee choice, surfaced */
#tfdu-root .tfdu-preflight-details {margin-top:12px;display:grid;gap:9px}
#tfdu-root .tfdu-preflight-details[hidden],#tfdu-root .tfdu-preflight-remedy[hidden]{display:none!important}
#tfdu-root .tfdu-preflight-issue{padding:12px 14px;border:1px solid #e8d3b3;background:#fffaf1;border-radius:8px;font-size:13px;color:#4c3a22}
#tfdu-root .tfdu-preflight-issue p{margin:5px 0 0;overflow-wrap:anywhere}
#tfdu-root .tfdu-preflight-issue strong{display:block;margin:5px 0}
#tfdu-root .tfdu-preflight-remedy{margin:14px 0 0;padding:15px;border:1px solid #bcd1e9;border-radius:9px;background:#f8fbff;min-width:0}
#tfdu-root .tfdu-preflight-remedy legend{font-size:15px;font-weight:700;color:#173f70;padding:0 6px}
#tfdu-root .tfdu-preflight-remedy label{display:flex;align-items:center;gap:10px;border:1px solid #d1dfed;border-radius:7px;padding:10px;margin-top:8px;cursor:pointer;background:white;font-size:14px;font-weight:600;color:#24415c}
#tfdu-root .tfdu-preflight-remedy input{flex:none;accent-color:#0875e9}
#tfdu-root .tfdu-preflight-remedy p{font-size:12px;color:#586f88;margin:10px 0 0}

/* v0.2.6: original PDF guidance surfaced above result */
#tfdu-root .tfdu-guide-pdf{margin:3px 0 13px;font-size:13px}
#tfdu-root .tfdu-guide-pdf a{color:#1767b9;text-decoration:underline;font-weight:600}
#tfdu-root .tfdu-guide-pdf[hidden]{display:none!important}

/* v0.2.7 - designer's exact printable instructions; visible before any upload */
#tfdu-root .tfdu-guide-pdf{margin:6px 0 15px 0;padding:0 2px;font-size:13px;line-height:1.5}
#tfdu-root .tfdu-guide-pdf a{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#0759b1;text-decoration:underline;text-underline-offset:2px;font-weight:650}
#tfdu-root .tfdu-pvc-rules{margin:0 0 16px;border:1px solid #cbdff4;border-radius:9px;background:#f7fbff;overflow:hidden;color:#244463;font-size:13px}
#tfdu-root .tfdu-pvc-rules summary{cursor:pointer;list-style:revert;user-select:none;padding:12px 15px;font-size:13px;font-weight:700;color:#145ba6}
#tfdu-root .tfdu-pvc-rules summary:focus-visible{outline:2px solid #0875e9;outline-offset:-2px}
#tfdu-root .tfdu-pvc-rules[open] summary{border-bottom:1px solid #d8e7f5}
#tfdu-root .tfdu-pvc-rules-content{padding:11px 16px 14px;line-height:1.55}
#tfdu-root .tfdu-pvc-rules-content ul{margin:0 0 12px;padding-left:18px;list-style:disc}
#tfdu-root .tfdu-pvc-rules-content li{margin:0 0 9px;padding:0}
#tfdu-root .tfdu-pvc-rules-content p{margin:4px 0 0;color:#607594}
#tfdu-root .tfdu-guide-pdf[hidden]{display:none!important}

/* v0.2.8: troubleshooting controls are visible only to authorised debug sessions. */
#tfdu-root .tfdu-legacy-button[hidden],
#tfdu-root .tfdu-native-toggle[hidden]{display:none!important}

/* 0.2.9: deletion is pending until Uni CPO confirms server-side removal. */
#tfdu-root .tfdu-remove:disabled{opacity:.3;cursor:wait}
#tfdu-root .tfdu-filebadge.busy{background:#edf3ff!important;color:#225aa2!important}

/* v0.2.10: customer-facing PVC banner requirements */
#tfdu-root .tfdu-pvc-rules-content .tfdu-pvc-rules-intro{margin:0 0 11px;color:#244463}
#tfdu-root .tfdu-pvc-rules-content .tfdu-pvc-rules-warning{margin:12px 0 0;padding-top:10px;border-top:1px solid #d8e7f5;color:#435c78}
#tfdu-root .tfdu-pvc-rules-content .tfdu-pvc-rules-warning strong{color:#244463}
