/* 제작 옵션: 실제 자료집 이미지 3안 비교 (미리보기 전용) */
.cx-bar{position:sticky;top:0;z-index:60;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:10px 20px;background:#15141a;color:#fff;font:500 13px Pretendard,"Pretendard FB Noto","Pretendard FB Malgun",sans-serif}
.cx-bar div{display:flex;flex-wrap:wrap;gap:6px}
.cx-bar button{min-height:38px;padding:8px 14px;border:1px solid #3a3844;border-radius:999px;background:transparent;color:#d9d7e2;font:600 13px Pretendard,"Pretendard FB Noto","Pretendard FB Malgun",sans-serif;cursor:pointer}
.cx-bar button[aria-pressed=true]{background:#d1ff39;border-color:#d1ff39;color:#15141a}

/* 공통: 그림 상자 */
.cx-media{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:16/10;overflow:hidden;border-radius:14px;background:#eeeef3}
.choice-item:nth-child(2) .cx-media{background:#e9edf6}
.cx-media img{display:block;margin:0;max-width:none}
.cx-books{position:relative;height:80%;aspect-ratio:1/1.414}
.cx-books img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:2px 4px 4px 2px;box-shadow:0 2px 4px rgba(20,20,30,.15),0 16px 28px -10px rgba(20,20,30,.4)}
.cx-books img:first-child{transform:translate(-30%,4%) rotate(-7deg)}
.cx-books img:last-child{transform:translate(14%,-2%) rotate(3deg)}
.cx-books::after{content:"";position:absolute;inset:0;transform:translate(14%,-2%) rotate(3deg);background:linear-gradient(90deg,rgba(0,0,0,.22),rgba(255,255,255,.12) 5%,transparent 9%);border-radius:2px 4px 4px 2px;pointer-events:none}
.cx-device{position:relative;display:block;width:76%;aspect-ratio:16/10.4;padding:2.6% 2.6% 4%;border-radius:12px;background:#26242c;box-shadow:0 18px 30px -14px rgba(20,20,30,.5)}
.cx-screen{display:flex;justify-content:center;gap:3px;height:100%;padding:4% 0;background:#5b5966;border-radius:3px}
.cx-screen img{height:100%;width:auto;aspect-ratio:1/1.414;object-fit:cover;box-shadow:0 2px 6px rgba(0,0,0,.3)}
.cx-file{position:absolute;right:9%;bottom:7%;width:17%;max-width:76px;filter:drop-shadow(0 10px 14px rgba(20,20,30,.28))}
.cx-file svg{display:block;width:100%;height:auto}
.cx-device{margin-right:8%}
.cx-sheet{position:absolute;top:8%;bottom:8%;left:50%;transform:translateX(-50%);display:block;aspect-ratio:1/1.414;box-shadow:0 2px 4px rgba(20,20,30,.12),0 14px 26px -12px rgba(20,20,30,.4)}
.cx-sheet img{width:100%;height:100%;object-fit:cover}
.cx-sheet img.is-mono{filter:grayscale(1)}
.choice-item .cx-notes,.choice-item .cx-pick{display:none}

/* A 사진형: 기존 탭 구성 그대로, 그림만 실제 자료집으로 */
.choice-review[data-cx=a] .choice-item p{font-size:14px}

/* B 한눈 비교형: 탭 없이 세 항목을 줄로, 그림은 작게 + 차이점 */
.choice-review[data-cx=b] .choice-tabs{display:none}
.choice-review[data-cx=b] [role=tabpanel]{display:block!important}
.choice-review[data-cx=b] .choice-group{display:grid;grid-template-columns:120px minmax(0,1fr);gap:20px;align-items:start;padding:22px 0;border-top:1px solid #e1dde8}
.choice-review[data-cx=b] [role=tabpanel]:last-of-type .choice-group{border-bottom:1px solid #e1dde8}
.choice-review[data-cx=b] .choice-group>h3{display:block!important;margin:6px 0 0;font:700 16px/1.4 Pretendard,"Pretendard FB Noto","Pretendard FB Malgun",sans-serif;text-align:left}
.choice-review[data-cx=b] .choice-pair{gap:14px}
.choice-review[data-cx=b] .choice-item{display:grid;grid-template-columns:96px minmax(0,1fr);gap:4px 14px;align-items:start;text-align:left;padding:12px;border:1px solid #e1dde8;border-radius:14px;background:#fff}
.choice-review[data-cx=b] .cx-media{grid-row:span 3;aspect-ratio:1/1;border-radius:10px}
.choice-review[data-cx=b] .cx-media .cx-books{height:70%}
.choice-review[data-cx=b] .cx-device{width:88%}
.choice-review[data-cx=b] .cx-file{width:30%}
.choice-review[data-cx=b] h4{margin:2px 0 0!important;font-size:16px!important}
.choice-review[data-cx=b] .choice-item p{display:none}
.choice-review[data-cx=b] .cx-notes{display:block;margin:6px 0 0;padding:0;list-style:none;font:400 13px/1.6 Pretendard,"Pretendard FB Noto","Pretendard FB Malgun",sans-serif;color:#60596c}
.choice-review[data-cx=b] .cx-notes li{position:relative;padding-left:12px;word-break:keep-all}
.choice-review[data-cx=b] .cx-notes li::before{content:"";position:absolute;left:0;top:.7em;width:5px;height:5px;border-radius:50%;background:#15141a}

/* C 사진 + 견적 연동: A 그림 + 카드가 선택 버튼, 오른쪽 견적과 같은 값 표시 */
.choice-review[data-cx=c] .choice-item{position:relative;display:flex;flex-direction:column;align-items:center;padding:14px 14px 18px;border:2px solid transparent;border-radius:20px;background:#fff;transition:border-color .2s,box-shadow .2s}
.choice-review[data-cx=c] .choice-item:hover{box-shadow:0 10px 26px -14px rgba(20,20,30,.35)}
.choice-review[data-cx=c] .choice-item.is-picked{border-color:#15141a}
.choice-review[data-cx=c] .cx-pick{display:inline-flex;align-items:center;gap:8px;margin-top:14px;min-height:44px;padding:10px 18px;border:1px solid #c9c4d3;border-radius:999px;background:#fff;color:#15141a;font:600 14px Pretendard,"Pretendard FB Noto","Pretendard FB Malgun",sans-serif;cursor:pointer}
.choice-review[data-cx=c] .cx-pick::after{content:"";position:absolute;inset:0;border-radius:20px}
.cx-check{width:18px;height:18px;border:1.5px solid #9c97a6;border-radius:50%;display:grid;place-items:center}
.choice-review[data-cx=c] .is-picked .cx-pick{background:#15141a;border-color:#15141a;color:#d1ff39}
.choice-review[data-cx=c] .is-picked .cx-check{border-color:#d1ff39;background:#d1ff39}
.choice-review[data-cx=c] .is-picked .cx-check::after{content:"";width:5px;height:9px;border:solid #15141a;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}
.cx-toast{margin:18px 0 0;min-height:22px;text-align:center;font:500 13px Pretendard,"Pretendard FB Noto","Pretendard FB Malgun",sans-serif;color:#2b6b00}

@container choices (max-width:650px){
 .choice-review[data-cx=b] .choice-group{grid-template-columns:1fr;gap:10px}
 .choice-review[data-cx=b] .choice-pair{grid-template-columns:1fr}
 .choice-review[data-cx=c] .choice-item{padding:10px 8px 14px}
 .choice-review[data-cx=c] .cx-pick{padding:8px 12px;font-size:13px}
 .cx-media{aspect-ratio:4/3.4}
}
@media(prefers-reduced-motion:reduce){.choice-review[data-cx=c] .choice-item{transition:none}}
