/*
 * 청첩장 상세 PC 구매 칸 — 글 단계·상자·선 줄이기 (2026-11-18 대표님 «글씨 크기·간격 … 너무 복잡해 보인다»)
 *   김 부장 판정 «글 + 칸·선»: 글 크기 4단계(14·16·20·24) · 굵기 2단계(400·600) · 글 색 2가지(진한·옅은)
 *   · 테두리 상자는 단추(장바구니·무료 샘플)만 — 고르는 칸은 옅은 바탕 · 줄 선 없앰
 *   · 토글(형태·모서리·구성)은 고른 쪽 = 흰 칸 + 진한 600 검정, 안 고른 쪽 = 회색 400 (흰 칸·옅은 회색만으로는 약함)
 *   폰(767 이하)은 손대지 않는다. 폭·자리(328 등)는 이 파일이 아니라 따라오는 칸 쪽 CSS 가 정한다.
 *   기존 규칙이 #productDetailOptions 아이디까지 붙은 !important 라 같은 자리를 아이디 세 번으로 이긴다(기존 «:not(.pdp-follow__panel #productDetailOptions)» 규칙이 아이디 둘).
 */
@media (min-width: 768px) {
    /* ── 바탕 한 톤(2026-11-17 대표님 «오른쪽 패널 컬러 두 가지 톤 → 상단 헤더 바탕 색깔 정도로 통일») ──
       형태·구성 통 · 모서리·수량 상자 · 사은품·추가 구성품 상자가 #f1efe9(통)와 #f4f1f0(상자) 두 톤이었다 → 이 토큰 하나.
       헤더 바탕(--bj-header-surface #fdfdfc)은 흰 바닥과 1단계 차이라 상자가 사라진다 → 같은 따뜻한 결의 가장 옅은 정본 토큰(안내 면 #f8f7f4).
       고른 칸(흰 바탕)은 그대로 흰색이라 고른 것이 구분된다. 값을 바꿀 때는 여기 한 곳만. */
    html body.pdp-modern-page { --pdp-buy-surface: var(--bj-information-surface, #f8f7f4); }

    /* ── 딱지 한 톤(11-17 대표님 «60점 → 100점» · «섞인 톤») ── 제목 옆 NEW(초록)·맞춤(분홍)·종이 «디자이너 추천»(초록)이
       구매 칸 안에서 세 가지 색이었다 → 상세 딱지 기본(중립) 한 톤. 품절 딱지는 뜻이 달라 그대로. */
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-product-badge:is(.pdp-product-badge--new, .pdp-product-badge--order, .pdp-product-badge--sale) {
        background: var(--pdp-color-badge-neutral-bg, #f2f4f6) !important; color: var(--pdp-color-badge-neutral-ink, #626b75) !important;
    }

    /* ── 붙은 단추 줄 위 흐림 띠(«N부 · 총액» 줄이 나온 동안) 16 → 32 · 위 40% 만 흐림, 아래 60% 불투명 ──
       카드만에서 칸 안 큰 총액(24px 글)이 띠 위로 반쯤 걸쳐 «N부 · 총액»과 두 번 보였다 — 글 한 줄 높이(32)를 덮어 윗부분도 안 비치게. */
    html body.pdp-modern-page.pdp-one-on .pdp-purchase-actions.pdp-one__stick:has(> .pdp-one__stickline:not([hidden]))::before {
        top: -32px !important; height: 32px !important; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 40%) !important;
    }

    /* ── 같은 금액 세 번 → 낼 돈은 한 곳만 크게(11-17 «60→100» 흠목록 4번 · 금액 숫자·계산 변화 없음 · 보이는 자리만) ──
       풀세트 첫 화면에 32,500원이 수량 줄 · 구성 단추 · 바닥 총액 세 곳에 같은 크기로 나와 «낼 돈»을 3초 안에 못 골랐다.
       · 수량 줄 오른쪽 금액은 그대로 둔다 — 대표님 지시로 생긴 칸(«빼자» 안이 대표님 말씀으로 취소됨 58204→58218 · 김 부장 #41362 판정).
       · 구성 단추 값은 견주기용이라 남기되 14 · 보통 굵기(고른 쪽 진한 글 · 안 고른 쪽 옅은 글은 위 토글 규칙 그대로). */
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-one__tog .pdp-one__tog-item[aria-pressed] > span > b {
        font-size: 14px !important; font-weight: 400 !important;
    }

    /* ── 글 ── */
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) h1.pdp-product-title { font-size: 24px !important; font-weight: 600 !important; line-height: 32px !important; }
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-product-code { font-size: 14px !important; font-weight: 400 !important; color: var(--bj-muted, #66635e) !important; }

    /* 줄 이름(형태·모서리·수량·구성·크기·종이·사은품·추가 구성품): 14 · 400 · 옅은 글 */
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) :is(.pdp-one__rowlabel, .pdp-one__label, .pdp-one__item--gift > .pdp-one__name, .pdp-offer-fold__title),
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-one__setpaper > span:first-child {
        font-size: 14px !important; font-weight: 400 !important; color: var(--bj-muted, #66635e) !important; line-height: 21px !important;
    }
    /* 값: 16 · 400 · 진한 글 */
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) :is(.pdp-one__face-name, .pdp-one__face-value, .pdp-one__items > .pdp-one__item:not(.pdp-one__item--gift) .pdp-one__name, .pdp-offer-fold__now),
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-one__setpaper > b,
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-purchase-actions__promise span {
        font-size: 16px !important; font-weight: 400 !important; color: var(--bj-ink, #181817) !important; line-height: 24px !important;
    }
    /* 사은품 상자 글: 제목 16·600 · 풀이 14·400 옅은 글 */
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-one__gifttxt > b { font-size: 16px !important; font-weight: 600 !important; color: var(--bj-ink, #181817) !important; }
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-one__gifttxt > i { font-size: 14px !important; font-weight: 400 !important; color: var(--bj-muted, #66635e) !important; }
    /* 단추 글: 16·600 · 풀이 14·400 */
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-purchase-action__label { font-size: 16px !important; font-weight: 600 !important; }
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-purchase-action__hint { font-size: 14px !important; font-weight: 400 !important; }
    /* 총 주문금액: 이름 14·400 옅은 글 · 값 24·600 */
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .ompPriceTotal { font-size: 24px !important; font-weight: 600 !important; }
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .totalPrice .fontHighligh:not(.ompPriceTotal) { font-size: 16px !important; font-weight: 600 !important; }
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .totalPrice .fontHighligh.ompPriceTotal { font-size: 24px !important; font-weight: 600 !important; }
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-total-section-start > ul > li:first-child { font-size: 14px !important; font-weight: 400 !important; color: var(--bj-muted, #66635e) !important; }

    /* ── 토글: 고른 쪽 흰 칸 + 진한 600 · 안 고른 쪽 회색 400 ── */
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-one__tog {
        gap: 4px !important; padding: 4px !important; border: 0 !important; border-radius: 10px !important; background-color: var(--pdp-buy-surface) !important;
    }
    /* 형태 통(.pdp-one__pill — wedding-fullset.css 가 #f1efe9 로 칠함)도 같은 톤 */
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-one__shape .pdp-one__pill { background-color: var(--pdp-buy-surface) !important; }
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) :is(.pdp-one__tog .pdp-one__tog-item, .pdp-one__pill-item) {
        border-color: transparent !important; background-color: transparent !important; box-shadow: none !important;
    }
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) :is(.pdp-one__tog .pdp-one__tog-item, .pdp-one__pill-item)[aria-pressed="true"] {
        background-color: #fff !important; box-shadow: 0 1px 3px rgba(24, 24, 23, .10) !important;
    }
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) :is(.pdp-one__tog-item, .pdp-one__pill-item)[aria-pressed="true"] :is(strong, b, span) {
        font-weight: 600 !important; color: var(--bj-ink, #181817) !important;
    }
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) :is(.pdp-one__tog-item, .pdp-one__pill-item)[aria-pressed="false"] :is(strong, b, span) {
        font-weight: 400 !important; color: var(--bj-muted, #66635e) !important;
    }
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) :is(.pdp-one__tog-item, .pdp-one__pill-item) :is(strong, b) { font-size: 16px !important; }

    /* ── 상자: 고르는 칸은 옅은 바탕(테두리 없음) · 단추만 테두리 ── */
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-one__face { border-color: transparent !important; background-color: transparent !important; box-shadow: none !important; }
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) :is(.pdp-one__field, .pdp-one__qtywrap) select,
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-one__giftbox,
    /* 추가 구성품: 위 칸(이름 칸이 왼쪽)은 값 상자만 칠하고, 따라오는 칸(이름이 상자 안)은 줄 전체를 칠한다 */
    html body.pdp-modern-page #productDetailOptions#productDetailOptions#productDetailOptions:not(.pdp-follow__panel *) .pdp-offer-fold__now,
    html body.pdp-modern-page .pdp-follow__panel #productDetailOptions#productDetailOptions#productDetailOptions .pdp-offer-fold {
        border-color: transparent !important; background-color: var(--pdp-buy-surface) !important; box-shadow: none !important;
    }
    html body.pdp-modern-page #productDetailOptions#productDetailOptions#productDetailOptions:not(.pdp-follow__panel *) .pdp-offer-fold { background-color: transparent !important; }
    /* 카드만 «추가 구성품» 펼친 안쪽 고르는 칸(실링 왁스 스티커·청첩장 리본 · .ompChoice1)이 흰 바탕 + 회색 테두리라
       같은 칸 안 다른 상자(옅은 면 · 테두리 없음)와 두 꼴이었다 → 같은 면(11-17 «60→100» 흠목록 1절) */
    html body.pdp-modern-page #productDetailOptions#productDetailOptions#productDetailOptions .ompProductRow button.ompChoice1 {
        border-color: transparent !important; background-color: var(--pdp-buy-surface) !important; box-shadow: none !important;
    }
    html body.pdp-modern-page .pdp-follow__panel #productDetailOptions#productDetailOptions#productDetailOptions .pdp-offer-fold__now { border-color: transparent !important; background-color: transparent !important; }

    /* ── 줄 선 없앰(포함 목록 위·사은품 위·총 주문금액 위·추가 구성품 위) ── */
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) :is(.pdp-one__items, .pdp-one__item--gift, .pdp-offer-fold),
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) ul { border-top-color: transparent !important; }
    /* 카드만: «총 주문금액» 위 선도 없앰(풀세트 판과 같게) · 더하기 여섯 줄 사이 선은 목록 줄이라 둔다 */
    html body.pdp-modern-page :is(#productDetailOptions#productDetailOptions#productDetailOptions, .pdp-hero-purchase) .pdp-one__total { border-top-color: transparent !important; }
}

/* 768~1099 한 단 창(1024 등)은 위 칸도 이름이 상자 안에 들어간 꼴 → 추가 구성품은 따라오는 칸처럼 줄 전체를 칠한다
   (1100 이상 위 칸은 이름이 왼쪽 칸이라 값 상자만 칠함 — 위 규칙). 경계 1100 은 따라오는 칸 틀(product-detail-follow-buy.css)과 같다. */
@media (min-width: 768px) and (max-width: 1099px) {
    html body.pdp-modern-page #productDetailOptions#productDetailOptions#productDetailOptions:not(.pdp-follow__panel *) .pdp-offer-fold {
        border-color: transparent !important; background-color: var(--pdp-buy-surface) !important; box-shadow: none !important;
    }
    html body.pdp-modern-page #productDetailOptions#productDetailOptions#productDetailOptions:not(.pdp-follow__panel *) .pdp-offer-fold__now {
        border-color: transparent !important; background-color: transparent !important;
    }
}
