/* P11 장바구니 + P12 주문서 공통 상품 표.
   원본: PLUGIN_education/css/goods.css 110~158행(.pageSbag), 바탕 #f3f4f6(캡처 측정). 디자인 기준 reference-html/design-ref/P11-cart. */
.cart-page { background:#f3f4f6; }
.cart { max-width:1240px; margin:0 auto; padding:30px 20px; }
.cart__title { display:flex; align-items:center; gap:8px; padding-bottom:20px; color:#000; font-size:24px; font-weight:700; }
.cart__title svg { width:30px; height:30px; }
.cart-notice { margin-bottom:16px; padding:14px 20px; border-radius:12px; background:#fff; color:#ff4949; font-size:14px; }
.cart-notice a { margin-left:6px; font-weight:600; text-decoration:underline; }

/* 상품 표 */
.cart-list { padding:20px 30px; border-radius:12px; background:#fff; }
.cart-table { width:100%; border-collapse:collapse; font-size:12px; }
.cart-table thead th { padding:0 0 10px; border-bottom:1px solid #8a8a8a; font-size:12.5px; font-weight:600; text-align:center; }
.cart-table td { height:48px; padding:12px; border-top:1px solid #eee; text-align:center; }
.cart-page input[type=checkbox] { width:20px; height:20px; cursor:pointer; }
.cart-page input[type=checkbox]:disabled { cursor:not-allowed; }
.cart-item__check { width:35px; }
.cart-item__thumb { width:124px; }
.cart-item__thumb img { display:block; width:80px; height:70px; margin:0 auto; object-fit:cover; object-position:left center; }
.cart-item__qty { width:80px; }
.cart-item__edit { width:120px; }
.cart-item__price { width:80px; font-size:13px; }
.cart-table tbody tr:first-child td { border-top:0; }
.cart-group__head th { padding:16px 0 8px; border-bottom:1px solid #eee; color:#333; font-size:14px; font-weight:600; text-align:left; }
.cart-group__head th span { margin-left:6px; color:#999; font-weight:400; }
.cart-group + .cart-group .cart-group__head th { padding-top:24px; }
.cart-item__subject { text-align:left !important; }
.cart-item__subject a { display:block; color:inherit; }
.cart-item__subject a:hover .cart-item__name { color:#fc6d35; }
.cart-tag { display:block; margin-bottom:2px; font-size:12px; font-weight:600; }
.cart-tag--off { color:#fc6d35; }
.cart-tag--on { color:#2989f7; }
.cart-item__name { display:block; color:#000; font-size:16px; font-weight:700; }
.cart-item__option { display:block; color:#999; font-size:14px; }
.cart-item__alert { margin-top:4px; color:#ff4949; font-size:13px; }
.cart-item__qty input { width:39px; height:24px; padding:0 6px; border:1px solid #ccc; font:inherit; font-size:12px; }
.cart-item__qty input[readonly] { background:#f8f8f8; color:#999; }
.cart-item__edit button { display:inline-block; width:36px; border:0; color:#fff; font:inherit; font-size:12px; line-height:24px; cursor:pointer; }
.cart-item__update { background:#ff4949; }
.cart-item__remove { margin-left:5px; background:#aaa; }
.cart-item__update:only-child, .cart-item__remove:only-child { margin-left:0; }
/* 주문 불가: 원본 guest_unsell(#eee 바탕)·sell_time_over(흐린 글자) */
.cart-item.is-blocked { background:#f6f6f6; }
.cart-item.is-blocked .cart-item__name, .cart-item.is-blocked .cart-item__option, .cart-item.is-blocked .cart-tag, .cart-item.is-blocked .cart-item__price { color:#ccc; }
.cart-item.is-blocked .cart-item__thumb img { opacity:.4; }
.cart-empty td { padding:90px 20px; border-top:0; }
.cart-empty p { color:#333; font-size:16px; }
.cart-empty div { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin-top:20px; }
.cart-empty a { padding:10px 18px; border:1px solid #ddd; border-radius:6px; font-size:14px; }

/* 상품금액·주문하기 */
.cart-list:has(+ .cart-body:not([hidden])) { border-radius:12px 12px 0 0; }
.cart-price { padding:20px 30px; border-top:1px solid #f3f4f6; border-radius:0 0 12px 12px; background:#fff; font-size:14px; text-align:right; }
.cart-price strong { padding:0 5px 0 30px; color:#1c1c1c; font-size:28px; }
.cart-submit { padding:20px 0 50px; text-align:right; }
.cart-summary__order { display:inline-block; width:200px; padding:0 35px; background:#f64643; color:#fff; font-size:18px; line-height:48px; text-align:center; }
/* 공통 a:hover(주황 글자)가 덮지 않게 글자색을 고정한다. */
.cart-summary__order:hover { color:#fff; background:#e33532; }
.cart-summary__order[aria-disabled="true"] { background:#ccc; cursor:not-allowed; }

/* 모바일: 원본 ?pc=m 템플릿 — 흰 바탕, 썸네일·금액 열 숨김, 수정·삭제 세로, 주문하기 가득 */
@media(max-width:767px) {
    .cart-page { background:#fff; }
    .cart { padding:0 0 10px; }
    .cart__title { padding:20px 0 20px 20px; }
    .cart-notice { margin:0 20px 10px; padding:12px 14px; background:#fff5f5; }
    .cart-list { padding:20px; }
    .cart-item__thumb, .cart-item__price { display:none; }
    .cart-table td { padding:12px 6px; }
    .cart-item__check { width:30px; }
    .cart-item__qty { width:56px; }
    .cart-item__edit { width:56px; }
    .cart-tag { font-size:12px; }
    .cart-item__name { font-size:16px; }
    .cart-item__option { font-size:13px; }
    .cart-item__edit button { display:block; margin:0 auto; font-size:10px; line-height:20px; }
    .cart-item__remove { margin:5px auto 0; }
    .cart-price { padding:15px 30px; border-top:0; }
    .cart-price strong { padding:0 5px; font-size:15px; }
    .cart-submit { padding:20px 12px 50px; }
    .cart-summary__order { display:block; width:100%; padding:0; font-size:16px; font-weight:700; line-height:40px; }
}
