/* Wasshoi DTF Order – 注文フォーム */
.wdtf {
	--wdtf-orange: #f26b0f;
	--wdtf-orange-2: #f7891f;
	--wdtf-orange-dark: #d85600;
	--wdtf-peach: #fff3e8;
	--wdtf-peach-2: #fde6d2;
	--wdtf-line: #ead9ca;
	--wdtf-text: #1f1f1f;
	--wdtf-muted: #6b6b6b;
	color: var(--wdtf-text);
	font-size: 15px;
}
.wdtf *, .wdtf *::before, .wdtf *::after { box-sizing: border-box; }
.wdtf [hidden] { display: none !important; }

/* 行 */
.wdtf-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.wdtf-label { flex: 0 0 120px; font-weight: 700; font-size: 14px; }
.wdtf-control { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wdtf-unit { font-weight: 700; font-size: 14px; white-space: nowrap; }
.wdtf-unit small { font-weight: 500; color: var(--wdtf-muted); font-size: 12px; }
.wdtf-fixed {
	display: inline-flex; align-items: center; justify-content: center;
	width: 76px; height: 42px; border: 1px solid var(--wdtf-line); border-radius: 6px;
	background: #fff; font-weight: 700; font-size: 18px;
}

/* ステッパー */
.wdtf-stepper { display: inline-flex; align-items: stretch; height: 42px; border: 1px solid var(--wdtf-line); border-radius: 6px; background: #fff; overflow: hidden; }
.wdtf-step-btn {
	width: 38px; border: 0; background: #fff; color: var(--wdtf-text); font-size: 18px; line-height: 1; cursor: pointer;
	transition: background .15s;
}
.wdtf-step-btn:hover { background: var(--wdtf-peach); color: var(--wdtf-orange); }
.wdtf-stepper input {
	width: 76px; border: 0; border-left: 1px solid var(--wdtf-line); border-right: 1px solid var(--wdtf-line);
	text-align: center; font-size: 18px; font-weight: 700; color: var(--wdtf-text); background: #fff;
	-moz-appearance: textfield; appearance: textfield; padding: 0; border-radius: 0; margin: 0;
}
.wdtf-stepper input::-webkit-outer-spin-button,
.wdtf-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wdtf-stepper input:focus { outline: 2px solid var(--wdtf-orange); outline-offset: -2px; }

/* 結果 */
.wdtf-dl { margin: 0; }
.wdtf-dl > div { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--wdtf-line); font-size: 13px; }
.wdtf-dl dt { color: #444; font-weight: 500; }
.wdtf-dl dd { margin: 0; font-size: 13px; }
.wdtf-dl dd b { font-size: 17px; font-weight: 700; }
.wdtf-minus { color: var(--wdtf-orange-dark); }
.wdtf-price { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 6px; }
.wdtf-price__label { font-weight: 700; font-size: 14px; }
.wdtf-price__value { color: var(--wdtf-orange); font-weight: 900; display: inline-flex; align-items: baseline; gap: 2px; }
.wdtf-price__value b { font-size: 32px; letter-spacing: .01em; font-feature-settings: "tnum"; }
.wdtf-price__value span { font-size: 16px; font-weight: 700; }
.wdtf-price__value small { font-size: 11px; }
.wdtf-discount { margin: 0 0 6px; font-size: 12px; color: var(--wdtf-orange-dark); font-weight: 700; text-align: right; }
.wdtf-next { margin: 0 0 10px; font-size: 12px; color: var(--wdtf-orange-dark); font-weight: 700; min-height: 1em; }

.wdtf-submit {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
	min-height: 52px; border: 0; border-radius: 999px; cursor: pointer;
	background: linear-gradient(180deg, var(--wdtf-orange-2), var(--wdtf-orange));
	color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .04em;
	box-shadow: 0 6px 14px rgba(242, 107, 15, .28); transition: transform .15s, box-shadow .15s, opacity .15s;
}
.wdtf-submit svg { width: 24px; height: 24px; }
.wdtf-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(242, 107, 15, .36); }
.wdtf-submit.is-disabled { opacity: .55; box-shadow: none; }
.wdtf-submit.is-loading { opacity: .7; pointer-events: none; }
.wdtf-error { margin: 10px 0 0; padding: 10px 12px; border-radius: 6px; background: #fff0f0; color: #c0262d; font-size: 13px; font-weight: 700; }
.wdtf-small { margin: 12px 0 0; font-size: 11.5px; color: var(--wdtf-muted); line-height: 1.7; }
.wdtf-help { margin: 8px 0 0; font-size: 12.5px; color: var(--wdtf-muted); line-height: 1.75; }
.wdtf-help a { color: var(--wdtf-orange-dark); }

/* ファイル選択（コンパクト） */
.wdtf-file-btn {
	display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 6px; cursor: pointer;
	border: 1px solid var(--wdtf-orange); color: var(--wdtf-orange); background: #fff; font-weight: 700; font-size: 13px;
}
.wdtf-file-btn:hover { background: var(--wdtf-peach); }
.wdtf-file-name { font-size: 12.5px; color: var(--wdtf-muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wdtf-filepick.is-over .wdtf-file-btn, .wdtf-filepick.is-required .wdtf-file-btn { background: var(--wdtf-peach); box-shadow: 0 0 0 3px rgba(242, 107, 15, .2); }

.wdtf-progress { height: 6px; border-radius: 6px; background: var(--wdtf-peach-2); overflow: hidden; margin: 8px 0; }
.wdtf-progress span { display: block; height: 100%; width: 0; background: var(--wdtf-orange); transition: width .2s; }

/* ===== コンパクト（トップページの見積り） ===== */
.wdtf-compact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px); gap: 22px; align-items: start; }
.wdtf--compact .wdtf-label { flex-basis: 96px; font-size: 13.5px; }
.wdtf--compact .wdtf-row { padding: 9px 0; }
.wdtf-compact__result { background: #fff; border-radius: 10px; padding: 8px 16px 16px; }
.wdtf--compact .wdtf-price__value b { font-size: 28px; }

/* ===== フル（注文ページ） ===== */
.wdtf-full { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.wdtf-full__main { display: grid; gap: 24px; }
.wdtf-full__side { position: sticky; top: 96px; }
.wdtf-card { background: #fff; border: 1px solid #f0e4d8; border-radius: 14px; padding: 24px 26px; box-shadow: 0 4px 18px rgba(0, 0, 0, .04); }
.wdtf-card__title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.wdtf-num {
	display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
	background: var(--wdtf-orange); color: #fff; font-size: 16px; font-weight: 700; flex: none;
}
.wdtf-summary { background: var(--wdtf-peach); border-color: var(--wdtf-peach-2); }

.wdtf-drop {
	display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; cursor: pointer;
	padding: 30px 16px; border: 2px dashed #f2b98d; border-radius: 12px; background: #fffaf6; transition: background .15s, border-color .15s;
}
.wdtf-drop:hover, .wdtf-drop.is-over { background: var(--wdtf-peach); border-color: var(--wdtf-orange); }
.wdtf-drop.is-required { border-color: #c0262d; }
.wdtf-drop__icon { width: 54px; height: 54px; color: var(--wdtf-orange); }
.wdtf-drop__icon svg { width: 100%; height: 100%; }
.wdtf-drop__text { font-size: 14px; line-height: 1.7; }
.wdtf-drop__text u { color: var(--wdtf-orange-dark); }
.wdtf-drop__note { font-size: 12px; color: var(--wdtf-muted); }

.wdtf-fileinfo { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--wdtf-line); border-radius: 12px; background: #fffaf6; }
.wdtf-fileinfo__thumb {
	width: 72px; height: 72px; flex: none; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center;
	background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 50% / 14px 14px; font-weight: 900; color: var(--wdtf-orange);
}
.wdtf-fileinfo__thumb img { width: 100%; height: 100%; object-fit: contain; }
.wdtf-fileinfo__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; font-size: 13px; }
.wdtf-fileinfo__body b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wdtf-ok { color: #1f8a4c; font-weight: 700; font-size: 12px; }
.wdtf-fileinfo__remove { border: 1px solid var(--wdtf-line); background: #fff; border-radius: 6px; padding: 7px 12px; cursor: pointer; font-size: 12.5px; }

.wdtf-row--note { align-items: flex-start; margin-top: 8px; }
.wdtf-row--note textarea { flex: 1; border: 1px solid var(--wdtf-line); border-radius: 6px; padding: 10px; font: inherit; font-size: 14px; resize: vertical; }

/* シートのイメージ */
.wdtf-sheet { margin-top: 16px; background: #faf7f4; border-radius: 10px; padding: 14px; text-align: center; }
.wdtf-sheet__width { font-size: 11px; color: var(--wdtf-muted); width: 168px; margin: 0 auto 4px; }
.wdtf-sheet__body {
	position: relative; width: 168px; margin: 0 auto; background: #fff; border: 1px solid #ddd;
	background-image: linear-gradient(45deg, #f3f3f3 25%, transparent 25%, transparent 75%, #f3f3f3 75%), linear-gradient(45deg, #f3f3f3 25%, transparent 25%, transparent 75%, #f3f3f3 75%);
	background-size: 10px 10px; background-position: 0 0, 5px 5px; overflow: hidden; transition: height .2s;
}
.wdtf-sheet__design { position: absolute; left: 8px; right: 8px; border-radius: 2px; background: linear-gradient(120deg, #ff4f9a, #ffc928 45%, #29a8ea); opacity: .85; }
.wdtf-sheet__more { position: absolute; left: 0; right: 0; bottom: 4px; font-size: 11px; font-weight: 700; color: var(--wdtf-text); }
.wdtf-sheet__caption { margin-top: 6px; font-size: 12px; color: var(--wdtf-muted); }

/* 料金表 */
.wdtf-price-table table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.wdtf-price-table th { background: #fde3cc; font-weight: 700; font-size: 13px; padding: 10px 8px; border: 1px solid #efd2b8; }
.wdtf-price-table td { padding: 9px 8px; border: 1px solid #ececec; text-align: center; font-weight: 500; font-feature-settings: "tnum"; }
.wdtf-price-table__note { margin: 8px 0 0; font-size: 11.5px; color: var(--wdtf-muted); line-height: 1.7; }

.wdtf-notices { margin-bottom: 16px; }

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
	.wdtf-full { grid-template-columns: 1fr; }
	.wdtf-full__side { position: static; }
}
@media (max-width: 760px) {
	.wdtf-compact { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.wdtf-card { padding: 20px 16px; }
	.wdtf-row { gap: 10px; }
	.wdtf-label { flex-basis: 92px; font-size: 13px; }
	.wdtf--compact .wdtf-label { flex-basis: 92px; }
	.wdtf-stepper input { width: 62px; }
	.wdtf-step-btn { width: 34px; }
	.wdtf-fixed { width: 62px; }
	.wdtf-row--note { flex-direction: column; align-items: stretch; }
	.wdtf-row--note textarea { width: 100%; }
}
