/* =============================================
   casting-cart.css - 섭외문의 담기 카트
   ch- 접두사만 사용. 목록 카드 체크박스 / 상세 버튼 /
   하단 고정 바 / 글쓰기 페이지 선택 모델 요약.
   ============================================= */

/* ── 목록 카드 체크박스 오버레이 ──────────────────────────────
   .img 는 position:relative (model_meta.css 참고). <a>와 형제로 둔다.
   배지/CTA(VIEW MORE)가 좌상단을 쓰므로 우상단에 배치한다.
   아이콘만으로는 "무슨 기능인지" 안 읽혀서 텍스트 라벨이 있는 알약(pill) 형태로 둔다 —
   담기 전/후 라벨과 색이 함께 바뀌어 상태가 바로 보이게 한다. */
.ch-cart-chk {
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 4;
	cursor: pointer;
}
.ch-cart-chk input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}
.ch-cart-chk-mark {
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
	height: 28px;
	padding: 0 11px;
	border-radius: 999px;
	background: rgba(255,255,255,.92);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 1px 3px rgba(0,0,0,.22);
	color: #333;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: -0.2px;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ch-cart-chk-mark::before {
	content: '+';
	font-size: 13px;
	line-height: 1;
}
.ch-cart-chk-mark::after { content: '섭외문의'; }
.ch-cart-chk:hover .ch-cart-chk-mark {
	box-shadow: inset 0 0 0 1px rgba(179,39,45,.45), 0 2px 6px rgba(0,0,0,.22);
}
.ch-cart-chk input:checked + .ch-cart-chk-mark {
	background: #B3272D;
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 1px 3px rgba(0,0,0,.3);
}
.ch-cart-chk input:checked + .ch-cart-chk-mark::before { content: '✓'; }
.ch-cart-chk input:checked + .ch-cart-chk-mark::after { content: '담음'; }
.ch-cart-chk input:focus-visible + .ch-cart-chk-mark { outline: 2px solid #B3272D; outline-offset: 2px; }

@media (max-width: 480px) {
	.ch-cart-chk-mark { height: 25px; padding: 0 9px; font-size: 10.5px; }
}

/* ── 상세 페이지 "이 모델 섭외문의하기" 버튼 ──
   .m-landing(전용 페이지 버튼) 바로 아래, 같은 폭. 톤은 반전(테두리만)해 구분한다. */
.ch-cart-add-single {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	width: 92%;
	max-width: 560px;
	margin: 0 auto 28px;
	padding: 13px 20px;
	border: 1px solid #B3272D;
	border-radius: 6px;
	background: #fff;
	color: #B3272D;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.ch-cart-add-single:hover,
.ch-cart-add-single:focus {
	background: #B3272D;
	color: #fff;
}
.ch-cart-add-single:focus-visible { outline: 2px solid #B3272D; outline-offset: 3px; }

/* ── 하단 고정 카트 바 ── */
.ch-cart-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 500;
	background: #1a1a1a;
	box-shadow: 0 -4px 16px rgba(0,0,0,.18);
}
.ch-cart-bar-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	align-items: center;
	gap: 14px;
}
.ch-cart-bar-thumbs { display: flex; flex-shrink: 0; }
.ch-cart-bar-thumb {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: #333;
	background-size: cover;
	background-position: center top;
	border: 2px solid #1a1a1a;
	margin-left: -12px;
}
.ch-cart-bar-thumb:first-child { margin-left: 0; }
.ch-cart-bar-count { color: #fff; font-size: 13px; flex: 1; }
.ch-cart-bar-count strong { color: #ff5a72; font-size: 15px; }
.ch-cart-bar-reset,
.ch-cart-bar-go {
	flex-shrink: 0;
	border: none;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
}
.ch-cart-bar-reset { background: transparent; color: #bbb; border: 1px solid #444; }
.ch-cart-bar-reset:hover { color: #fff; border-color: #777; }
.ch-cart-bar-go { background: #B3272D; color: #fff; }
.ch-cart-bar-go:hover { background: #8E1F24; }

/* 카트 바가 뜬 동안 본문 하단 여백을 확보해 콘텐츠가 가리지 않게 한다 */
body.ch-cart-bar-on { padding-bottom: 70px; }

/* ── 섭외문의 글쓰기 페이지: 선택 모델 요약 ── */
.ch-model-summary {
	background: #fff5f6;
	border: 1px solid #f3c6cb;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 16px;
}
.ch-model-summary-title { font-size: 12.5px; color: #8E1F24; font-weight: 600; margin-bottom: 10px; }
.ch-model-summary-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-model-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #e4b6bb;
	border-radius: 999px;
	padding: 4px 6px 4px 4px;
}
.ch-model-chip-thumb {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background-color: #eee;
	background-size: cover;
	background-position: center top;
	flex-shrink: 0;
}
.ch-model-chip-name { font-size: 12.5px; color: #333; font-weight: 600; }
.ch-model-chip-remove {
	border: none;
	background: transparent;
	color: #999;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}
.ch-model-chip-remove:hover { color: #B3272D; }

@media (max-width: 760px) {
	.ch-cart-bar-inner { padding: 10px 16px; gap: 10px; }
	.ch-cart-bar-count { font-size: 12px; }
	.ch-cart-bar-reset { display: none; }
	body.ch-cart-bar-on { padding-bottom: 64px; }
}

@media print {
	.ch-cart-chk,
	.ch-cart-add-single,
	.ch-cart-bar { display: none; }
}
