@charset "utf-8";
/* 2026-11-15 뉴트리미 리뉴얼 — 07 장바구니(빈)·07-1 장바구니(상품 담김)·장바구니 옵션 변경 창·정기구독 전환 안내창
   공통 토큰·부품은 renewal.css(:root --nm-*, .nm-page-title, .nm-btn-pill, .nm-chip, .nm-pager 등)를 쓰고, 이 파일에는 이 영역 규칙만 둔다. */

/* ============================================================================
   장바구니 — order/cart.html(일반) · order/cart_gcsbilling.html(정기구독) · gcsbilling/_gcsbilling_tab.html(두 장바구니 탭)
   기준 시안: 피그마 EVHLxoov2NmsSgVvFkJ3IT 07 장바구니(빈) 460:25581 · 07-1 장바구니(상품 담김) 460:25726 · 정기구독 전환 안내창 460:31645
   값 = 시안에 연결된 웹셀러_라이브러리 스타일(이름은 주석). 줄 간격은 피그마가 반올림한 px(16×1.4→22, 14×1.45→20, 13×1.45→19 …).
   주의 1: lib.css 의 .hide 는 !important 가 아니다 — 여기서 display 를 주는 칸이 .hide 를 달 수 있으면 「.칸.hide」 규칙을 같이 둔다.
          (.hide 를 !important 로 덮으면 showCenterLayer 가 숨은 창 크기를 재는 jQuery swap 이 막혀 창이 가운데로 안 온다)
   주의 2: 배송 묶음 머리줄 안쪽(ul.detail · li.th · li.silmul · li.btn_area · .btn_resp)은 상품을 고를 때마다
          common-function.js shippingInfoHtmlCreateResp() 가 같은 class 로 다시 만든다 → 이 class 들로만 꾸민다.
   ========================================================================== */
.nm-cart { font-family: var(--nm-font); -webkit-font-smoothing: antialiased; word-break: keep-all; }
.nm-cart button, .nm-cart input[type=button] { font-family: var(--nm-font); }

/* ── 화면 제목(NM2/PageTitle — renewal.css .nm-page-title) + 오른쪽 끝 장바구니 탭 ── */
.nm-cart-head { position: relative; }
/* 두 장바구니 탭 = 라이브러리 Tap_Text Large(위아래 13 · B1 16 Medium Font/04_info, 선택 SemiBold 브랜드 + 아래 2) — 시안에 없는 탭이라 제목 줄 오른쪽에 작게(R-03 통합 전까지 정기구독 장바구니로 가는 길) */
.nm-cart-tabs { position: absolute; right: 0; bottom: 48px; display: flex; align-items: flex-end; gap: 24px; margin: 0; padding: 0; }
.nm-cart-tabs a { flex: 0 0 auto; padding: 13px 0; font-size: 16px; font-weight: 500; line-height: 22px; letter-spacing: -0.4px; color: var(--nm-font-info); text-decoration: none; white-space: nowrap; }
.nm-cart-tabs a:hover { color: var(--nm-font-black); }
.nm-cart-tabs a.is-on { font-weight: 600; color: var(--nm-brand-primary); box-shadow: inset 0 -2px 0 var(--nm-brand-primary); }

/* ── 본문 두 열(시안 장바구니 본문 460:25776 — 담은 상품 840 + 간격 40 + 주문 금액 400, 아래 120) ── */
.nm-cart-body { display: flex; align-items: flex-start; gap: 40px; box-sizing: border-box; max-width: 1280px; margin: 0 auto; padding: 0 0 120px; }
.nm-cart-goods { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* 전체선택 = 라이브러리 Check 22(강조색만 브랜드 — renewal.css .nm-check) + B2 15 Regular Font/02_black */
.nm-cart .nm-cart-goods__top { display: flex; align-items: center; height: auto; }
.nm-cart .nm-cart-goods__top.hide { display: none; }
.nm-cart .nm-cart-check { padding: 0; }
.nm-cart .nm-cart-check .nm-check__txt { padding-left: 0; font-size: 15px; font-weight: 400; line-height: 22px; letter-spacing: -0.375px; color: var(--nm-font-black); } /* padding-left 0 = common.css label.checkbox_allselect .txt 의 4px 를 덮음 — 체크~글자는 .nm-check gap 8(시안 그대로) */
.nm-cart .nm-check input:disabled + .nm-check__box { opacity: .4; } /* 정기구독 장바구니: 고르지 않은 배송 묶음의 상품(gcsbilling.js 가 disabled) — 라이브러리 비활성 값 미확인 */

/* ── 배송 묶음(460:25784 — 선 Line/Regular · 라운드 12, 묶음끼리 16) ── */
.nm-cart-list { display: flex; flex-direction: column; gap: 16px; }
.nm-cart .cart_list .shipping_group_list { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--nm-line-regular); border-radius: 12px; list-style: none; }
.nm-cart .cart_list .shipping_group_list > li:first-child { border-top: 0; }

/* 배송 묶음 머리줄(460:25785 — BG/Light · 높이 52: 위아래 12 · 좌우 24, 「배송 :」 B3 14 Medium Font/02_black + 6 + B3 14 Regular Font/03_Sub, 버튼 = 라이브러리 Button_Default 28 간격 6) */
.nm-cart .cart_list .goods_delivery_info { box-sizing: border-box; min-height: 52px; padding: 12px 24px; background: var(--nm-bg-light); font-size: 14px; line-height: 20px; letter-spacing: -0.35px; }
.nm-cart .cart_list .goods_delivery_info .detail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; width: auto; min-height: 28px; margin: 0; padding: 0; list-style: none; }
.nm-cart .cart_list .goods_delivery_info .detail > li { display: block; width: auto; padding: 0; vertical-align: baseline; }
.nm-cart .cart_list .goods_delivery_info .detail > li.th { font-size: 14px; font-weight: 500; color: var(--nm-font-black); }
.nm-cart .cart_list .goods_delivery_info .detail > li.silmul,
.nm-cart .cart_list .goods_delivery_info .detail > li.ticket { font-weight: 400; color: var(--nm-font-sub); }
.nm-cart .cart_list .goods_delivery_info .silmul .hope { display: inline; }
.nm-cart .cart_list .goods_delivery_info .silmul .red { color: #D50000; } /* 배송불가 — System/Red */
.nm-cart .cart_list .goods_delivery_info .detail > li.btn_area { display: flex; gap: 6px; width: auto; margin-left: auto; text-align: left; } /* common.css 479 이하 width 118 도 덮음 */
.nm-cart .cart_list.nm-cart-list .goods_delivery_info .detail .btn_resp { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: auto; min-width: 0; height: 28px; margin: 0; padding: 0 9px; border: 1px solid var(--nm-line-regular); border-radius: 2px; background: var(--nm-bg-white); font-size: 12px; font-weight: 500; line-height: 26px; letter-spacing: -0.3px; color: var(--nm-font-black); white-space: nowrap; vertical-align: middle; } /* PC/Caption/C2_KR_Md_12 — 좌우 10 은 선 1 포함. 선택자 (0,6,0) = common.css 479 이하 「btn_area input[type=button] width 100%」(0,5,2)보다 위 */
.nm-cart .cart_list.nm-cart-list .goods_delivery_info .detail .btn_resp:hover { border-color: var(--nm-font-info); }
/* 정기구독 장바구니: 배송 묶음 고르는 라디오(라이브러리 Radio 22) — 묶음이 2개 이상일 때만 보임 */
.nm-cart .cart_list .goods_delivery_info .nm-cart-group__sel { margin-right: 10px; }
.nm-cart .nm-cart-group__radio .nm-radio__txt { font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: -0.35px; color: var(--nm-font-black); }

/* ── 상품 한 줄 NM2/CartItem(457:1268 — 위아래·좌우 24, 간격 20: Check 22 · 사진 100(선 Line/Light, 라운드 8) · 정보(간격 8) · 금액 200 · 삭제 20, 줄 사이 Line/Light) ── */
.nm-cart .cart_list .cart_goods { display: flex; align-items: flex-start; gap: 20px; padding: 24px; border-top: 0; background: none; }
.nm-cart .cart_list .cart_goods:not(:last-child) { border-bottom: 1px solid var(--nm-line-light); }
.nm-cart-item__check { flex: 0 0 22px; }
.nm-cart-item__pic { flex: 0 0 100px; display: block; box-sizing: border-box; width: 100px; height: 100px; overflow: hidden; border: 1px solid var(--nm-line-light); border-radius: 8px; background: var(--nm-bg-white); }
.nm-cart .cart_list .nm-cart-item__pic .goods_thumb { display: block; width: 100%; height: 100%; min-width: 0; max-width: none; border: 0; object-fit: cover; }
.nm-cart-item__info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.nm-cart-item__name { margin: 0; font-size: 16px; font-weight: 500; line-height: 22px; letter-spacing: -0.4px; color: var(--nm-font-black); overflow-wrap: anywhere; } /* PC/Body/B1_KR_Md_16 */
.nm-cart-item__qty { margin: 0; font-size: 14px; font-weight: 400; line-height: 20px; letter-spacing: -0.35px; color: var(--nm-font-info); } /* PC/Body/B3_KR_Rg_14 · Font/04_info */
.nm-cart-item__opts { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; letter-spacing: -0.35px; color: var(--nm-font-info); } /* 옵션·입력옵션·추가구성 — 시안 예시엔 없음, 수량 줄과 같은 글자 */
.nm-cart-item__opts > li { padding: 0; font-weight: 400; color: inherit; }
.nm-cart-item__info .xtle { display: inline; height: auto; margin: 0 4px 0 0; padding: 0; border: 0; font-size: inherit; line-height: inherit; color: var(--nm-font-sub); }
.nm-cart-item__info .add_txt { color: inherit; }
.nm-cart-item__info .inputed_img { height: 20px; vertical-align: middle; }
.nm-cart-item__info .event_area, .nm-cart-item__info .icon_area { font-size: 13px; line-height: 19px; }
/* 단독 이벤트 남은시간 — 옛 .cart_list .cgd_contents .event_area 모양(common.css·퀵디자인)을 그대로 옮김, 색만 브랜드 */
.nm-cart-item__info .event_area .title { display: inline-block; width: 18px; height: 18px; overflow: hidden; text-indent: -999px; vertical-align: middle; background: var(--nm-brand-primary) url(../images/common/icon_clock.png) 50% 50% no-repeat; background-size: cover; }
.nm-cart-item__info .event_area .time { display: inline-block; height: 22px; padding: 0 6px; border-radius: 2px; background: var(--nm-brand-primary); line-height: 22px; color: var(--nm-font-white); vertical-align: middle; }
.nm-cart-item__info .icon_area img { height: 18px; vertical-align: middle; }
.nm-cart .nm-cart-item__optbtn { padding: 0 9px; } /* 라이브러리 Button_Default 28(renewal.css .nm-btn-line) — 시안 폭 85 */

/* 금액 3줄(457:1291 — 폭 200, 간격 6: 이름 C1 13 Regular Font/04_info · 값 B3 14 Medium Font/02_black · 할인적용금액 T5 18 SemiBold 브랜드) */
.nm-cart-item__price { flex: 0 0 200px; display: flex; flex-direction: column; gap: 6px; width: 200px; margin: 0; padding: 0; list-style: none; }
.nm-cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; white-space: nowrap; }
.nm-cart-item__label { font-size: 13px; font-weight: 400; line-height: 19px; letter-spacing: -0.325px; color: var(--nm-font-info); }
.nm-cart-item__val { font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: -0.35px; color: var(--nm-font-black); }
.nm-cart-item__total { font-size: 18px; font-weight: 600; line-height: 25px; letter-spacing: -0.45px; color: var(--nm-brand-primary); }
.nm-cart-item__total .num { font: inherit; letter-spacing: inherit; color: inherit; }
/* 할인 [내역] — 시안 예시는 할인 0원이라 없음. 할인 있을 때만 나오는 기존 버튼을 글자 버튼으로 */
.nm-cart-item__more { margin: 0 0 0 2px; padding: 0; border: 0; background: none; font-size: 12px; font-weight: 500; line-height: 17px; letter-spacing: -0.3px; color: var(--nm-font-sub); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.nm-cart-item__del { flex: 0 0 20px; display: block; width: 20px; height: 20px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; } /* 라이브러리 Operation(Times) 20 — images/renewal/ico_close.svg 와 같은 그림 */
.nm-cart-item__del img { display: block; width: 20px; height: 20px; }

/* ── 선택 상품 버튼 줄(460:25900 — 전체선택 + 간격 12 + 라이브러리 Button_Default 36: 검정 Button_Select_Input/Black · 흰 바탕 Line_Gray, 좌우 12 · 라운드 3 · B4 13 Medium) ── */
.nm-cart .nm-cart-goods__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nm-cart .nm-cart-goods__bottom.hide { display: none; }
.nm-cart .selected_btn_groups label.checkbox_allselect { display: inline-flex; padding: 0; }
.nm-cart-sbtn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 36px; margin: 0; padding: 0 11px; border: 1px solid var(--nm-line-regular); border-radius: 3px; background: var(--nm-bg-white); font-size: 13px; font-weight: 500; line-height: 19px; letter-spacing: -0.325px; color: var(--nm-font-black); white-space: nowrap; cursor: pointer; } /* 좌우 12 = 선 1 + 11 */
.nm-cart-sbtn--black { border-color: #111; background: #111; color: var(--nm-font-white); }

/* ── 주문 금액(460:25931 — 폭 400, 간격 16: 제목 T4 20 SemiBold · 금액 상자 · 버튼) ── */
.nm-cart-sum { flex: 0 0 400px; display: flex; flex-direction: column; gap: 16px; width: 400px; }
.nm-cart-sum__tit { height: auto; margin: 0; padding: 0; font-size: 20px; font-weight: 600; line-height: 28px; letter-spacing: -0.5px; color: var(--nm-font-black); }
/* 금액 상자(460:25933 — 선 Line/Regular · 라운드 16 · 안쪽 28 · 줄 간격 14, NM2/PriceRow 높이 30: B1 16 Regular Font/03_Sub / Medium Font/02_black) */
.nm-cart-sum__box { display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; padding: 28px; border: 1px solid var(--nm-line-regular); border-radius: 16px; background: var(--nm-bg-white); }
.nm-cart-sum__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; box-sizing: border-box; height: 30px; font-size: 16px; line-height: 22px; letter-spacing: -0.4px; white-space: nowrap; }
.nm-cart-sum__th { font-weight: 400; color: var(--nm-font-sub); }
.nm-cart-sum__td { font-weight: 500; color: var(--nm-font-black); }
.nm-cart-sum__td span { font: inherit; letter-spacing: inherit; color: inherit; } /* 서버 출력 .num · 고를 때마다 JS(setCartPriceInfo)가 넣는 .tahoma 등 — 한 글자 크기로 */
/* PriceRow 합계 — 위 선 + 위 20, T5 18 SemiBold / H5 24 SemiBold 브랜드(시안처럼 높이 30 안 가운데라 글이 아래로 넘침) */
.nm-cart-sum__row--total { padding-top: 20px; border-top: 1px solid var(--nm-line-regular); }
.nm-cart-sum__row--total .nm-cart-sum__th { font-size: 18px; font-weight: 600; line-height: 25px; letter-spacing: -0.45px; color: var(--nm-font-black); }
.nm-cart-sum__row--total .nm-cart-sum__td { font-size: 24px; font-weight: 600; line-height: 34px; letter-spacing: -0.6px; color: var(--nm-brand-primary); }
/* 주문 버튼(460:25946 — 간격 10, 라이브러리 Button_Default Large 54 = renewal.css .nm-btn-pill--l, 한 줄 안내 B4 13 Medium 브랜드) */
.nm-cart-sum__btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nm-cart .nm-cart-obtn { width: 100%; }
.nm-cart-sum__guide { margin: 0; font-size: 13px; font-weight: 500; line-height: 19px; letter-spacing: -0.325px; color: var(--nm-brand-primary); text-align: center; }
.nm-cart-sum__note { margin: 0; font-size: 13px; line-height: 19px; letter-spacing: -0.325px; color: #D50000; text-align: center; } /* 정기결제 카드 등록 안내(KICC 결제사일 때만) — System/Red */
.nm-cart-npay { text-align: center; }
.nm-cart-npay:empty { display: none; } /* 네이버페이·톡체크아웃 버튼은 운영 설정이 켜져 있을 때만 서버가 넣는다 */

/* ── 빈 장바구니(460:25632 — 위아래 선 Line/black, 안 NM2/EmptyState = renewal.css .nm-empty, 아래 120) ── */
.nm-cart-empty { box-sizing: border-box; max-width: 1280px; margin: 0 auto 120px; border-top: 1px solid var(--nm-font-black); border-bottom: 1px solid var(--nm-font-black); }

/* ── 정기구독 전환 안내창(460:31648 — 라이브러리 Popup_Alert: 폭 420 · 라운드 4, 머리 64(T5 18 SemiBold · 닫기 28), 간격 8, 3D 아이콘 80 · 간격 20 · T5 18 Medium / B3 14 Font/03_Sub, 버튼 36 간격 8) ──
   여닫기는 공용 showCenterLayer/hideCenterLayer(덮개 .resp_layer_bg = 검정 50%). 뿌리 칸에는 display 를 주지 않는다(.hide 로 숨김). */
.resp_layer_pop.nm-cart-alert { box-sizing: border-box; width: 420px; max-width: calc(100vw - 32px); overflow: hidden; border-radius: 4px; background: var(--nm-bg-white); font-family: var(--nm-font); text-align: center; -webkit-font-smoothing: antialiased; }
.nm-cart-alert__head { position: relative; display: flex; align-items: center; justify-content: center; height: 64px; padding: 0 56px; }
.nm-cart-alert__title { margin: 0; padding: 0; font-size: 18px; font-weight: 600; line-height: 25px; letter-spacing: -0.45px; color: var(--nm-font-black); }
.nm-cart-alert__close { position: absolute; top: 18px; right: 20px; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.nm-cart-alert__close img { display: block; width: 28px; height: 28px; }
.nm-cart-alert__body { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 8px; padding: 0 32px 8px; }
.nm-cart-alert__ico { display: block; width: 80px; height: 80px; }
.nm-cart-alert__msg { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.nm-cart-alert__tit { margin: 0; font-size: 18px; font-weight: 500; line-height: 25px; letter-spacing: -0.45px; color: var(--nm-font-black); } /* PC/Title/T5_KR_Md_18 */
.nm-cart-alert__txt { margin: 0; font-size: 14px; font-weight: 400; line-height: 20px; letter-spacing: -0.35px; color: var(--nm-font-sub); }
.nm-cart-alert__btns { display: flex; justify-content: center; gap: 8px; padding: 20px 32px 32px; }
.nm-cart-alert__btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 54px; margin: 0; padding: 0 16px; border: 0; border-radius: 4px; background: var(--nm-line-light); font-size: 16px; font-weight: 600; line-height: 22px; letter-spacing: -0.4px; color: var(--nm-font-black); white-space: nowrap; cursor: pointer; } /* Button_Default X Large 54(가장 큰 크기 · 2026-11-15) · Button_Select_Input/BG_Color #F1F1F5 · B1 16 SemiBold */
.nm-cart-alert__btn--brand { background: var(--nm-brand-primary); color: var(--nm-font-white); }
.resp_layer_pop.nm-cart-alert.small_screen { top: 50% !important; right: 16px !important; bottom: auto !important; left: 16px !important; width: auto !important; max-width: none; transform: translateY(-50%); } /* 767 이하 공용 small_screen(화면 가득) 대신 가운데 카드 */

/* ── 1024~1279: 담은 상품 열이 좁아져 금액 3줄을 상품 정보 아래로 ── */
@media (max-width: 1279px) {
	.nm-cart .cart_list .cart_goods { display: grid; grid-template-columns: 22px 100px minmax(0, 1fr) 20px; column-gap: 20px; row-gap: 16px; }
	.nm-cart-item__check { grid-column: 1; grid-row: 1; }
	.nm-cart-item__pic { grid-column: 2; grid-row: 1; }
	.nm-cart-item__info { grid-column: 3; grid-row: 1; }
	.nm-cart-item__del { grid-column: 4; grid-row: 1; }
	.nm-cart-item__price { grid-column: 3 / 5; grid-row: 2; width: auto; }
	.nm-cart-sum { flex-basis: 340px; width: 340px; }
}

/* ── 1023 이하(모바일 시안 없음): 한 열로 접음 — 본문 틀 여백 10(common.css) + 10 = 화면 왼쪽 20 ── */
@media (max-width: 1023px) {
	.nm-cart-head .nm-cart-tabs { position: static; gap: 20px; margin-top: 20px; overflow-x: auto; scrollbar-width: none; }
	.nm-cart-head .nm-cart-tabs::-webkit-scrollbar { display: none; }
	.nm-cart-tabs a { padding: 12px 0; font-size: 15px; line-height: 21px; }
	.nm-cart-body { flex-direction: column; align-items: stretch; gap: 40px; padding: 0 10px 64px; }
	.nm-cart-sum { flex: 0 0 auto; width: auto; }
	.nm-cart .cart_list .goods_delivery_info { padding: 12px 16px; }
	.nm-cart .cart_list .cart_goods { grid-template-columns: 22px 80px minmax(0, 1fr) 20px; column-gap: 12px; padding: 20px 16px; }
	.nm-cart-item__pic { width: 80px; height: 80px; }
	.nm-cart-sum__box { padding: 24px 20px; }
	.nm-cart-empty { margin: 0 10px 64px; }
}
