/* ───────────────────────────────────────────────────────
 * sticker-order.js UI v3 — 기존 .opt-section 컨벤션 정렬
 *   - border-radius 5px, 1px solid #e5e5e5, no shadow
 *   - margin-bottom 25px (other section 들과 동일)
 *   - 헤더 패딩 16px (기존 .opt-section-header 와 동일)
 * ─────────────────────────────────────────────────────── */

.sticker-order-area {
	margin: 0 0 25px;
	padding: 0;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 5px;
	overflow: hidden;
}
.sticker-order-head {
	padding: 16px 16px 14px;
	border-bottom: 1px solid #f0f0f0;
}
.sticker-order-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 4px;
}
.sticker-order-hint {
	display: block;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.55;
}
.sticker-order-body { padding: 16px; }

/* ── 칼형 카드 리스트 ──────────────────────── */
.sticker-die-shape-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}
/* .opt-select-card 의 글로벌 음수 margin override (grid 안에서는 0) */
.sticker-die-shape-list .sticker-die-shape-card {
	margin: 0 !important;
}
.sticker-die-shape-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 5px;
	padding: 16px 12px 12px;
	cursor: pointer;
	transition: border-color 0.12s, background 0.12s;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 138px;
	position: relative;
}
.sticker-die-shape-card:hover {
	border-color: #c0c4ca;
	background: #fafbfc;
}
.sticker-die-shape-card.is-selected {
	border-color: #1a73e8;
	background: #f0f6ff;
}
.sticker-die-shape-card.is-selected::after {
	content: '✓';
	position: absolute;
	top: 6px;
	right: 6px;
	width: 16px;
	height: 16px;
	background: #1a73e8;
	color: #fff;
	border-radius: 50%;
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}
.sticker-card-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}
.sticker-card-icon svg { width: 100%; height: 100%; }
.sticker-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.sticker-card-meta {
	text-align: center;
	width: 100%;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.sticker-card-name {
	font-size: 13px;
	font-weight: 600;
	color: #1f2937;
	line-height: 1.35;
	margin-bottom: 3px;
}
.sticker-card-size {
	font-size: 11px;
	color: #6b7280;
	font-variant-numeric: tabular-nums;
}
.sticker-card-cutters {
	font-size: 10.5px;
	color: #9ca3af;
	margin-top: auto;
	padding-top: 7px;
	border-top: 1px solid #f3f4f6;
	width: 100%;
}
.sticker-die-shape-card.is-selected .sticker-card-name { color: #1a73e8; }

.sticker-empty {
	padding: 28px;
	color: #9ca3af;
	text-align: center;
	font-size: 13px;
	background: #fafbfc;
	border-radius: 5px;
}

/* ── PNG 업로드 영역 (자유형) ─────────────── */
.sticker-upload-zone {
	background: #fafbfc;
	border: 2px dashed #cbd5e1;
	border-radius: 5px;
	padding: 32px 20px 24px;
	text-align: center;
	cursor: pointer;
	transition: all 0.15s ease;
	outline: none;
}
.sticker-upload-zone:hover,
.sticker-upload-zone:focus {
	border-color: #1a73e8;
	background: #f0f6ff;
}
.sticker-upload-zone.is-dragover {
	border-color: #1a73e8;
	background: #e3f2fd;
}
.sticker-upload-zone.is-uploading { opacity: 0.55; cursor: wait; }
.sticker-upload-zone.is-highlight {
	animation: sticker-pulse 0.6s ease-out 2;
}
@keyframes sticker-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.4); }
	100% { box-shadow: 0 0 0 12px rgba(26, 115, 232, 0); }
}
.sticker-upload-prompt-main {
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	margin-top: 12px;
}
.sticker-upload-prompt-sub {
	font-size: 12px;
	color: #6b7280;
	margin-top: 6px;
	line-height: 1.55;
}
.sticker-upload-size-row {
	display: flex;
	gap: 16px;
	justify-content: center;
	margin-top: 16px;
	font-size: 12px;
	color: #4b5563;
}
.sticker-upload-size-row label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.sticker-upload-size-row input[type="number"] {
	width: 72px;
	padding: 6px 8px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}
.sticker-upload-size-row input[type="number"]:focus {
	outline: none;
	border-color: #1a73e8;
}

/* ── 업로드 결과 ─────────────────────────── */
.sticker-upload-result {
	margin-top: 16px;
	padding: 14px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 5px;
}
.sticker-result-card {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.sticker-result-img {
	width: 116px;
	height: 116px;
	flex: 0 0 116px;
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.sticker-result-img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.sticker-result-info {
	flex: 1;
	font-size: 12.5px;
}
.sticker-result-row {
	display: flex;
	justify-content: space-between;
	padding: 5px 0;
	border-bottom: 1px dashed #f3f4f6;
}
.sticker-result-row:last-child { border-bottom: none; }
.sticker-result-row span { color: #6b7280; }
.sticker-result-row b { color: #1f2937; font-weight: 600; font-variant-numeric: tabular-nums; }
.sticker-result-warn {
	margin-top: 8px;
	padding: 8px 10px;
	background: #fef3c7;
	color: #92400e;
	border-radius: 4px;
	font-size: 11.5px;
}
.sticker-result-actions {
	margin-top: 14px;
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}
.sticker-result-actions button {
	padding: 8px 16px;
	border: 1px solid #1a73e8;
	border-radius: 4px;
	background: #fff;
	color: #1a73e8;
	font-size: 13px;
	cursor: pointer;
	font-weight: 600;
}
.btn-sticker-edit-launch {
	background: #1a73e8 !important;
	color: #fff !important;
}
.btn-sticker-edit-launch:hover { background: #1557b0 !important; border-color: #1557b0 !important; }
.btn-sticker-skip-edit:hover { background: #f0f6ff; }
.btn-sticker-skip-edit.is-confirmed {
	background: #34a853 !important;
	color: #fff !important;
	border-color: #34a853 !important;
}

/* ── 절단방식 추천 ───────────────────────── */
.sticker-cutter-recommend {
	margin: 18px 16px 16px;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
}
.sticker-cutter-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 10px;
}
.sticker-cutter-title {
	font-size: 13px;
	font-weight: 600;
	color: #1f2937;
}
.sticker-cutter-meta {
	font-size: 11.5px;
	color: #6b7280;
	font-variant-numeric: tabular-nums;
}
.sticker-cutter-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px;
}
.sticker-cutter-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 5px;
	padding: 10px 12px;
	cursor: pointer;
	transition: border-color 0.12s;
	position: relative;
}
.sticker-cutter-card:hover { border-color: #c0c4ca; }
.sticker-cutter-card.is-recommended {
	border-color: #1a73e8;
	background: #f0f6ff;
}
.sticker-cutter-card.is-user-selected {
	border-color: #1a73e8;
	box-shadow: inset 0 0 0 1px #1a73e8;
}
.sticker-cutter-card.is-blocked {
	background: #f9fafb;
	border-color: #e5e7eb;
	opacity: 0.5;
	cursor: not-allowed;
}
.sticker-cutter-name {
	font-size: 13px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 3px;
}
.sticker-cutter-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	background: #1a73e8;
	color: #fff;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 700;
}
.sticker-cutter-blocked-tag {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	background: #d1d5db;
	color: #6b7280;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 600;
}
.sticker-cutter-desc {
	font-size: 11.5px;
	color: #6b7280;
	line-height: 1.45;
}
