/* post.css - 후가공 보조 스타일 (메인은 style.css) */
/* 주문 내역 보조 액션 (견적서 / 장바구니) — 피그마 11:670/675 적용 */
.order-action-icons {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}
.btn-action-icon {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 50px;
	background: var(--fb-color_bg_white);
	border: 1px solid var(--fb-color_border_default);
	border-radius: 3px;
	font-size: 14px;
	font-weight: 500;
	color: #555;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-action-icon:hover {
	background: var(--fb-color_bg_subtle);
	border-color: var(--fb-color_text_muted);
	color: var(--fb-color_text_primary);
}
.btn-action-icon svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

/* ===== Upload detail layout ===== */
.upload-detail-info {
	display: flex;
	flex-direction: column;
}
.upload-detail-info .upload-download-row {
	margin-top: auto;
	padding: 0;
}

/* ===== Upload detail specs ===== */
.upload-detail-specs {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
}
.upload-detail-specs li {
	display: flex;
	align-items: center;
	font-size: 13px;
	color: var(--fb-color_text_secondary);
	line-height: 2;
}
.upload-detail-specs .spec-label {
	color: var(--fb-color_text_muted);
	min-width: 52px;
}
.upload-detail-specs .spec-dot {
	margin: 0 6px;
	color: var(--fb-color_text_disabled);
}
.upload-detail-specs .spec-value {
	color: var(--fb-color_text_primary);
}
.upload-detail-specs .spec-size-input {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: var(--fb-color_text_secondary);
	position: relative;
}
.upload-detail-specs .spec-size-input .opt-size-input {
	width: 80px;
	height: 32px;
}

/* ===== Editor launch row ( "에디터로 바로 디자인하기" 버튼 ) =====
   파일 업로드 전: outline 스타일(secondary). 파일 업로드 필드(앞면/뒷면) 에 주목도를 양보.
   파일 업로드 완료 후: .is-uploaded 상태로 전환되어 .btn-download-unified 와 동일 톤(회색 약화) 으로.
   - 좌우 여백은 .uv-file-section(margin 0 16px) 과 맞춰 시각적 정렬. */
.editor-launch {
	display: flex;
	margin: 0 16px 10px;
}
/* .btn-editor-launch 스타일은 .btn-fb-design (피그마 통일) 으로 일원화.
   여기서는 SVG path 색상만 currentColor 로 inherit 보장. */
.btn-editor-launch svg path { stroke: currentColor; }

/* 파일 업로드 완료 후: 에디터 버튼을 보조 톤으로 강등 (주 액션은 "주문하기" 로 이동) */
.editor-launch.is-uploaded .btn-fb-design.btn-editor-launch {
	color: #aaa;
	background: var(--fb-color_bg_subtle);
	border-color: #e5e5e5;
}
.editor-launch.is-uploaded .btn-fb-design.btn-editor-launch:hover {
	color: var(--fb-color_text_secondary);
	background: #f5f5f5;
	border-color: #bbb;
}
/* 업로드 완료 상태에서 아이콘 톤 — 텍스트와 동일 톤(#aaa→var(--fb-color_text_secondary)). 호버 시 흰색 invert 막기 */
.editor-launch.is-uploaded .btn-fb-design.btn-editor-launch .btn-fb-design-icon {
	opacity: 0.55;
	filter: none;
}
.editor-launch.is-uploaded .btn-fb-design.btn-editor-launch:hover .btn-fb-design-icon {
	opacity: 0.75;
	filter: none;
}

/* ===== Upload guide download row =====
   위치: .uv-file-section 내부, 에디터 버튼 바로 아래.
   - 좌우 여백: 부모 .uv-file-section 의 margin 16px 로 확보됨.
   - 상단 여백: 위쪽 .editor-launch 의 padding-bottom 으로 확보.
   - 하단 14px 로 아래 앞면/뒷면(uv-side-uploads) 과 시각적 간격 확보. */
.upload-guide-download {
	display: flex;
	gap: 12px;
	padding: 0 0 14px;
}
.upload-guide-download .btn-download {
	flex: 1;
	justify-content: center;
}

/* ===== Upload shape SVG thumb ===== */
.upload-shape-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
}
.upload-shape-thumb svg {
	width: 70%;
	height: 70%;
}

/* ===== Gold foil dosu ===== */
.gold-dosu-wrap {
	display: inline-block;
	position: relative;
}
.gold-dosu-box {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--fb-color_border_default);
	border-radius: 4px;
	background: var(--fb-color_bg_white);
	cursor: pointer;
	font-size: 13px;
	color: var(--fb-color_text_primary);
}
.gold-dosu-box.is-open {
	border-color: var(--fb-color_text_primary);
}
.gold-dosu-arrow {
	display: flex;
	align-items: center;
}
.gold-dosu-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 100%;
	background: var(--fb-color_bg_white);
	border: 1px solid var(--fb-color_border_default);
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	z-index: 10;
	margin-top: 4px;
}
.gold-dosu-list {
	list-style: none;
	margin: 0;
	padding: 4px 0;
}
.gold-dosu-list li {
	padding: 8px 16px;
	font-size: 13px;
	color: var(--fb-color_text_primary);
	cursor: pointer;
}
.gold-dosu-list li:hover {
	background: #f5f5f5;
}
.gold-dosu-list li.is-selected {
	font-weight: 600;
	color: var(--fb-color_brand_accent);
}
.gold-notice-row {
	border-top: 1px solid #eee;
	margin-top: 4px;
	padding-top: 14px !important;
}
.gold-dosu-label {
	font-size: 13px;
	font-weight: 600;
	color: #555;
	padding: 10px 0 2px;
	border-top: 1px solid #eee;
	margin-top: 4px;
}
.gold-dosu-group:first-child .gold-dosu-label {
	border-top: none;
	margin-top: 0;
}
.gold-dosu-group + .gold-dosu-group {
	border-top: 1px solid #eee;
	margin-top: 4px;
	padding-top: 4px;
}
.gold-dosu-group .opt-detail-row:first-child {
	border-bottom: none;
	padding-bottom: 0;
}

/* ===== Color chip selectable ===== */
.gold-dosu-group .color-chip {
	position: relative;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.15s;
}
.gold-dosu-group .color-chip.is-selected {
	box-shadow: 0 0 0 2px var(--fb-color_bg_white), 0 0 0 3.5px rgba(0,0,0,0.25);
}
/* 색상 선택: 중앙 흰색 체크 */
.color-chip-label {
	display: none;
}
.color-chip.is-selected::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 14px;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 7L5.5 10.5L11.5 3.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
	filter: drop-shadow(0 0 2px rgba(0,0,0,0.3));
}

/* ===== Size alert layer ===== */
#sizeAlertLayer {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.4);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.spec-cutting-text {
	color: var(--fb-color_text_primary);
	font-weight: 500;
}

/* ===== Drag & Drop upload ===== */
.upload-detail-thumb.drag-over {
	border-color: var(--fb-color_text_primary) !important;
	background: var(--fb-color_bg_section) !important;
}
.upload-detail-thumb.drag-over .upload-thumb-text {
	color: var(--fb-color_text_primary);
}

/* ===== Design selected: background fafafa ===== */
.content-left {
	background: var(--fb-color_bg_subtle);
}
.design-grid-wrap,
.design-before,
.upload-before,
.order-tab {
	background: var(--fb-color_bg_white);
}
.content-left.design-selected .order-tab {
	background: var(--fb-color_bg_subtle);
}

/* ===== Layout fix: content-main wraps left + options ===== */
@media (min-width: 1025px) {
	.content-area {
		flex-wrap: nowrap !important;
	}
	.content-main {
		flex: 1;
		min-width: 0;
	}
	.content-right {
		display: block !important;
		width: 320px !important;
		flex-shrink: 0 !important;
	}
	.content-main .option-area {
		max-width: none;
		width: auto;
		/* 봉투/상품 카드 ↔ 첫 옵션 섹션 사이 여백 — 다른 섹션 간격과 동일하게 gap_md 통일 */
		padding-top: var(--fb-gap_md, 12px);
	}
}

/* ===== Mobile elements hidden on PC ===== */
.mobile-bottom-bar,
.mobile-order-panel,
.mobile-overlay {
	display: none !important;
}
@media (max-width: 768px) {
	.mobile-bottom-bar {
		display: flex !important;
	}
	.mobile-order-panel {
		display: block !important;
	}
}

/* ===== Mobile (≤1024px): 본문 영역이 모바일 헤더 폭(375px 등)을 넘지 않도록 강제 =====
   /m/_head.php 의 #main_wrapper 안에서 사용될 때 좌우 오버플로우 방지 */
@media (max-width: 1024px) {
	.page-wrap,
	.content-area,
	.content-main,
	.content-left,
	.content-right,
	.option-area {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		flex: none !important;
		box-sizing: border-box;
	}
	.content-area {
		flex-direction: column !important;
		flex-wrap: wrap !important;
	}
	.upload-product-img {
		max-width: 100% !important;
		height: auto !important;
	}
	/* upload-detail 그리드 레이아웃 폭 제한 */
	.upload-after,
	.upload-detail,
	.upload-form-grid,
	.upload-form-group,
	.upload-form-row {
		max-width: 100% !important;
		box-sizing: border-box;
	}
	/* 가로 스크롤 차단 — html/body 에 overflow 주면 position:sticky 가 깨지므로
	   page-wrap 단위로 제한. clip 은 sticky 와 호환됨 (hidden 은 깨짐) */
	.page-wrap {
		overflow-x: clip;
	}
	/* 모바일: 상품 이미지 — 정사각형 박스 (height = width) + contain 으로 전체 노출 */
	.upload-detail-thumb-left {
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		aspect-ratio: 1 / 1 !important;
		flex: none !important;
		align-self: flex-start !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		overflow: hidden !important;
	}
	.upload-detail-thumb-left .upload-product-img {
		width: auto !important;
		height: auto !important;
		max-width: 100% !important;
		max-height: 100% !important;
		object-fit: contain !important;
	}
}

/* ===== Folding Type Radio ===== */
.folding-type-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.folding-type-card {
	cursor: pointer;
	flex: 1;
	min-width: 80px;
}
.folding-type-card input[type="radio"] {
	display: none;
}
/* 레거시 .folding-type-card 라디오 카드 — 새 .folding-type-wrap > .folding-type-box 셀렉트 패턴으로 교체됨 */
/* 새 .folding-type-box 스타일은 style.css 의 .thomson-talji-box, .folding-type-box 결합 셀렉터에서 정의 */

/* ===== Site Footer ===== */
.site-footer {
	width: 100%;
	background: var(--fb-color_border);
	font-size: 12px;
	color: var(--fb-color_text_muted);
}
.site-footer-menu {
	display: flex;
	align-items: center;
	height: 30px;
	padding: 0 20px;
}
.site-footer-company {
	font-size: 12px;
	font-weight: 600;
	color: #888;
	margin-right: 16px;
	cursor: pointer;
	user-select: none;
}
.site-footer-company::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid #aaa;
	border-bottom: 1.5px solid #aaa;
	margin-left: 6px;
	transform: rotate(225deg);
	transition: transform 0.3s;
	vertical-align: middle;
	margin-bottom: -1px;
}
.site-footer-company.open::after {
	transform: rotate(45deg);
	margin-bottom: 1px;
}
.site-footer-links {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 6px;
}
.site-footer-links li {
	display: flex;
	align-items: center;
	gap: 6px;
}
.site-footer-links li:not(:last-child)::after {
	content: "";
	display: inline-block;
	width: 1px;
	height: 10px;
	background: var(--fb-color_text_disabled);
}
.site-footer-links li a {
	font-size: 12px;
	color: var(--fb-color_text_muted);
	text-decoration: none;
}
.site-footer-links li a:hover {
	color: var(--fb-color_text_secondary);
	text-decoration: underline;
}
.site-footer-links li a.privacy {
	font-weight: 300;
	color: var(--fb-color_text_muted);
}
.site-footer-info {
	max-height: 0;
	overflow: hidden;
	padding: 0 20px;
	border-top: none;
	line-height: 1.8;
	font-size: 11px;
	color: var(--fb-color_text_muted);
	transition: max-height 0.3s ease, padding 0.3s ease;
}
.site-footer-info.open {
	display: block;
	max-height: 200px;
	padding: 12px 20px;
	border-top: 1px solid var(--fb-color_border_default);
}
.site-footer-info span.label {
	color: #aaa;
	margin-right: 4px;
}
.site-footer-info span.value {
	color: var(--fb-color_text_muted);
	margin-right: 14px;
}

/* ===== Scroll to Top ===== */
.btn-scroll-top {
	position: fixed;
	bottom: 40px;
	right: 24px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--fb-color_bg_white);
	border: 1px solid var(--fb-color_border_default);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
	z-index: 800;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.btn-scroll-top.show {
	opacity: 1;
	visibility: visible;
}
.btn-scroll-top:hover {
	background: #f5f5f5;
}
.btn-scroll-top::after {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	border-top: 2px solid #888;
	border-right: 2px solid #888;
	transform: rotate(-45deg);
	margin-top: 4px;
}

/* ══════════════════════ 무상 자산 UI (후가공) ══════════════════════ */
/* 팔레트 정돈: 차분한 중립 톤. 노란 배경 제거 — 상단 후가공 카드와 자연스럽게 이어짐. */
.fb-free-asset-section {
	display: none;
	margin: 0 -16px;              /* 좌우만 카드 padding 만큼 빼서 엣지까지 확장 */
	padding: 12px 16px;
	background: transparent;
	border: none;
	border-top: 1px solid #eeeeee;
	border-radius: 0 0 6px 6px;
}
@media (max-width: 768px) {
	.fb-free-asset-section { margin: 0 -14px; padding: 12px 14px; }
}
@media (max-width: 480px) {
	.fb-free-asset-section { margin: 0 -12px; padding: 10px 12px; }
}
.fb-free-asset-section.is-active {
	display: block;
}
.fb-free-asset-title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 4px;              /* 타이트하게: 제목+본문 결속감 ↑ */
	font-size: 14px;
	font-weight: 700;
	color: #555;
	letter-spacing: -0.01em;
}
.fb-free-asset-title::before {
	content: '🎁';
	font-size: 15px;
}
.fb-free-asset-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 8px;
}
/* 단일 자산: 한 줄 완결 레이아웃 — 썸네일·이름·뱃지·CTA 모두 같은 행 */
.fb-free-asset-list.is-single {
	margin: 0;
}
.fb-free-asset-list.is-single .fb-free-asset-card {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 2px 0;
	background: transparent;
	border: none;
	box-shadow: none;
	text-align: left;
	cursor: default;
	flex-wrap: wrap;
}
/* CTA 링크를 자산 라인 끝으로 밀착 */
.fb-free-asset-list.is-single .fb-free-asset-change-link {
	margin-left: auto;
}
.fb-free-asset-list.is-single .fb-free-asset-card:hover {
	transform: none;
	border-color: transparent;
}
.fb-free-asset-list.is-single .fb-free-asset-card.is-selected {
	box-shadow: none;
	border-color: transparent;
}
.fb-free-asset-list.is-single .fb-free-asset-img {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	margin-bottom: 0;
	border-radius: 4px;
	background-color: transparent;  /* 빈 박스 회색 배경 제거 */
}
/* preview_url 있을 때만 회색 배경 유지 */
.fb-free-asset-list.is-single .fb-free-asset-img:not(.is-empty) {
	background-color: var(--fb-color_bg_subtle);
}
/* placeholder 아이콘: 박스 전체 면적 사용 */
.fb-free-asset-list.is-single .fb-free-asset-img.is-empty::after {
	width: 28px;
	height: 28px;
}
.fb-free-asset-list.is-single .fb-free-asset-name {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-color_text_primary);
	flex-wrap: wrap;
}
/* 단일 자산의 이펙트 뱃지 — 괄호로 감싸 "부속 정보" 임을 시각적으로 표현 */
.fb-free-asset-list.is-single .fb-free-asset-effect {
	margin-top: 0;
	margin-left: 4px;
	padding: 0;
	font-size: 11.5px;
	font-weight: 400;
	color: #8a7945;               /* 중립 앰버 */
	background: transparent;
	border: none;
	border-radius: 0;
	white-space: normal;
	word-break: keep-all;
}
.fb-free-asset-card {
	flex: 0 0 auto;
	width: 96px;
	background: var(--fb-color_bg_white);
	border: 1px solid #e5e5e5;    /* 중립 회색 */
	border-radius: 6px;
	padding: 8px;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.fb-free-asset-card:hover {
	border-color: #bbb;
	transform: translateY(-1px);
}
.fb-free-asset-card.is-selected {
	border-color: #1a73e8;        /* 브랜드 블루 (선택 상태) */
	box-shadow: 0 0 0 1px #1a73e8 inset;
}
.fb-free-asset-img {
	width: 100%;
	height: 64px;
	background: var(--fb-color_bg_subtle) center/contain no-repeat;  /* 중립 회색 */
	border-radius: 4px;
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
}
/* preview_url 이 없을 때 placeholder 아이콘 — asset_type 별 동적 */
.fb-free-asset-img.is-empty::after {
	content: '';
	display: block;
	width: 32px;
	height: 32px;
	background: no-repeat center/contain;
}
/* 기본 (mold_default / 미지정) */
.fb-free-asset-img.is-empty::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23b0b0b0' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
/* 톰슨 (목형판 + 점선 칼날) */
.fb-free-asset-img.is-empty.is-type-thomson::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23b0b0b0' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='10' rx='1.5'/%3E%3Cpath stroke-dasharray='1.8 1.8' d='M6 12h12'/%3E%3Cpath d='M12 4v2M12 18v2'/%3E%3C/svg%3E");
}
/* 레이저컷팅 (레이저 광선) */
.fb-free-asset-img.is-empty.is-type-lasercut::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23b0b0b0' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h4v4H3zM6 8v8l6 4'/%3E%3Ccircle cx='12' cy='20' r='0.8' fill='%23b0b0b0'/%3E%3Cpath stroke-dasharray='1.5 1.5' d='M12 20l9-16'/%3E%3C/svg%3E");
}
/* 레터프레스 (활자 블록) */
.fb-free-asset-img.is-empty.is-type-letterpress::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23b0b0b0' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='5' width='14' height='11' rx='1'/%3E%3Cpath d='M9 16v3h6v-3'/%3E%3Cpath d='M9 10h6M9 8h6M9 12h4'/%3E%3C/svg%3E");
}
/* 금박 (박 프레스) */
.fb-free-asset-img.is-empty.is-type-gold::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23c9a048' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l2.5 5 5.5.8-4 3.9 1 5.5L12 14.8 7 17.2l1-5.5-4-3.9 5.5-.8z'/%3E%3C/svg%3E");
}
/* 3D 박 */
.fb-free-asset-img.is-empty.is-type-3d::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23c9a048' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5v8l-9 5-9-5V8z'/%3E%3Cpath d='M12 12l9-4M12 12l-9-4M12 12v9'/%3E%3C/svg%3E");
}
/* 엠보싱 */
.fb-free-asset-img.is-empty.is-type-emboss::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23b0b0b0' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='8' rx='1'/%3E%3Cpath d='M8 8v-3h8v3'/%3E%3Cpath d='M8 16v3h8v-3'/%3E%3Cpath d='M10 12h4' stroke-width='2'/%3E%3C/svg%3E");
}
.fb-free-asset-name {
	font-size: 12px;
	color: var(--fb-color_text_primary);
	line-height: 1.3;
	word-break: keep-all;
}
.fb-free-asset-spec {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: var(--fb-color_text_muted);
}
.fb-free-asset-effect {
	display: inline-block;
	margin-top: 4px;
	padding: 1px 6px;
	font-size: 10px;
	font-weight: 600;
	color: var(--fb-color_text_secondary);                  /* 중립 — 과도한 강조 제거 */
	background: var(--fb-color_bg_white);
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	line-height: 1.4;
	white-space: normal;          /* 긴 텍스트 줄바꿈 허용 */
	word-break: keep-all;
	max-width: 100%;
}
.fb-free-asset-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	padding-top: 2px;             /* 여백 대폭 축소 */
	margin-top: 0;
}
/* 대체 옵션 텍스트 링크 — 버튼 대신 덜 경쟁적 톤 */
.fb-free-asset-change-link {
	font-size: 12px;
	color: #8a7945;
	cursor: pointer;
	text-decoration: none;
	padding: 2px 2px;
	transition: color .15s;
}
.fb-free-asset-change-link:hover {
	color: #1a73e8;
	text-decoration: underline;
}

/* 모바일 반응형 — 좁은 화면에서 뱃지·CTA가 자연스럽게 다음 줄로 */
@media (max-width: 480px) {
	.fb-free-asset-list.is-single .fb-free-asset-name {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		gap: 4px;
	}
	.fb-free-asset-list.is-single .fb-free-asset-effect {
		margin-left: 2px;
	}
	.fb-free-asset-list.is-single .fb-free-asset-change-link {
		margin-left: auto;
		margin-top: 4px;
		flex-basis: 100%;
		text-align: right;
	}
}
.fb-free-asset-note {
	flex: 1;
	font-size: 12px;
	color: var(--fb-color_text_secondary);                  /* 중립 */
	line-height: 1.4;
}
.fb-free-asset-change-btn {
	flex: 0 0 auto;
	background: var(--fb-color_bg_white);
	border: 1px solid #d0d0d0;    /* 중립 회색 테두리 */
	color: #1a73e8;               /* 브랜드 블루 텍스트 */
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.fb-free-asset-change-btn:hover {
	background: #f5f9ff;
	border-color: #1a73e8;
}
/* 자유형 모드일 때: 작은 복귀 링크 — 브랜드 블루 */
.fb-free-asset-reset {
	display: none;
	margin: 6px 0 10px;
	font-size: 12px;
	color: #1a73e8;
	text-align: right;
}
.fb-free-asset-reset.is-active {
	display: block;
}
.fb-free-asset-reset a {
	color: #1a73e8;
	text-decoration: underline;
	cursor: pointer;
}

/* 후가공 헤더에 붙는 무상 금형/목형 뱃지 — 크림톤 + 중립 테두리 */
.fb-free-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	color: #8a6d1f;
	background: #fef9e7;
	border: 1px solid #f0e3b8;
	border-radius: 10px;
	vertical-align: middle;
	white-space: nowrap;
}

