/* ----------------------------------------------------------------
	Free tools (the HEIC to PDF converter, /heic-to-pdf/ and its translations)
-----------------------------------------------------------------*/

.heic-tool {
	max-width: 750px;
	margin: 0 auto 3.5rem;
}

/* Drop zone, with the "Choose photos" button */
.heic-drop {
	padding: 2.5rem 1rem;
	border: 2px dashed #c9c9c9;
	border-radius: 12px;
	background-color: #fafafa;
	text-align: center;
	transition: border-color 0.2s, background-color 0.2s;
}

.heic-drop:hover,
.heic-drop:focus-within,
.heic-drop.is-dragging {
	border-color: var(--cnvs-themecolor);
	background-color: rgba(var(--cnvs-themecolor-rgb), 0.05);
}

.heic-tool label {
	margin-bottom: 0;
}

/* The file input itself is hidden: its keyboard focus shows on the button */
.heic-drop:has(input:focus-visible) .btn {
	outline: 2px solid var(--cnvs-themecolor);
	outline-offset: 3px;
}

.heic-drop-text {
	margin: 0.75rem 0 0;
	color: #666;
}

/* The photos, one row each */
.heic-list {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.heic-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid #eee;
}

.heic-thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 6px;
	background-color: #f0f0f0;
	object-fit: cover;
}

.heic-label {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.heic-name {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.heic-state {
	color: #666;
	font-size: 0.875rem;
}

.heic-item.is-error .heic-state {
	color: #c62828;
}

.heic-actions {
	display: flex;
	flex-shrink: 0;
	gap: 0.25rem;
}

.heic-actions button {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 6px;
	background-color: #fff;
	color: #333;
	font-size: 1.1rem;
	line-height: 1;
}

.heic-actions button:hover,
.heic-actions button:focus-visible {
	border-color: var(--cnvs-themecolor);
}

/* Page size and "Make the file smaller" */
.heic-options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	margin: 1.5rem 0;
}

.heic-options select {
	min-height: 38px;
	margin-left: 0.5rem;
	padding: 0.25rem 0.5rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	background-color: #fff;
	color: #333;
}

.heic-check {
	font-weight: 400;
}

.heic-check input {
	margin-right: 0.4rem;
	accent-color: var(--cnvs-themecolor);
}

/* "Create PDF" and the download button that follows it */
.heic-tool .btn-primary {
	--bs-btn-disabled-bg: #02c204;
	--bs-btn-disabled-border-color: #02c204;
}

.heic-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.heic-result {
	margin: 0;
}

.heic-privacy {
	margin: 1.25rem 0 0;
	color: #666;
	font-size: 0.95rem;
}

/* The text below the tool, like a blog post */
.tool-content {
	max-width: 750px;
	margin: 0 auto;
	color: #333;
	font-size: 1.075rem;
	line-height: 1.8;
}

.tool-content h2 {
	margin: 2.5rem 0 1rem;
	font-size: 1.6rem;
}

.tool-content h3 {
	margin: 1.75rem 0 0.5rem;
	font-size: 1.2rem;
}

.tool-content ol,
.tool-content ul {
	margin-bottom: 1.5rem;
	padding-left: 1.5rem;
}

.tool-content li {
	margin-bottom: 0.4rem;
}
