.toolhub-word-to-pdf .toolhub-layout {
	align-items: start;
}

.toolhub-word-to-pdf__dropzone {
	display: grid;
	gap: 0.35rem;
	padding: 1.4rem;
	border: 2px dashed var(--toolhub-border, #cbd5e1);
	border-radius: 0.85rem;
	background: var(--toolhub-soft, #f8fafc);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.16s ease, background-color 0.16s ease;
}

.toolhub-word-to-pdf__dropzone:hover,
.toolhub-word-to-pdf__dropzone.is-dragging {
	border-color: var(--toolhub-primary, #2563eb);
	background: #eff6ff;
}

.toolhub-word-to-pdf__dropzone:focus-visible,
.toolhub-word-to-pdf .toolhub-button:focus-visible,
.toolhub-word-to-pdf .toolhub-field select:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 3px;
}

.toolhub-word-to-pdf__status {
	min-height: 1.5em;
	margin: 0 0 1rem;
}

.toolhub-word-to-pdf__details,
.toolhub-word-to-pdf__options,
.toolhub-word-to-pdf__disclosures,
.toolhub-word-to-pdf [data-word-result] {
	margin-top: 1.25rem;
}

.toolhub-word-to-pdf__options {
	padding: 1rem;
	border: 1px solid var(--toolhub-border, #cbd5e1);
	border-radius: 0.75rem;
}

.toolhub-word-to-pdf__disclosures {
	padding: 0.8rem 1rem;
	border-left: 4px solid #64748b;
	background: #f8fafc;
	color: #334155;
}

.toolhub-word-to-pdf__disclosures p {
	margin: 0;
}

.toolhub-word-to-pdf__disclosures p + p {
	margin-top: 0.6rem;
}

.toolhub-word-to-pdf__warning {
	padding: 0.75rem 0.9rem;
	border: 1px solid #f59e0b;
	border-radius: 0.65rem;
	background: #fffbeb;
	color: #78350f;
}

.toolhub-word-to-pdf__preview {
	max-width: 100%;
	max-height: 34rem;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 0.75rem;
	border: 1px solid var(--toolhub-border, #cbd5e1);
	border-radius: 0.75rem;
	background: #e2e8f0;
	contain: layout paint;
}

.toolhub-word-to-pdf__preview-document {
	display: block;
	width: max-content;
	min-width: 100%;
	max-width: none;
}

.toolhub-word-to-pdf__preview-document .docx-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	min-width: min-content;
	padding: 0 !important;
	background: transparent !important;
}

.toolhub-word-to-pdf__preview-document section.docx {
	margin: 0 !important;
	box-shadow: 0 5px 18px rgba(15, 23, 42, 0.16);
}

.toolhub-word-to-pdf__render-portal {
	position: fixed;
	top: 0;
	left: -100000px;
	z-index: -1;
	display: block;
	width: max-content;
	max-width: none;
	pointer-events: none;
	contain: layout style paint;
}

.toolhub-word-to-pdf[aria-busy="true"] .toolhub-word-to-pdf__status::before {
	content: "";
	display: inline-block;
	width: 0.75rem;
	height: 0.75rem;
	margin-right: 0.5rem;
	border: 2px solid #bfdbfe;
	border-top-color: var(--toolhub-primary, #2563eb);
	border-radius: 50%;
	vertical-align: -0.08em;
	animation: toolhub-word-spin 0.8s linear infinite;
}

@keyframes toolhub-word-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
	.toolhub-word-to-pdf__dropzone {
		padding: 1rem;
	}

	.toolhub-word-to-pdf__preview {
		max-height: 28rem;
		padding: 0.45rem;
	}

	.toolhub-word-to-pdf .toolhub-actions {
		align-items: stretch;
	}

	.toolhub-word-to-pdf .toolhub-actions .toolhub-button {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.toolhub-word-to-pdf[aria-busy="true"] .toolhub-word-to-pdf__status::before {
		animation-duration: 1.8s;
	}
}

