/* AE 휴대폰 목록 카드 · 조건 칸형(세로형) / 한 줄 목록형(가로형)
   항목 표시·숨김과 가로형 전환은 /ae/JS/ui/card-display.js 가 계약서관리 > 상품카드설정 값으로 제어한다. */
.product-card.compact-card.ac2{display:flex;flex-direction:column;gap:9px;padding:14px;border:1px solid #e4e8f0;border-radius:18px;overflow:visible;background:#fff;box-shadow:none;color:#1b2436;text-align:left}
.product-card.compact-card.ac2:hover{border-color:#c3cdf0;transform:none;box-shadow:0 8px 22px rgba(32,35,48,.06)}
.product-card.ac2 button{font:inherit;color:inherit;cursor:pointer}
.product-card.ac2 p{margin:0}
.product-card.ac2 .ac-media{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:150px;margin:0;padding:0;border:0;border-radius:14px;background:#f5f7fb}
.product-card.ac2 .catalog-phone{width:auto;height:136px;max-width:86%;max-height:136px;margin:0;padding:0;border-radius:0;background:transparent;object-fit:contain;mix-blend-mode:multiply}
.product-card.ac2 .ac-logo{position:absolute;left:10px;top:10px;display:flex;align-items:center;justify-content:center;padding:5px 6px;border:1px solid #e4e8f0;border-radius:9px;background:#fff}
.product-card.ac2 .catalog-carrier-logo{position:static;width:22px;height:18px;margin:0;padding:0;border-radius:0;background:transparent;object-fit:contain;mix-blend-mode:normal}
.product-card.ac2 .catalog-colors{position:absolute;left:0;right:0;top:auto;bottom:10px;transform:none;display:flex;flex-direction:row;justify-content:center;gap:6px}
.product-card.ac2 .catalog-color{width:12px;height:12px;border:1px solid #d9dee8;border-radius:50%}

.product-card.ac2 .ac-head{display:flex;flex-direction:column;gap:2px;min-width:0;padding:0}
.product-card.ac2 .catalog-model-code{margin:0;font-size:11px;line-height:1.4;color:#6b7588}
.product-card.ac2 h3{margin:0;font-size:19px;font-weight:800;letter-spacing:-.02em;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-card.ac2 .catalog-capacities{display:flex;flex-wrap:wrap;gap:2px;margin-top:4px;padding:3px;border:0;border-radius:10px;background:#eef1f6;box-shadow:inset 0 0 0 1px rgba(27,36,54,.05)}
.product-card.ac2 .catalog-capacity{flex:1 1 auto;min-width:0;min-height:26px;padding:4px 6px;border:0;border-radius:8px;background:transparent;color:#44506a;font-size:12px;font-weight:500;line-height:1.4;text-align:center;cursor:pointer;transition:background-color .15s ease,color .15s ease,box-shadow .15s ease;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
/* [클로드 개발 2팀 2026-10-14] 용량 선택: hover 는 마우스 기기에서만(터치 화면에서 누른 뒤 흰 배경이 남아 선택 칸이 둘로 겹쳐 보이던 문제), 선택 칸만 흰 바탕 */
@media (hover:hover) and (pointer:fine){.product-card.ac2 .catalog-capacity:not(.is-representative):hover{background:rgba(255,255,255,.6);color:#18266a}}
.product-card.ac2 .catalog-capacity:not(.is-representative):active{background:rgba(255,255,255,.75);color:#18266a}
.product-card.ac2 .catalog-capacity:focus-visible{outline:1px solid var(--color-brand,#4356dd);outline-offset:-1px}
.product-card.ac2 .catalog-capacity.is-representative{background:#fff;color:#1b2436;font-weight:800;box-shadow:0 1px 3px rgba(27,36,54,.16),0 0 0 1px rgba(27,36,54,.06)}

/* [클로드 개발 2팀 2026-10-22 TASK-20261022-024] 가입 조건 두 줄(.ac-cells)과 가격(.ac-price)을 한 상자(.ac-deal)로 묶는다(세로형).
   둘 사이 선은 상자 배경(gap 1px)이라 한쪽이 숨으면 선도 사라진다. 가로형은 상자를 풀어(display:contents) 각자 자리에 둔다. */
.product-card.ac2 .ac-deal{display:flex;flex-direction:column;gap:1px;border:1px solid #d6dffb;border-radius:12px;overflow:hidden;background:#d6dffb}
.product-card.ac2 .ac-cells{display:flex;flex-direction:column;gap:3px;min-width:0;padding:11px 13px;background:#f8f9fd}
.product-card.ac2 .ac-cond{display:flex;flex-wrap:wrap;column-gap:10px;margin:0;overflow:hidden;font-size:14px;line-height:1.45;color:#1b2436}
.product-card.ac2 .ac-cond-item{position:relative;font-weight:700}
.product-card.ac2 strong.ac-cond-item{font-weight:800}
/* 항목 사이 점은 각 항목 왼쪽 간격에 그린다. 줄의 첫 항목 점은 줄 밖이라 잘려 보이지 않으므로 앞 항목을 꺼도 점이 남지 않는다. */
.product-card.ac2 .ac-cond-item::before{content:'·';position:absolute;top:0;right:100%;width:10px;color:#b3bac8;font-weight:400;text-align:center}
.product-card.ac2 .ac-cell-plan{display:flex;flex-wrap:wrap;column-gap:5px;margin:0;font-size:13px;line-height:1.45;color:#1b2436}
.product-card.ac2 .ac-plan-name{font-weight:600}
.product-card.ac2 .ac-fee{color:#6b7588}
.product-card.ac2[data-has-sel-fee] .ac-fee{color:#8a93a6;text-decoration:line-through}
.product-card.ac2 .ac-fee-sel{font-weight:700;color:#18266a}

.product-card.ac2 .ac-price{display:flex;flex-direction:column;align-items:stretch;gap:4px;width:100%;margin:0;padding:11px 13px;border:1px solid #d6dffb;border-radius:14px;background:#eef2ff;color:#18266a;text-align:left;letter-spacing:0}
.product-card.ac2 .ac-price:hover{border-color:#b9c6f5}
.product-card.ac2 .ac-deal>.ac-price{border:0;border-radius:0}
.product-card.ac2 .ac-deal>.ac-price:hover{background:#e8edff}
.product-card.ac2 .ac-price-top{display:flex;align-items:center;gap:8px;min-height:20px}
.product-card.ac2 .ac-price-label{font-size:12px;font-weight:700;color:#3c4a75}
.product-card.ac2 .ac-rate{margin-left:auto;padding:1px 8px;border-radius:999px;background:#d92d2d;color:#fff;font-size:11.5px;font-weight:800;line-height:1.5;white-space:nowrap}
.product-card.ac2 .ac-price-value{font-size:27px;font-weight:800;letter-spacing:-.03em;line-height:1.15;color:#18266a}
.product-card.ac2 .ac-price-value small{margin-left:2px;font-size:14px;font-weight:700;letter-spacing:0}
.product-card.ac2 .ac-calc{display:flex;flex-direction:column;gap:1px;margin-top:2px;padding-top:6px;border-top:1px solid #d6dffb;font-size:12px;font-weight:400;line-height:1.5;color:#55607a}
.product-card.ac2 .ac-calc-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 8px}

.product-card.ac2 .ac-extra{display:flex;flex-wrap:wrap;gap:6px;font-size:11.5px;line-height:1.4}
.product-card.ac2 .ac-payback,.product-card.ac2 .ac-basis{padding:4px 9px;border-radius:7px;font-weight:700}
.product-card.ac2 .ac-payback{background:#fff3d1;color:#7a4b00}
.product-card.ac2 .ac-basis{background:#f1f3f7;color:#44506a}
.product-card.ac2 .ac-action{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:auto;padding:0 10px;border:0;border-radius:11px;background:#18266a;color:#fff;font-size:14px;font-weight:800}
.product-card.ac2 .ac-action:hover{background:#101b52}
.product-card.ac2 button:focus-visible{outline:1px solid var(--color-brand,#4356dd);outline-offset:-1px}

@media (max-width:760px){
 .product-card.compact-card.ac2{gap:8px;padding:12px;border-radius:16px}
 .product-card.ac2 .ac-media{height:112px;border-radius:12px}
 .product-card.ac2 .catalog-phone{height:100px;max-height:100px}
 .product-card.ac2 .ac-logo{left:6px;top:6px;padding:3px 4px;border-radius:7px}
 .product-card.ac2 .catalog-carrier-logo{width:18px;height:15px}
 .product-card.ac2 .catalog-colors{bottom:6px;gap:4px}
 .product-card.ac2 .catalog-color{width:9px;height:9px}
 .product-card.ac2 h3{font-size:15.5px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
 .product-card.ac2 .catalog-capacities{padding:2px;border-radius:8px}
 .product-card.ac2 .catalog-capacity{min-height:26px;padding:3px 4px;border-radius:6px;font-size:10.5px}
 .product-card.ac2 .ac-deal{border-radius:10px}
 .product-card.ac2 .ac-cells{gap:0;padding:6px 8px}
 .product-card.ac2 .ac-cond{column-gap:7px;font-size:11.5px;line-height:1.5;letter-spacing:-.02em}
 .product-card.ac2 .ac-cond-item::before{width:7px}
 .product-card.ac2 .ac-cell-plan{column-gap:4px;font-size:11.5px;line-height:1.5}
 .product-card.ac2 .ac-price{gap:3px;padding:9px 10px;border-radius:10px}
 .product-card.ac2 .ac-price-top{flex-direction:row-reverse;justify-content:flex-end;gap:6px;min-height:0}
 .product-card.ac2 .ac-price-label{font-size:10.5px}
 .product-card.ac2 .ac-rate{margin-left:0;padding:1px 6px;font-size:10.5px}
 .product-card.ac2 .ac-price-value{font-size:19px}
 .product-card.ac2 .ac-price-value small{font-size:12px}
 .product-card.ac2 .ac-calc{gap:1px;padding-top:5px;font-size:10.5px;letter-spacing:-.03em}
 .product-card.ac2 .ac-calc-row{gap:0 4px}
 .product-card.ac2 .ac-calc-row>span:last-child{margin-left:auto}
 .product-card.ac2 .ac-extra{gap:2px 8px;font-size:11.5px}
 .product-card.ac2 .ac-payback,.product-card.ac2 .ac-basis{padding:0;background:none}
 .product-card.ac2 .ac-basis{color:#5b6578}
 .product-card.ac2 .ac-action{min-height:44px;border-radius:10px;font-size:13px}
}

/* ── 가로형(한 줄 목록형): card-display.js 가 <html> 에 pcl-ae-h 를 붙인다. 마크업은 세로형과 같다. ── */
/* PC: 사진 | 이름·용량·혜택 | 조건 칸 | 가격 | 버튼 */
@media (min-width:760.01px){
 html.pcl-ae-h .product-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 html.pcl-ae-h .product-card.compact-card.ac2{display:grid;grid-template-columns:124px minmax(0,232px) minmax(0,1fr) minmax(0,376px) 128px;grid-template-rows:minmax(0,1fr) auto auto minmax(0,1fr);grid-template-areas:"media . cells price action" "media head cells price action" "media extra cells price action" "media . cells price action";column-gap:18px;row-gap:0;align-items:center;padding:14px 18px 14px 14px;border-radius:18px}
 html.pcl-ae-h .product-card.ac2 .ac-media{grid-area:media;align-self:stretch;width:124px;height:auto;min-height:124px}
 html.pcl-ae-h .product-card.ac2 .catalog-phone{height:110px;max-height:110px;max-width:90%}
 html.pcl-ae-h .product-card.ac2 .ac-logo{left:7px;top:7px;padding:4px 5px;border-radius:8px}
 html.pcl-ae-h .product-card.ac2 .catalog-carrier-logo{width:19px;height:16px}
 html.pcl-ae-h .product-card.ac2 .catalog-colors{bottom:7px;gap:5px}
 html.pcl-ae-h .product-card.ac2 .catalog-color{width:10px;height:10px}
 html.pcl-ae-h .product-card.ac2 .ac-head{grid-area:head}
 html.pcl-ae-h .product-card.ac2 .ac-extra{grid-area:extra;margin-top:8px;font-size:11.5px}
 html.pcl-ae-h .product-card.ac2 .ac-extra>span{padding:4px 9px}
 html.pcl-ae-h .product-card.ac2 .ac-deal{display:contents}
 html.pcl-ae-h .product-card.ac2 .ac-cells{grid-area:cells;border-radius:12px}
 html.pcl-ae-h .product-card.ac2 .ac-deal>.ac-price{border:1px solid #d6dffb;border-radius:14px}
 html.pcl-ae-h .product-card.ac2 .ac-price{grid-area:price;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"top calc" "value calc";column-gap:14px;row-gap:3px;align-items:center;padding:12px 14px}
 html.pcl-ae-h .product-card.ac2 .ac-price-top{grid-area:top;flex-direction:row-reverse;justify-content:flex-end;gap:6px}
 html.pcl-ae-h .product-card.ac2 .ac-rate{margin-left:0}
 html.pcl-ae-h .product-card.ac2 .ac-price-value{grid-area:value;font-size:26px;white-space:nowrap}
 html.pcl-ae-h .product-card.ac2 .ac-calc{grid-area:calc;gap:2px;padding:0 0 0 14px;border-top:0;border-left:1px solid #d6dffb;font-size:12px}
 html.pcl-ae-h .product-card.ac2 .ac-calc-row{flex-wrap:nowrap;white-space:nowrap}
 html.pcl-ae-h .product-card.ac2 .ac-action{grid-area:action;align-self:center;margin-top:0;font-size:14px}
}
/* 좁은 PC: 조건 칸을 이름 아래로, 가격 내역을 금액 아래로 내린다 */
@media (min-width:760.01px) and (max-width:1240px){
 html.pcl-ae-h .product-card.compact-card.ac2{grid-template-columns:110px minmax(0,1fr) minmax(0,292px) 112px;grid-template-rows:minmax(0,1fr) auto auto auto minmax(0,1fr);grid-template-areas:"media . price action" "media head price action" "media cells price action" "media extra price action" "media . price action";column-gap:14px}
 html.pcl-ae-h .product-card.ac2 .ac-media{width:110px}
 html.pcl-ae-h .product-card.ac2 .ac-cells{margin-top:8px}
 html.pcl-ae-h .product-card.ac2 .ac-price{grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "value" "calc"}
 html.pcl-ae-h .product-card.ac2 .ac-price-value{font-size:23px}
 html.pcl-ae-h .product-card.ac2 .ac-calc{margin-top:4px;padding:7px 0 0;border-left:0;border-top:1px solid #d6dffb}
}
/* 모바일: 사진 | 이름·용량·조건, 아래에 가격 줄(버튼 포함) */
@media (max-width:760px){
 html.pcl-ae-h .product-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 html.pcl-ae-h .product-card.compact-card.ac2{display:grid;grid-template-columns:88px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto minmax(0,1fr) auto auto;grid-template-areas:"media ." "media head" "media cells" "media ." "price price" "extra extra";column-gap:12px;row-gap:0;align-items:start;padding:12px}
 html.pcl-ae-h .product-card.ac2 .ac-media{grid-area:media;align-self:stretch;width:88px;height:auto;min-height:96px}
 html.pcl-ae-h .product-card.ac2 .catalog-phone{height:80px;max-height:80px;max-width:92%}
 html.pcl-ae-h .product-card.ac2 .ac-head{grid-area:head}
 html.pcl-ae-h .product-card.ac2 h3{font-size:16.5px}
 html.pcl-ae-h .product-card.ac2 .ac-deal{display:contents}
 html.pcl-ae-h .product-card.ac2 .ac-cells{grid-area:cells;margin-top:5px;padding:0;background:none}
 html.pcl-ae-h .product-card.ac2 .ac-cond{font-size:12.5px}
 html.pcl-ae-h .product-card.ac2 .ac-cell-plan{font-size:12px}
 html.pcl-ae-h .product-card.ac2 .ac-deal>.ac-price{border:1px solid #d6dffb;border-radius:12px}
 html.pcl-ae-h .product-card.ac2 .ac-price{grid-area:price;justify-content:center;gap:1px;min-height:44px;margin-top:10px;padding:9px 128px 9px 12px;border-radius:12px}
 html.pcl-ae-h .product-card.ac2 .ac-price-value{font-size:21px;line-height:1.2}
 html.pcl-ae-h .product-card.ac2 .ac-calc{flex-direction:row;flex-wrap:wrap;gap:0 8px;padding-top:0;border-top:0;font-size:11px;letter-spacing:0}
 html.pcl-ae-h .product-card.ac2 .ac-calc-row{flex-wrap:nowrap;gap:0 4px;white-space:nowrap}
 html.pcl-ae-h .product-card.ac2 .ac-calc-row>span:last-child{margin-left:0}
 /* 버튼은 가격 줄 안 오른쪽에 겹쳐 놓는다. 가격 줄이 없으면 한 줄을 다 쓴다. */
 html.pcl-ae-h .product-card.ac2 .ac-action{grid-row:5;grid-column:1/-1;z-index:1;justify-self:var(--ac-action-justify,end);align-self:center;min-height:44px;margin:10px var(--ac-action-mr,9px) 0 0;padding:0 14px;white-space:nowrap}
 html.pcl-ae-h .product-card.ac2[data-no-quote]{--ac-action-justify:stretch;--ac-action-mr:0px}
 html.pcl-ae-h .product-card.ac2 .ac-extra{grid-area:extra;margin-top:8px}
}

/* ── 카드 오른쪽 위 자리(.ac-corner: 배지 + 할인율) · 가로형 전용 ───────────
   세로형은 배지를 사진 위에, 할인율을 가격 칸 안에 보여 준다. 가로형은 사진이 작아 배지를 카드 오른쪽 위에 보여 주고,
   할인율은 배지가 있으면 그 아래, 없으면 배지 자리에 보여 준다.
   배지와 할인율은 두 곳에 모두 그려 두고(views/shop.js) 카드 형태에 맞는 쪽만 보이게 한다. 형태가 바뀌어도 다시 그리지 않는다. */
.product-card.ac2>.ac-corner{display:none;min-width:0;pointer-events:none}
html.pcl-ae-h .product-card.ac2>.ac-corner{display:flex;flex-direction:column;align-items:flex-end}
html.pcl-ae-h .product-card.ac2>.ac-corner~.ac-media .pb-layer,html.pcl-ae-h .product-card.ac2>.ac-corner~.ac-price .ac-rate,html.pcl-ae-h .product-card.ac2>.ac-corner~.ac-deal .ac-rate{display:none}
.product-card.ac2>.ac-corner>.ac-badge-slot{max-width:100%;min-width:0}
html.pcl-ae-h .product-card.ac2>.ac-corner .ac-rate{margin:0}
/* 배지는 한 줄로 오른쪽 정렬한다. 자리가 모자라면 문구를 말줄임한다. 아래 여백은 배지 아래에 오는 할인율과의 간격이다. */
.product-card.ac2>.ac-corner>.ac-badge-slot .pb-layer{position:static;inset:auto;display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0;margin-bottom:4px;overflow:visible;border-radius:0}
.product-card.ac2>.ac-corner>.ac-badge-slot .pb-labels{position:static;flex:0 1 auto;flex-wrap:nowrap;justify-content:flex-end;gap:5px;min-width:0}
.product-card.ac2>.ac-corner>.ac-badge-slot .pb-layer .pb-label{flex:0 1 auto;min-width:0;padding:4px 8px;font-size:11.5px!important}
.product-card.ac2>.ac-corner>.ac-badge-slot.pb-host .pb-layer .pb-graphic{position:static!important;flex:0 0 auto;width:auto!important;height:30px!important;max-width:none!important;max-height:none!important;translate:none}
/* PC: 카드 오른쪽 위(가격 칸·버튼 위쪽 여백)에 띄운다 */
@media (min-width:760.01px){
 html.pcl-ae-h .product-card.compact-card.ac2{position:relative}
 html.pcl-ae-h .product-card.ac2>.ac-corner{position:absolute;top:7px;right:18px;max-width:520px}
}
@media (min-width:760.01px) and (max-width:1240px){
 html.pcl-ae-h .product-card.ac2>.ac-corner{top:10px;max-width:400px}
}
/* 배지와 할인율이 두 줄로 쌓이면 가운데 놓인 버튼과 닿으므로 버튼을 조금 내린다. 배지나 할인율을 끄면 card-display.js 가 변수를 0 으로 둔다. */
@media (min-width:760.01px){
 html.pcl-ae-h .product-card.ac2[data-has-rate]:has(>.ac-corner .pb-layer) .ac-action{margin-top:var(--ac-corner-nudge,22px)}
}
/* 모바일: 카드 맨 위 오른쪽에 한 줄을 둔다(배지·할인율이 없으면 높이 0). 이름·조건은 그 아래에서 사진과 가운데를 맞춘다. */
@media (max-width:760px){
 html.pcl-ae-h .product-card.compact-card.ac2{grid-template-rows:auto minmax(0,1fr) auto auto minmax(0,1fr) auto auto;grid-template-areas:"media corner" "media ." "media head" "media cells" "media ." "price price" "extra extra"}
 html.pcl-ae-h .product-card.ac2>.ac-corner{grid-area:corner;justify-self:end;max-width:100%}
 html.pcl-ae-h .product-card.ac2>.ac-corner .ac-rate{margin:0 0 5px}
 html.pcl-ae-h .product-card.ac2 .ac-action{grid-row:6}
}
