﻿/*_______________________________________________________________________________________________________________
 * |                                                                                                             |
 * |  ████████╗  ██████╗   ██████╗  ██╗      ███╗   ██╗ ███████╗ ███████╗ ████████╗        ███╗   ███╗ ██████╗   |
 * |  ╚══██╔══╝ ██╔═══██╗ ██╔═══██╗ ██║      ████╗  ██║ ██╔════╝ ██╔════╝ ╚══██╔══╝        ████╗ ████║ ██╔══██╗  |
 * |     ██║    ██║   ██║ ██║   ██║ ██║      ██╔██╗ ██║ █████╗   ███████╗    ██║    █████╗ ██╔████╔██║ ██████╔╝  |
 * |     ██║    ██║   ██║ ██║   ██║ ██║      ██║╚██╗██║ ██╔══╝   ╚════██║    ██║    ╚════╝ ██║╚██╔╝██║ ██╔═══╝   |
 * |     ██║    ╚██████╔╝ ╚██████╔╝ ███████╗ ██║ ╚████║ ███████╗ ███████║    ██║           ██║ ╚═╝ ██║ ██║       |
 * |     ╚═╝     ╚═════╝   ╚═════╝  ╚══════╝ ╚═╝  ╚═══╝ ╚══════╝ ╚══════╝    ╚═╝           ╚═╝     ╚═╝ ╚═╝       |
 * |                                                                                                             |
 * |    ███╗   ███╗  █████╗  ███╗   ███╗ ███████╗ ██████╗  ██╗ ███╗   ██╗      ██████╗  ██████╗  ███╗   ███╗     |
 * |    ████╗ ████║ ██╔══██╗ ████╗ ████║ ██╔════╝ ██╔══██╗ ██║ ████╗  ██║     ██╔════╝ ██╔═══██╗ ████╗ ████║     |
 * |    ██╔████╔██║ ███████║ ██╔████╔██║ █████╗   ██████╔╝ ██║ ██╔██╗ ██║     ██║      ██║   ██║ ██╔████╔██║     |
 * |    ██║╚██╔╝██║ ██╔══██║ ██║╚██╔╝██║ ██╔══╝   ██╔═══╝  ██║ ██║╚██╗██║     ██║      ██║   ██║ ██║╚██╔╝██║     |
 * |    ██║ ╚═╝ ██║ ██║  ██║ ██║ ╚═╝ ██║ ███████╗ ██║      ██║ ██║ ╚████║ ██╗ ╚██████╗ ╚██████╔╝ ██║ ╚═╝ ██║     |
 * |    ╚═╝     ╚═╝ ╚═╝  ╚═╝ ╚═╝     ╚═╝ ╚══════╝ ╚═╝      ╚═╝ ╚═╝  ╚═══╝ ╚═╝  ╚═════╝  ╚═════╝  ╚═╝     ╚═╝     |
 * |                                                                                                             |
 * |                                                                                                             |
 * |                                 (C) 2021- mamepin.com - ALL RIGHTS RESERVED                                 |
 * |                                         Unauthorized use prohibited                                         |
 * |_____________________________________________________________________________________________________________|
 */

.tnm-image-converter {
	max-width: 900px;
	margin: 20px auto;
	color: #333333;
	line-height: 1.6;
	font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
}

.tnm-image-converter [hidden] {
	display: none !important;
}

.tnm-image-converter__hero-shell {
	position: relative;
	margin-bottom: 26px;
}

.tnm-image-converter__hero {
	background: #f8f9fa;
	border: 2px dashed #3498db;
	border-radius: 15px;
	padding: 30px;
	text-align: center;
	box-sizing: border-box;
}

.tnm-image-converter__title {
	margin: 0;
	color: #2c3e50;
	font-size: 2rem;
	line-height: 1.3;
}

.tnm-image-converter__subtitle {
	margin: 10px 0 0;
	color: #666666;
	font-size: 0.95rem;
}

.tnm-image-converter__dropzone {
	margin: 24px 0 20px;
	padding: 28px 20px;
	border: 1px solid #d6e4ef;
	border-radius: 12px;
	background: #ffffff;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	box-sizing: border-box;
}

.tnm-image-converter__dropzone:hover,
.tnm-image-converter__dropzone:focus,
.tnm-image-converter__dropzone.is-dragover {
	border-color: #3498db;
	box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.12);
	outline: none;
	transform: translateY(-1px);
}

.tnm-image-converter__file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tnm-image-converter__drop-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #2c3e50;
}

.tnm-image-converter__drop-subtitle {
	margin: 8px 0 0;
	font-size: 0.95rem;
	color: #5f6b76;
}

.tnm-image-converter__file-summary {
	margin: 12px 0 0;
	font-size: 0.9rem;
	color: #2574a9;
	word-break: break-word;
}

.tnm-image-converter__controls {
	margin-bottom: 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	align-items: stretch;
}

.tnm-image-converter__control {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 12px 14px;
	min-width: 220px;
	background: #ffffff;
	border: 1px solid #dde6ed;
	border-radius: 10px;
	box-sizing: border-box;
}

.tnm-image-converter__control--format,
.tnm-image-converter__control--quality {
	flex: 1 1 280px;
	max-width: 320px;
}

.tnm-image-converter__control--quality {
	min-width: 0;
}

.tnm-image-converter__control--quality .tnm-image-converter__range {
	margin-bottom: 2px;
}

.tnm-image-converter__label {
	font-weight: 700;
	font-size: 0.92rem;
	color: #334e68;
}

.tnm-image-converter__select,
.tnm-image-converter__range {
	width: 100%;
	box-sizing: border-box;
}

.tnm-image-converter__select {
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #c9d4de;
	background: #ffffff;
	font: inherit;
	color: #334e68;
}

.tnm-image-converter__range {
	accent-color: #3498db;
}

.tnm-image-converter__quality-value {
	font-weight: 700;
	color: #3498db;
}

.tnm-image-converter__quality-note {
	margin: 2px 0 0;
	width: 100%;
	font-size: 0.78rem;
	line-height: 1.5;
	color: #6b7c93;
	text-align: center;
}

.tnm-image-converter__checkbox {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 16px;
	background: #ffffff;
	border: 1px solid #dde6ed;
	border-radius: 10px;
	font-weight: 700;
	color: #334e68;
	min-width: 180px;
	box-sizing: border-box;
	cursor: pointer;
}

.tnm-image-converter__checkbox input {
	margin: 0;
	accent-color: #3498db;
}

.tnm-image-converter__hero-toolbar {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
	padding-right: 8px;
	transform: translateY(8px);
}

.tnm-image-converter__checkbox--list-toggle {
	min-width: 0;
	padding: 9px 14px;
	font-size: 0.88rem;
	box-shadow: 0 8px 20px rgba(31, 97, 141, 0.08);
}

.tnm-image-converter__button {
	background: #3498db;
	color: #ffffff;
	border: none;
	padding: 15px 40px;
	border-radius: 30px;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.tnm-image-converter__button:hover,
.tnm-image-converter__button:focus {
	background: #2b84be;
	transform: translateY(-1px);
	outline: none;
}

.tnm-image-converter__button:disabled,
.tnm-image-converter.is-busy .tnm-image-converter__button {
	cursor: wait;
	opacity: 0.75;
	transform: none;
}

.tnm-image-converter__status-wrap {
	margin-top: 16px;
	display: grid;
	gap: 12px;
	justify-items: center;
}

.tnm-image-converter__status {
	min-height: 1.5em;
	font-weight: 700;
	color: #27ae60;
}

.tnm-image-converter__status.is-error {
	color: #c0392b;
}

.tnm-image-converter__avif-status {
	width: min(100%, 460px);
	padding: 14px 16px;
	background: #ebf5fb;
	border: 1px solid #bcdff1;
	border-radius: 12px;
	box-sizing: border-box;
}

.tnm-image-converter__avif-status-dialog {
	display: grid;
	gap: 8px;
}

.tnm-image-converter__avif-status-text {
	font-weight: 700;
	color: #1f618d;
	white-space: pre-line;
}

.tnm-image-converter__avif-status-meter {
	width: 100%;
	height: 14px;
}

.tnm-image-converter__avif-status-percent {
	font-size: 0.9rem;
	color: #2471a3;
	justify-self: end;
}

.tnm-image-converter__content {
	max-width: 900px;
	margin: auto;
	margin-top: 50px;
	border-top: 1px solid #eeeeee;
	/*padding-top: 30px;*/
}

.tnm-image-converter__section-title {
	margin: 32px 0 20px;
	padding-left: 15px;
	border-left: 5px solid #3498db;
	color: #2c3e50;
	font-size: 1.65rem;
	line-height: 1.35;
}

.tnm-image-converter__subheading {
	margin: 0 0 14px;
	padding-left: 12px;
	border-left: 4px solid #8fc9ed;
	color: #2c3e50;
	font-size: 1.2rem;
}

.tnm-image-converter__subheading--compact {
	margin-bottom: 10px;
}

.tnm-image-converter__subheading--list {
	margin-bottom: 14px;
}

.tnm-image-converter__note {
	font-size: 0.84rem;
	color: #6b7c93;
}

.tnm-image-converter__note a {
	color: #2471a3;
	text-underline-offset: 2px;
}

.tnm-image-converter__steps {
	margin: 0 0 24px;
	padding-left: 1.4em;
}

.tnm-image-converter__steps li + li {
	margin-top: 10px;
}

.tnm-image-converter__feature-box {
	margin: 20px 0;
	padding: 20px;
	background: #ebf5fb;
	border-radius: 10px;
	box-sizing: border-box;
}

.tnm-image-converter__feature-list {
	margin: 0;
	padding-left: 1.3em;
	line-height: 1.8;
}

.tnm-image-converter__feature-list li + li {
	margin-top: 10px;
}

.tnm-image-converter__subheading--quality-guide {
	margin-top: 20px;
}

.tnm-image-converter__file-list {
	margin-top: 18px;
	padding: 18px 20px;
	background: #ffffff;
	border: 1px solid #dde6ed;
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(44, 62, 80, 0.06);
	box-sizing: border-box;
}

.tnm-image-converter__file-list-empty {
	font-size: 0.9rem;
	color: #6b7c93;
}

.tnm-image-converter__file-items {
	display: grid;
	gap: 10px;
}

.tnm-image-converter__file-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #e5edf3;
	border-radius: 12px;
	background: #f9fbfd;
	box-sizing: border-box;
}

.tnm-image-converter__file-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #d7e2ea;
	border-radius: 999px;
	background: #ffffff;
	color: #6b7c93;
	font-size: 1.05rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tnm-image-converter__file-remove:hover,
.tnm-image-converter__file-remove:focus {
	background: #fef2f2;
	border-color: #ef9a9a;
	color: #c0392b;
	outline: none;
}

.tnm-image-converter__file-info {
	min-width: 0;
	text-align: left;
}

.tnm-image-converter__file-name {
	font-weight: 700;
	color: #2c3e50;
	word-break: break-all;
}

.tnm-image-converter__file-meta {
	margin-top: 2px;
	font-size: 0.84rem;
	color: #6b7c93;
}

.tnm-image-converter__file-download {
	justify-self: end;
	padding: 9px 16px;
	border: 1px solid #3498db;
	border-radius: 999px;
	background: #ffffff;
	color: #3498db;
	font-size: 0.86rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tnm-image-converter__file-download:hover,
.tnm-image-converter__file-download:focus {
	background: #3498db;
	color: #ffffff;
	transform: translateY(-1px);
	outline: none;
}

.tnm-image-converter__paragraph {
  line-height: 1.8;
	margin: 0 0 24px;
	color: #4a5560;
}

.tnm-image-converter__table-wrap {
	overflow-x: auto;
}

.tnm-image-converter__table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
	font-size: 0.92rem;
	background: #ffffff;
}

.tnm-image-converter__table th,
.tnm-image-converter__table td {
	padding: 12px 10px;
	border: 1px solid #dddddd;
	text-align: left;
	vertical-align: top;
}

.tnm-image-converter__table thead th {
	background: #7dbbe3;
	color: #ffffff;
	font-weight: 700;
}

.tnm-image-converter__table tbody td:first-child {
	font-weight: 700;
	white-space: nowrap;
}

.tnm-image-converter.is-busy .tnm-image-converter__dropzone,
.tnm-image-converter.is-busy .tnm-image-converter__select,
.tnm-image-converter.is-busy .tnm-image-converter__range,
.tnm-image-converter.is-busy .tnm-image-converter__checkbox {
	opacity: 0.75;
	pointer-events: none;
}

@media (max-width: 767px) {
	.tnm-image-converter {
		margin: 16px auto;
	}

	.tnm-image-converter__hero {
		padding: 22px 16px;
	}

	.tnm-image-converter__title {
		font-size: 1.6rem;
	}

	.tnm-image-converter__controls {
		flex-direction: column;
		align-items: stretch;
	}

	.tnm-image-converter__hero-toolbar {
		justify-content: center;
		padding-right: 0;
		transform: translateY(4px);
	}

	.tnm-image-converter__control,
	.tnm-image-converter__checkbox {
		width: 100%;
		min-width: 0;
	}

	.tnm-image-converter__checkbox--list-toggle {
		width: auto;
		justify-content: center;
	}

	.tnm-image-converter__button {
		width: 100%;
		padding-left: 20px;
		padding-right: 20px;
	}

	.tnm-image-converter__section-title {
		font-size: 1.4rem;
	}

	.tnm-image-converter__subheading {
		font-size: 1.08rem;
	}

	.tnm-image-converter__file-list {
		padding: 16px;
	}

	.tnm-image-converter__file-item {
		grid-template-columns: auto 1fr;
	}

	.tnm-image-converter__file-download {
		grid-column: 1 / -1;
		width: 100%;
	}

	.tnm-image-converter__table {
		font-size: 0.86rem;
	}
}
