/*
 * PC 청첩장 상세 아래 — 오른쪽에 붙어 따라오는 구매 칸 (2026-11-16 대표님 55001·55002 · 55765 «해»)
 *   틀: card/doc/product/product_detail_tabs.php(.pdp-follow) · 켜는 곳·끄개: common/pdp_follow_buy.php · 옮겨 붙이기: card/js/product-detail-follow-buy.js
 *   폭(디자인 팀장 11-16): 1064 = 왼쪽 내용 704(12칸 중 8칸) + 사이 16 + 오른쪽 칸 344(4칸). 1100 아래 창·폰은 종전 그대로(이 파일이 아무것도 하지 않는다).
 *   오른쪽 칸 안의 줄·셀렉트·총액·단추는 위 구매 칸 부품 그대로다(옮겨 온 같은 요소). 여기서는 칸 겉(주문 칸 공용 토큰)과 «좁은 칸에서만 다른 것»만 정한다.
 *   (2026-11-20 명함 팀장 · 대표님 41493·55001) 명함 상세도 같은 부품을 쓴다 — 칸 겉 규칙(자리·칸·머리·빈 자리·바닥 맞춤)만 명함 틀(.pdp-follow--host)에도 걸고,
 *   왼쪽·오른쪽 나누기와 칸 안 모양은 쪽마다(명함 = card/includes/namecard_nd_top.php).
 */
@media (min-width: 1100px) {
    body.pdp-modern-page {
        --pdp-follow-width: 328px;
        --pdp-follow-rail: min(var(--pdp-rail-wide, 1064px), calc(100% - 2 * var(--bj-space-2, 16px)));
    }

    html body.pdp-modern-page .pdp-semantic-lower-content > .pdp-follow {
        display: grid;
        /* (2026-11-18 대표님 직접 «왼쪽 패널하고 오른쪽 패널의 사이 간격 … 오른쪽을 조금 줄여 여백을 확보») 사이 16 → 32 · 오른쪽 칸 344 → 328(합 1064 그대로) */
        grid-template-columns: minmax(0, 704px) var(--pdp-follow-width);
        column-gap: 32px;
        align-items: start;
        width: var(--pdp-follow-rail);
        margin: 0 auto;
    }

    /* 선택 창은 본문 쪽에 놓아 따라오는 구매 칸의 총액과 주문 버튼을 덮지 않는다. */
    html.pdp-follow-docked body.pdp-modern-page .pdp-pick-modal {
        padding-inline-end: calc((100% - var(--pdp-follow-rail)) / 2 + var(--pdp-follow-width) + var(--bj-space-2, 16px));
    }

    /* 왼쪽 내용 — 구간들이 «페이지 폭» 대신 이 칸 폭을 기준으로 삼게 한다 */
    html body.pdp-modern-page .pdp-semantic-lower-content .pdp-follow > .pdp-follow__main {
        width: auto !important;
        max-width: 704px !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        --pdp-rail-wide: 704px;
        --pdp-section-width: 704px;
    }

    html body.pdp-modern-page .pdp-follow .pdp-follow__main > .pdp-semantic-section,
    html body.pdp-modern-page .pdp-wedding-editorial .pdp-follow .pdp-follow__main :is(#pdp-detail, #pdp-set-guide, #pdp-reviews, #pdp-production, #pdp-events) > *,
    html body.pdp-modern-page .pdp-wedding-editorial .pdp-follow .pdp-follow__main #pdp-set-guide .pdp-semantic-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
    }

    html body.pdp-modern-page .pdp-wedding-editorial .pdp-follow .pdp-follow__main #pdp-reviews::after {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    body.pdp-modern-page .pdp-follow__main * {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    body.pdp-modern-page .pdp-follow__main :is(img, video) {
        height: auto !important;
    }

    body.pdp-modern-page .pdp-follow__main :is(#product-detail-description, #pdc_area, #product_detail_theme_all_area) {
        width: 100% !important;
        align-items: stretch !important;
    }

    body.pdp-modern-page .pdp-follow__main :is(#pdp-editorial-theme-canvas, .pdp-editorial-chapter, .pd_area_video, .pdt_spec, .pdp-editorial-designer-note) {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.pdp-modern-page .pdp-follow__main .product_detail_theme_block2_photo,
    body.pdp-modern-page .pdp-follow__main .product_detail_theme_block2_photo img {
        width: 100% !important;
        height: auto !important;
    }

    /* 세 칸·네 칸 줄은 칸 폭에 맞춰 고르게(가로 넘김 줄로 남기지 않는다) */
    body.pdp-modern-page .pdp-follow__main :is(.wedding-guide__tiers, .wedding-guide__comparison-footer, #pdp-order-methods) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.pdp-modern-page .pdp-follow__main .prd_print_proc_grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: var(--bj-space-2, 16px) !important;
        overflow: visible !important;
        grid-auto-flow: row !important;   /* (11-18 박경영 640) 바탕 «옆으로 넘기는 줄»을 끈다 — 5번째 영상부터 다음 줄 같은 폭(종전 같은 줄 235 칸에 붙어 앞 칸이 눌림) */
        grid-auto-columns: auto !important;
    }

    body.pdp-modern-page .pdp-follow__main :is(.prd_print_proc_card, .prd_print_proc_video_box) {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.pdp-modern-page .pdp-follow__main .prd_print_proc_video_box .video_poster {
        width: 100% !important;
        height: auto !important;
    }

    body.pdp-modern-page .pdp-follow__main .tab_event_info {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: var(--bj-space-2, 16px) !important;
        overflow: visible !important;
    }

    body.pdp-modern-page .pdp-follow__main .tab_event_info > a {
        min-width: 0 !important;
        width: auto !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.pdp-modern-page .pdp-follow__main .tab_event_info > a * {
        width: auto !important;
    }

    body.pdp-modern-page .pdp-follow__main .tab_event_info > a img {
        width: 100% !important;
    }

    /* 후기 카드: 좁아진 칸에서 제목·상품 이름이 «…»로 잘리지 않게 두 줄까지 */
    body.pdp-modern-page .pdp-follow__main .pdp-global-review-preview__item h3 {
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
    }

    body.pdp-modern-page .pdp-follow__main .pdp-global-review-preview__meta {
        flex-wrap: wrap !important;
    }

    body.pdp-modern-page .pdp-follow__main .pdp-global-review-preview__product {
        max-width: none !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    /* 오른쪽 자리 — 탭 줄 바로 아래에 붙어 따라온다 */
    :is(body.pdp-modern-page, .pdp-follow--host) .pdp-follow__aside {
        position: sticky;
        /* (11-18 대표님 직접 «이거 위치 안 맞고») 칸 머리는 탭 줄과 같은 줄에서 시작한다 — 자리는 탭 줄 높이만큼 끌어올리고(아래 margin-top) 붙은 뒤에도 탭 줄과 같은 맨 위(0)에 선다.
           종전엔 탭 줄 아래 + 16 에서 시작해 칸 머리가 탭 줄보다 71px 아래로 어긋났다. 탭 줄은 왼쪽 본문 폭(704)만 차지해 옆으로 겹치지 않는다. */
        top: 0;
        /* (11-17 김 부장 59538 판정) 탭 줄(.pdp-section-nav · sticky z 39)이 맨 위에 붙기 전, 위로 지나가며 칸 머리(이름·수량)를 덮었다 → 칸이 탭 줄 위 층.
           탭 줄이 맨 위에 붙은 뒤엔 칸이 그 아래(top = 탭 줄 높이 + 16)라 겹치지 않는다 */
        z-index: 40;
        min-width: 0;
        /* (11-17 대표님 59538) 자리 시작 = 위 구매 칸 바로 아래(스크립트가 --pdp-follow-lift 로 잼 · 음수) — 따라오는 칸이 위 칸이 나가는 자리에서 바로 이어진다 */
        margin-top: calc(var(--pdp-follow-lift, 0px) - var(--pdp-follow-nav-height, 55px));
    }

    :is(body.pdp-modern-page, .pdp-follow--host) .pdp-follow__panel {
        box-sizing: border-box;
        max-height: calc(100vh - var(--bj-space-2, 16px));
        overflow-y: auto;
        /* (2026-11-18 대표님 직접 «우측 패널 … 테두리 없이 해주는 게 어때?») 칸 바깥 테두리·바탕을 없앤다 — 안의 고르는 칸들이 이미 테두리를 갖고 있어 상자가 겹쳐 보였다.
           좌우 4 는 초점 테두리가 잘리지 않게(이 칸은 overflow-y: auto). */
        padding: 0 4px var(--bj-space-2, 16px);
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        color: var(--bj-ink, #181817);
        text-align: left;
    }

    :is(body.pdp-modern-page, .pdp-follow--host) .pdp-follow__panel[hidden] {
        display: none;
    }

    :is(body.pdp-modern-page, .pdp-follow--host) .pdp-follow__head {
        display: flex;
        align-items: center;
        gap: var(--bj-space-1, 8px);
        margin-bottom: var(--bj-space-2, 16px);
    }

    /* (2026-11-18 대표님 직접 JEINA051 «작은 카드 들어간 썸네일») 카드만 찍힌 그림 — 사진 칸 회색 위 48 정사각 · 둥글기 8(칸과 같은 값) */
    :is(body.pdp-modern-page, .pdp-follow--host) .pdp-follow__head img {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        border-radius: var(--bj-control-radius, 8px);
        object-fit: cover;
        background: var(--bj-template-media-surface, #f1f1f1);
    }

    :is(body.pdp-modern-page, .pdp-follow--host) .pdp-follow__head-copy {
        flex: 1 1 auto;
        min-width: 0;
    }

    :is(body.pdp-modern-page, .pdp-follow--host) .pdp-follow__head-name {
        display: block;
        font-size: var(--bj-type-body-size, 16px);
        font-weight: 600;
        line-height: 24px;
        color: var(--bj-ink, #181817);
    }

    :is(body.pdp-modern-page, .pdp-follow--host) .pdp-follow__head-code {
        display: block;
        font-size: var(--bj-type-caption-size, 14px);
        line-height: 21px;
        color: var(--bj-muted, #66635e);
    }

    /* 자리 안으로 옮겨 온 위 구매 칸 — 큰 화면 배치 값만 풀어 준다(부품 모양은 건드리지 않는다) */
    body.pdp-modern-page .pdp-follow__slot.pdp-hero-purchase {
        display: block !important;
        position: static !important;
        grid-column: auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.pdp-modern-page .pdp-follow__slot .product_detail_right_all_wrapper,
    body.pdp-modern-page .pdp-follow__slot :is(#product_detail_price_area, #productDetailOptions, .orderQtyRow, #productSpecArea, .pdp-purchase-actions) {
        width: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 좁은 칸(328)에서 줄이 칸 밖으로 넘치지 않게 — 칸 안 흐름의 부품만. (11-18 김 부장 · 07d73c64 발견)
       칸 안에서 여는 창(사은품 창 .pdp-one__giftpop · 주문 방법 창 · 종이 설명 창 — role=dialog / aria-modal / <dialog>)은 화면 위에 따로 뜨는 층이라
       이 규칙이 창 안쪽 상자의 제 폭 제한(max-width)을 100% 로 덮어써 PC 에서 1,408px 로 화면 끝까지 늘었다 — 창과 그 안은 이 규칙에서 뺀다(창마다 따로 막지 않는다) */
    body.pdp-modern-page .pdp-follow__slot :not(dialog, dialog *, [role="dialog"], [role="dialog"] *, [aria-modal="true"], [aria-modal="true"] *) {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* 따라오는 칸에는 넣지 않는 것: 상품 이름 줄(칸 머리에 있음) · 셀픽 미리보기 · «옵션 바꾸기»(색·종류는 위 칸 한 곳에만) · 금액 상세 펼침 */
    body.pdp-modern-page .pdp-follow__slot :is(.product_view_name, #card_customizer_group_div, .pdp-offer-fold, .pdp-cost-summary) {
        display: none !important;
    }

    /* 칸 안 줄(수량·구성 셀렉트 · «풀세트에 들어 있어요» 면 · 더하기 셀렉트 · 총액)은 위 구매 칸 부품 그대로다 — 여기서 글·줄 높이를 따로 정하지 않는다.
       수량 셀렉트 위에 겹쳐 그리는 글(.pdp-one__face--qty)의 자리는 스크립트가 셀렉트에 맞춘다(m/product_detail_price.php) — 옮겨 붙인 뒤 다시 맞추는 것은 product-detail-follow-buy.js syncFaces. */
    html body.pdp-modern-page .pdp-follow__slot .orderQtyRow > ul {
        height: auto !important;
        min-height: 0 !important;
    }

    /* (11-17 대표님 59538) «구성» 두 단추 — 좁은 칸(344)에선 이름·값 가로 한 줄이 «85,00…»로 잘렸다. 이름 위 · 값 아래 두 줄로(값은 다 보이게). 격자·테두리는 부품 그대로 */
    html body.pdp-modern-page .pdp-follow__slot #productDetailOptions .pdp-offer-box .pdp-one .pdp-one__tog .pdp-one__tog-item,
    html body.pdp-modern-page .pdp-follow__slot #productDetailOptions .pdp-offer-box .pdp-one .pdp-one__tog .pdp-one__tog-item[aria-pressed="true"] {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        height: auto !important;
        min-height: 64px;
        padding-top: var(--bj-space-1, 8px);
        padding-bottom: var(--bj-space-1, 8px);
    }

    html body.pdp-modern-page .pdp-follow__slot #productDetailOptions .pdp-offer-box .pdp-one .pdp-one__tog .pdp-one__tog-item > :is(strong, span) {
        max-width: 100%;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }

    html body.pdp-modern-page .pdp-follow__slot .pdp-one__state {
        height: auto !important;
        min-height: 0 !important;
    }

    /* 단추: 장바구니 + 무료샘플 한 줄 · 주 단추는 아래 한 줄 전체 */
    html body.pdp-modern-page .pdp-follow__slot .pdp-purchase-actions {
        margin-top: var(--bj-space-2, 16px) !important;
    }

    html body.pdp-modern-page .pdp-follow__slot .pdp-purchase-actions__grid {
        display: flex !important;
        flex-wrap: wrap;
        gap: var(--bj-space-1, 8px) !important;
    }

    html body.pdp-modern-page .pdp-follow__slot .pdp-purchase-actions__grid > .pdp-purchase-action {
        flex: 1 1 0;
        width: auto !important;
        min-width: 0 !important;
    }

    html body.pdp-modern-page .pdp-follow__slot .pdp-purchase-actions__grid > .pdp-purchase-action[data-pdp-action="cart"] {
        flex: 0 0 52px;
    }

    html body.pdp-modern-page .pdp-follow__slot .pdp-purchase-actions__grid > .pdp-purchase-action--primary {
        flex: 1 0 100%;
    }

    /* 위 구매 칸이 옮겨 간 동안 제자리 높이를 지키는 빈 자리 */
    :is(body.pdp-modern-page, .pdp-follow--host) .pdp-follow__placeholder[hidden] {
        display: none;
    }

    /* (11-18 대표님 직접 «하단 이건 없어도 되는 거잖아. 이제 오른쪽 패널에 지금 나오는데 이게 왜 들어가») 따라오는 칸이 있는 폭(이 파일의 1100 이상 ·
       product-detail-follow-buy.js 가 같은 기준 하나로 html.pdp-follow-wide 를 단다)에서는 PC 바닥 막대(장바구니·무료샘플·내 청첩장 만들기)를 아예 내지 않는다 —
       같은 단추가 첫 화면 칸과 오른쪽 따라오는 칸에 있다. 막대 판정(product-purchase-actions.js)도 같은 표지로 끈다. 폰·1100 아래(따라오는 칸 없음)는 막대 그대로.
       종전(#41384·#41403)의 «칸 바닥 덩이가 다 들어오기 전엔 막대가 단추를 맡고 칸의 총액·단추는 감춤» 규칙은 막대가 없어져 걷었다 — 칸의 총액·단추는 늘 보인다. */
    html.pdp-follow-wide .pdp-purchase-dock {
        display: none !important;
    }

    html.pdp-follow-wide body.pdp-purchase-dock-visible {
        padding-bottom: 0 !important;
    }
}

/*
 * (11-18 김 부장 판정 · 네이버 구매 칸처럼) 따라오는 칸 안: «총 주문금액 + 장바구니·무료샘플·내 청첩장 만들기» 덩이는 칸 바닥에 붙어 늘 보이고 위쪽 고르는 칸만 칸 안에서 스크롤된다.
 *   단추 덩이 = 칸 바닥(0) · 총액 줄 = 그 바로 위(단추 덩이 높이 · 스크립트가 --pdp-follow-act-h 로 잰다) · 흰 바탕(아래로 지나가는 줄을 가린다).
 *   (#41176 은 칸 안에서 단추 덩이를 제자리로 풀었다 — 그때는 총액 줄을 덮어서. 여기서는 총액 줄도 함께 붙여 덮지 않는다.) 칸 높이 한도는 스크립트(fitPanel).
 */
@media (min-width: 1100px) {
    html body.pdp-modern-page .pdp-follow__panel {
        padding-bottom: 0;
    }

    html body.pdp-modern-page.pdp-one-on .pdp-follow__slot .pdp-purchase-actions.pdp-one__stick,
    html body.pdp-modern-page .pdp-follow__slot .pdp-purchase-actions {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 5;
        margin-top: 0 !important;
        padding-bottom: var(--bj-space-2, 16px) !important;
        background: #fff;
    }

    /* 카드만 셀프처럼 총액 덩이가 #productSpecArea 가 아닌 곳에 있으면 그 덩이는 칸 안에서 스크롤된다 — 그동안은 단추 위 «N부 · 총액» 붙은 한 줄(총액이 다 보이면 스스로 숨음) */
    html body.pdp-modern-page.pdp-one-on .pdp-follow__slot .pdp-purchase-actions.pdp-one__stick > .pdp-one__stickline:not([hidden]) {
        display: flex !important;
    }

    html body.pdp-modern-page .pdp-follow__slot #productSpecArea {
        position: sticky;
        bottom: var(--pdp-follow-act-h, 0px);
        z-index: 4;
        background: #fff;
    }

    /* 칸 안에 아래로 더 있으면 붙은 덩이 바로 위에 흐림 띠 — 아래에 더 있다는 표시(스크립트가 칸에 data-pdp-follow-more 를 단다) */
    html body.pdp-modern-page .pdp-follow__panel[data-pdp-follow-more="spec"] .pdp-follow__slot #productSpecArea::after,
    html body.pdp-modern-page .pdp-follow__panel[data-pdp-follow-more="act"] .pdp-follow__slot .pdp-purchase-actions::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        /* (2026-11-19 디자인 팀장 11:27) 높이 = 마지막 보이는 줄 아래 6px 뒤 ~ 덩이 윗변(스크립트 --pdp-follow-more-fade · 0~32) — 줄 아랫부분을 흐리지 않게 */
        top: calc(-1 * var(--pdp-follow-more-fade, var(--bj-space-3, 32px)));
        height: var(--pdp-follow-more-fade, var(--bj-space-3, 32px));
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
        pointer-events: none;
    }
}

/* 낮은 화면(브라우저 확대·작은 노트북 · 높이 840 아래): «풀세트에 들어 있어요» 줄(봉투·스티커·식권 …)을 접어 단추가 화면 안에 남게 한다(셀렉트·사은품 줄·총액·단추는 그대로).
   (11-18) 그 줄 묶음 이름이 .pdp-one__in → .pdp-one__items--plain(common/wedding_fullset_presentation.php)으로 바뀐 뒤 이 규칙이 아무것도 접지 않았다 — 지금 이름으로. 사은품 줄은 접지 않는다 */
@media (min-width: 1100px) and (max-height: 839px) {
    html body.pdp-modern-page .pdp-follow__slot #productDetailOptions :is(.pdp-one__in, .pdp-one__items--plain > .pdp-one__item:not(.pdp-one__item--gift)) {
        display: none !important;
    }
}

/*
 * (2026-11-18 대표님 직접 «상단과 하단 상세설명을 지금 달리해서 네이버처럼» · 11f000c3) 아래 상세 구간의 탭 줄 — 왼쪽 본문 폭(704) 안에 이름 길이대로 짧게 + «후기 N».
 *   오른쪽 칸(328)은 탭 줄 옆에서 처음부터 자리에 있다(card/js/product-detail-follow-buy.js). 첫 화면·세 줄은 건드리지 않는다. 1100 아래·폰은 종전 그대로.
 */
@media (min-width: 1100px) {
    html body.pdp-modern-page .pdp-semantic-lower-content:has(> .pdp-follow) > .pdp-section-nav {
        width: calc(var(--pdp-follow-rail) - var(--pdp-follow-width) - var(--bj-space-3, 32px)) !important;
        max-width: none !important;
        margin-left: calc((100% - var(--pdp-follow-rail)) / 2) !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    html body.pdp-modern-page .pdp-semantic-lower-content:has(> .pdp-follow) > .pdp-section-nav .pdp-section-nav__inner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        justify-content: flex-start;
    }

    html body.pdp-modern-page .pdp-semantic-lower-content:has(> .pdp-follow) > .pdp-section-nav .pdp-section-nav__inner > a {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 0 var(--bj-space-2, 16px) !important;
        font-size: var(--bj-type-nav, 16px) !important;
        gap: 6px;
    }

    html body.pdp-modern-page .pdp-semantic-lower-content:has(> .pdp-follow) > .pdp-section-nav .pdp-section-nav__count {
        display: inline;
        color: var(--bj-muted, #66635e);
        font-weight: 400;
        font-variant-numeric: tabular-nums;
    }
}

/* 좁은 PC·폰: 오른쪽 자리는 없다 */
@media (max-width: 1099px) {
    .pdp-follow__aside {
        display: none;
    }
}

/*
 * (11-18 대표님 직접 «글씨 뽁짝뽁짝하게 되어 있는 거 디자인 정리») 따라오는 칸(328) 안 숨 — 위 첫 화면 구매 칸과 같은 결.
 *   첫 화면 칸은 왼쪽 이름표 칸(수량·구성·크기·종이·포함·사은품…)이 묶음을 갈라 주지만, 좁은 칸엔 이름표가 없어 묶음이 8px 간격으로 붙어 한 덩어리로 보였다.
 *   글 크기·색·부품 모양은 그대로 두고 «묶음 사이»만 연다: 머리 ↔ 수량 24 · 수량 ↔ 구성 ↔ 크기·종이 16 · 포함 목록 위 24(선 없음 · 첫 화면처럼) · 사은품 ↔ 추가 구성품 16 · 총액 위 16 · 제작 기간 안내 위 8 아래 16.
 *   글 크기·굵기는 첫 화면 칸과 같은 «글 단계»(card/css/product-detail-buy-calm.css) 그대로 — 여기서 따로 정하지 않는다.
 */
@media (min-width: 1100px) {
    html body.pdp-modern-page .pdp-follow__head {
        margin-bottom: calc(var(--bj-space-2, 16px) + var(--bj-space-1, 8px));
    }

    /* (11-18) 칸 안 묶음 사이(수량·구성·크기·종이·포함·사은품·추가 구성품·총액·제작 기간 안내)는 card/css/product-detail-buy-calm.css «pdp-follow-rhythm» 한 곳(#41719·#41733 · 16 하나)으로 옮겼다 —
       같은 자리를 두 파일이 정하지 않게 여기서는 걷었다. 여기엔 그쪽에 없는 칸 머리 아래 간격만 남긴다. */
}

/*
 * (11-18 지킴이 3cad269a 흠 11 · pb177 1440) 따라오는 칸 안 작은 흠 둘 — 위 첫 화면 칸은 그대로.
 *   ① 사은품 풀이 «사은품 · 식전 영상 등 5종 중 선택»이 말줄임(…)으로 잘렸다 — 좁은 칸(328)엔 왼쪽 이름표가 없어 풀이 앞에 «사은품 · »가 붙어 길다.
 *      첫 화면 칸처럼 끝까지 보이게 줄바꿈을 허락한다(두 줄까지 · 글 크기·색은 그대로).
 *   ② 왼쪽 줄이 둘이었다 — «크기·종이»만 셀렉트 안 글 자리(칸 끝 + 16)에 들여져 있고, 포함 목록·총 주문금액·제작 기간 등 칸 밖 글은 칸 끝에서 시작.
 *      칸 밖 글은 칸 끝 한 줄로(wedding-fullset.css 의 따라오는 칸 «0 16px» 를 여기서만 0 으로).
 */
@media (min-width: 1100px) {
    /* ① 사은품 풀이는 card/css/product-detail-buy-calm.css «pdp-follow-rhythm»(#41719 · 글 칸을 넓혀 한 줄)으로 옮겼다 — 여기서 걷음(두 곳이 같은 자리를 정하지 않게). */
    html body.pdp-modern-page .pdp-follow__panel #productDetailOptions#productDetailOptions .pdp-offer-box .pdp-one .pdp-one__state .pdp-one__setpaper:not([hidden]) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/*
 * (2026-11-18 대표님 직접 JEINA051 «브라이트 포트레이트하고 썸네일 부분이 너무 위로 바짝 · 우측 패널 좀 복잡하게 보인다 · 짱짱해야 된다» · 11f000c3)
 *   ① 칸 머리가 화면 위(탭 줄 높이)에 바로 붙었다 — 칸 위 안쪽 여백 24(space-3 의 3/4 = space-2 + space-1) · 머리가 왼쪽 탭 글줄과 같은 높이에 온다.
 *   ② 사은품 줄 위 선이 사은품 상자 자기 테두리 바로 위에 겹쳐 두 줄로 보였다 — 줄 위 선을 뺀다(상자 테두리 하나 · 간격 16 은 그대로).
 *   ③ 주문 단추(장바구니·무료샘플·내 청첩장 만들기) 둥글기 6 → 고르는 칸과 같은 8(--bj-control-radius).
 *   대표님이 정한 것(고르는 칸 바탕 #fdfdfc · 테두리 #ece9e6 · 포함 아이콘 줄 · 사은품 · 추가 구성품)과 글·값·동작은 그대로. 따라오는 칸(1100 이상)만.
 */
@media (min-width: 1100px) {
    html body.pdp-modern-page .pdp-follow__panel {
        padding-top: calc(var(--bj-space-2, 16px) + var(--bj-space-1, 8px));
    }
    /* 봉투 줄이 있으면(#41893 · 봉투 li 가 사은품 위) 선은 봉투 li 위에 온다 — 같은 까닭(상자 줄 위 선 겹침)으로 함께 뺀다(e4c5d495 확인) */
    html body.pdp-modern-page .pdp-follow__panel #productDetailOptions#productDetailOptions#productDetailOptions#productDetailOptions .pdp-one__state > .pdp-one__items--plain > :is(.pdp-one__item--gift, .pdp-one__item--envelope) {
        border-top: 0 !important;
    }
    html body.pdp-modern-page .pdp-follow__panel .pdp-purchase-actions .pdp-purchase-action {
        border-radius: var(--bj-control-radius, 8px) !important;
    }
}

/* (2026-11-18 지킴이 대리 판정 #41899 (가) · 대표님 «짱짱») 구성 두 칸(세트 · 카드만 셀프) 높이 69 → 다른 고르는 칸과 같은 48.
   칸 폭 156 에 이름(73)·값(59~70)을 한 줄로 넣으면 넘쳐 꺾였다(실측 164) → 두 칸을 위 «모서리»·«수량» 칸처럼 칸 폭 전체(320) 줄로 세로로 놓고
   칸 안은 이름 왼쪽 · 값 오른쪽 한 줄(칸 안 왼쪽 여백 16 = 셀렉트 이름표와 같은 자리). 칸 사이 8 = 위 줄들 사이와 같은 값.
   글 크기·굵기·색·값·고른 칸 표시(검은 테두리)는 그대로 · 따라오는 칸(1100 이상)만. */
@media (min-width: 1100px) {
    html body.pdp-modern-page .pdp-follow__panel #productDetailOptions#productDetailOptions#productDetailOptions#productDetailOptions .pdp-one .pdp-one__tog {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: var(--bj-space-1, 8px) !important;
    }
    html body.pdp-modern-page .pdp-follow__panel #productDetailOptions#productDetailOptions#productDetailOptions#productDetailOptions .pdp-one .pdp-one__tog .pdp-one__tog-item {
        width: 100% !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        column-gap: var(--bj-space-1, 8px) !important;
        min-height: var(--bj-control-height, 48px) !important;
        height: var(--bj-control-height, 48px) !important;
        padding: 0 var(--bj-space-2, 16px) !important;
    }
    html body.pdp-modern-page .pdp-follow__panel #productDetailOptions#productDetailOptions#productDetailOptions#productDetailOptions .pdp-one .pdp-one__tog .pdp-one__tog-item > * {
        margin: 0 !important;
        white-space: nowrap !important;
    }
}

/* (2026-11-18 대표님 «모바일 청첩장 5개, 1개 영구 보관을 줄여서 어떻게 넣을 수 있을까?» · 11f000c3) 풀세트 «포함» 아이콘 줄의 모바일 글을
   «모바일 5개 · 영구 1개»로 줄였다(common/wedding_fullset_presentation.php). 본 칸·폰은 한 줄에 들어가지만 따라오는 칸 한 칸(152)은
   아이콘 20 + 사이 8 + 글 133 으로 9 넘친다 — 이 칸에서만 두 덩이(.pdp-one__chunk) 사이에서 꺾어 «모바일 5개» / «영구 1개» 두 줄(줄 머리 «·»는 .pdp-one__chunks 가 가림 · 김 부장 #41935 판정). */
html body.pdp-modern-page .pdp-follow__slot #productDetailOptions .pdp-one__items--plain > .pdp-one__item[data-one-item="mobile"] > .pdp-one__name {
    min-width: 0;
    white-space: normal;
    word-break: keep-all;
}

/* (2026-11-18 c923c627 · pb048 1440×768) 따라오는 칸에 붙어 있는 동안 «종이 샘플 N종 담기» 상자는 주문 덩이 밖(칸 안 스크롤 끝 · 총액 줄 위)으로 옮겨진다
   (product-detail-follow-buy.js movePaperPack). 글 크기 규칙(product-purchase-actions.css 301~304)이 «.pdp-purchase-actions 안»에 걸려 있어
   옮긴 자리에서도 같은 값을 다시 적는다(11-18 지킴이 흠 #27: PC 는 위 구매 칸에서도 옮기므로 따라오는 칸 밖에서도 걸리게 범위를 넓힘) — 값·모양은 그대로(제목 15/600 · 종이 14 · 덧말 13 · 단추 15/600). 위 덩이와 사이 16. */
html body.pdp-modern-page .pdp-follow__paper-pack { margin: var(--bj-space-2, 16px) 0 0; }
html body.pdp-modern-page .pdp-follow__paper-pack .pdp-purchase-actions__paper-pack-title { font-size: 15px !important; font-weight: 600 !important; line-height: 1.5 !important; }
html body.pdp-modern-page .pdp-follow__paper-pack .pdp-purchase-actions__paper-pack-papers { font-size: 14px !important; font-weight: 400 !important; line-height: 1.5 !important; }
html body.pdp-modern-page .pdp-follow__paper-pack .pdp-purchase-actions__paper-pack-real { font-size: 13px !important; font-weight: 400 !important; line-height: 1.5 !important; }
html body.pdp-modern-page .pdp-follow__paper-pack .pdp-purchase-actions__paper-pack-button { font-size: 15px !important; font-weight: 600 !important; line-height: 1.2 !important; }

/* (2026-11-18 대표님 직접 JEINA831 «이렇게 스크롤 나오는 문제도 해결해야 돼») 따라오는 칸 오른쪽 회색 스크롤 막대를 숨긴다 — 칸 안 스크롤은 그대로(휠·끌기·키보드).
   흔한 높이(768·800·900·1080)에서 칸 내용이 140~460 넘쳐(디자인마다 · 고르는 줄·포함·봉투·사은품·추가 구성품) 간격만으로는 못 맞춘다(11-18 실측).
   «아래에 더 있음»은 막대 대신 바닥 덩이 위 흐림 띠(data-pdp-follow-more · 다음 상자 윗선이 비침)가 알린다. 총액·«내 청첩장 만들기»는 그대로 늘 보임. */
@media (min-width: 1100px) {
    html body.pdp-modern-page .pdp-follow__panel {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    html body.pdp-modern-page .pdp-follow__panel::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

/* (2026-11-18 대표님 직접 JEINA831 «스크롤 나오는 문제» · 지킴이 정정) 따라오는 칸 안 스크롤 없앰 — 스크립트가 html.pdp-follow-flow 를 켤 때만.
   칸 = 높이 제한 없는 보통 상자 · 칸 자리(aside)는 «바닥 맞춤»으로 붙음(top = --pdp-follow-top · 스크립트가 «화면 높이 − 16 − 칸 높이»(0 이하)로 잼).
   총액 줄(#productSpecArea)·단추 덩이(.pdp-one__stick)는 종전 sticky(bottom) 그대로 — 칸이 스크롤 상자가 아니라 화면 바닥에 붙어 늘 보인다. */
@media (min-width: 1100px) {
    html.pdp-follow-flow :is(body.pdp-modern-page, .pdp-follow--host) .pdp-follow__aside {
        top: var(--pdp-follow-top, 0px);
    }
    html.pdp-follow-flow :is(body.pdp-modern-page, .pdp-follow--host) .pdp-follow__panel {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* (2026-11-18 4e96 화면 폭 흠 W4 · 11f000c3) 따라오는 칸 한 칸(156)에선 «라운드 +5,000원»(아이콘 22 + 사이 6 + 이름 + 값)이 꽉 차 글이 오른쪽 선에 ≈4~8 로 붙었다.
   이 칸에서만 형태·모서리 단추 아이콘 18 · 사이 4 로 줄여 안쪽 여백을 다른 단추처럼 넉넉히(위 구매 칸·폰은 그대로). */
html body.pdp-modern-page .pdp-follow__panel #productDetailOptions .pdp-offer-box .pdp-one .pdp-one__shape .pdp-one__pill-item { gap: 4px !important; }
html body.pdp-modern-page .pdp-follow__panel #productDetailOptions#productDetailOptions .pdp-offer-box .pdp-one .pdp-one__shape .pdp-one__pill-item .pdp-one__form-icon { width: 18px !important; height: 18px !important; }
html body.pdp-modern-page .pdp-follow__panel #productDetailOptions#productDetailOptions .pdp-offer-box .pdp-one .pdp-one__shape .pdp-one__pill--corner .pdp-one__pill-item > em { margin-left: 0 !important; }

/* (2026-11-19 11f000c3 «붙어 따라올 때 튀는 데» · ffbd8e2e) 따라오는 칸이 아래에서 올라오는 동안(칸 머리가 화면 아래쪽 · 총액 줄이 아직 화면 밖) «총 주문금액» 붙은 줄(.pdp-one__stickline)이
   단추 덩이 «안»에 들어와 덩이 높이 128 → 170(+ 위 여백 8)이 됐다가 다시 128 — 칸 높이가 42 늘었다 줄며 붙는 위치(바닥 맞춤)가 튀었다(pb177·pb831 1280·1440 같음).
   첫 화면 칸은 같은 까닭으로 이 줄을 덩이 위 바깥(bottom:100%)에 겹쳐 그린다(product-detail-buy-calm.css L3) — 그 고침이 «따라오는 칸은 이 줄을 안 씀»이라 뺐는데 실제로는 이 구간에서 보인다.
   같은 꼴을 따라오는 칸에도: 줄은 덩이 위 바깥에 겹쳐 · 덩이 위 여백 0 · 흐림 띠는 줄 위로. 칸·덩이 높이가 늘 같다(실측 128 · 1126/1244 고정). */
@media (min-width: 1100px) {
    html body.pdp-modern-page.pdp-one-on .pdp-follow__panel .pdp-purchase-actions.pdp-one__stick:has(> .pdp-one__stickline:not([hidden])):not(#_):not(#_):not(#_):not(#_):not(#_) {
        padding-top: 0 !important;
    }
    html body.pdp-modern-page.pdp-one-on .pdp-follow__panel .pdp-purchase-actions.pdp-one__stick:has(> .pdp-one__stickline:not([hidden])):not(#_):not(#_):not(#_):not(#_):not(#_)::before {
        content: none !important;
    }
    html body.pdp-modern-page .pdp-follow__panel .pdp-purchase-actions.pdp-one__stick > .pdp-one__stickline:not([hidden]):not(#_):not(#_):not(#_):not(#_):not(#_) {
        position: absolute !important; right: 0; bottom: 100%; left: 0; z-index: 1;
        margin: 0 !important; padding: 4px 0 4px; background: #fff;
    }
    html body.pdp-modern-page .pdp-follow__panel .pdp-purchase-actions.pdp-one__stick > .pdp-one__stickline:not([hidden])::before {
        content: ''; position: absolute; right: 0; bottom: 100%; left: 0;
        height: max(32px, var(--pdp-stick-fade, 32px));
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 13px); pointer-events: none;
    }
}
