.sfo-native-uploader,
.sfo-upload-box {
    margin: 12px 0;
}
.sfo-native-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}
.sfo-upload-row {
    margin: 8px 0;
    padding: 10px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 6px;
}
.sfo-upload-name {
    font-weight: 600;
    margin-bottom: 6px;
    word-break: break-word;
}
.sfo-progress {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0,0,0,.08);
}
.sfo-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: currentColor;
    transition: width .2s ease;
}
.sfo-upload-state,
.sfo-upload-message {
    margin-top: 6px;
    font-size: .92em;
}
.sfo-upload-message.sfo-error {
    color: #b32d2e;
}
.sfo-upload-complete .sfo-upload-state {
    font-weight: 600;
}
.sfo-order-files ul {
    margin: .35em 0 0 1.2em;
}

.sfo-debug-panel {
	position: fixed !important;
	right: 16px !important;
	bottom: 16px !important;
	z-index: 2147483647 !important;
	width: min(520px, calc(100vw - 32px));
	max-height: 70vh;
	background: #111827;
	color: #f9fafb;
	border-radius: 10px;
	box-shadow: 0 14px 38px rgba(0,0,0,.32);
	font: 12px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	overflow: hidden;
	pointer-events: auto !important;
	isolation: isolate;
}
.sfo-debug-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	background: #020617;
	border-bottom: 1px solid rgba(255,255,255,.12);
}
.sfo-debug-toggle {
	appearance: none;
	border: 1px solid rgba(255,255,255,.25);
	background: transparent;
	color: #fff;
	border-radius: 6px;
	width: 26px;
	height: 24px;
	line-height: 20px;
	cursor: pointer;
}
.sfo-debug-body {
	padding: 10px 12px 12px;
	overflow: auto;
	max-height: calc(70vh - 45px);
}
.sfo-debug-minimized .sfo-debug-body {
	display: none;
}
.sfo-debug-actions {
	display: flex;
	gap: 6px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}
.sfo-debug-actions button {
	border: 1px solid rgba(255,255,255,.25);
	background: #374151;
	color: #fff;
	border-radius: 6px;
	padding: 5px 8px;
	cursor: pointer;
	font: inherit;
}
.sfo-debug-actions button:disabled {
	opacity: .6;
	cursor: progress;
}
.sfo-debug-report {
	padding: 8px;
	background: rgba(255,255,255,.06);
	border-radius: 8px;
	margin-bottom: 8px;
}
.sfo-debug-ok {
	color: #86efac;
	font-weight: 600;
}
.sfo-debug-warn {
	color: #fde68a;
	font-weight: 600;
}
.sfo-debug-log {
	white-space: pre-wrap;
	word-break: break-word;
	margin: 0;
	padding: 8px;
	max-height: 290px;
	overflow: auto;
	background: #030712;
	border-radius: 8px;
	color: #d1d5db;
}


/* Debugger hardening: alcuni temi/builder/popup impostano z-index o pointer-events aggressivi. */
.sfo-debug-panel,
.sfo-debug-panel * {
	pointer-events: auto !important;
	box-sizing: border-box !important;
}
.sfo-debug-panel {
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
	user-select: text !important;
}
.sfo-debug-head,
.sfo-debug-actions,
.sfo-debug-actions button,
.sfo-debug-toggle {
	position: relative !important;
	z-index: 2147483647 !important;
}
.sfo-debug-actions button,
.sfo-debug-toggle {
	touch-action: manipulation !important;
	user-select: none !important;
}
.sfo-debug-copy-fallback {
	width: 100%;
	min-height: 120px;
	margin-top: 8px;
	padding: 8px;
	border-radius: 6px;
	border: 1px solid rgba(255,255,255,.25);
	background: #030712;
	color: #f9fafb;
	font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.sfo-debug-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.25);
    color: #f9fafb !important;
    background: rgba(255,255,255,.08);
    text-decoration: none !important;
    pointer-events: auto !important;
}
.sfo-debug-copy-fallback {
    display: block;
}
