.pdp-purchase-actions,
.pdp-purchase-actions * {
    box-sizing: border-box;
}

.pdp-purchase-actions {
    --pdp-ink: var(--pdp-color-ink, #17232f);
    --pdp-muted: var(--pdp-color-muted, #667085);
    --pdp-line: var(--pdp-color-line, #e5e7eb);
    --pdp-control: var(--pdp-color-control, #938d86);
    --pdp-control-hover: var(--pdp-color-control-hover, #726e69);
    --pdp-soft: var(--pdp-color-soft, #f7f7f6);
    --pdp-accent: var(--pdp-color-accent, #745a7a);
    --pdp-secondary-line: var(--pdp-color-line-strong, #c9c5c0);
    --pdp-secondary-hover: #f7f7f6;
    --pdp-secondary-selected-line: var(--pdp-color-control, #938d86);
    --pdp-secondary-selected-bg: #fff;
    width: 100%;
    color: var(--pdp-ink);
    font-family: inherit;
}

.pdp-purchase-actions__grid {
    display: grid;
    grid-template-columns: 52px repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.pdp-modern-page .pdp-purchase-actions__grid {
    grid-template-columns: 52px repeat(2, minmax(0, 1fr)) !important;
}

.pdp-purchase-action {
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--pdp-control);
    border-radius: var(--pdp-radius-control, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #fff;
    color: var(--pdp-ink);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
    -webkit-tap-highlight-color: transparent;
}

.pdp-purchase-action.pdp-purchase-action--secondary,
body.pdp-modern-page .pdp-purchase-actions .pdp-purchase-action.pdp-purchase-action--secondary {
    border-color: var(--pdp-secondary-line);
    background: #fff;
    color: var(--pdp-ink);
    box-shadow: none;
}

.pdp-purchase-action:hover:not(:disabled),
body.pdp-modern-page .pdp-purchase-actions .pdp-purchase-action.pdp-purchase-action--secondary:hover:not(:disabled) {
    border-color: var(--pdp-control-hover);
    background: var(--pdp-secondary-hover);
}

.pdp-purchase-action:focus-visible,
.pdp-order-method-dialog button:focus-visible,
.pdp-order-method-choice input:focus-visible + .pdp-order-method-choice__go,
.pdp-order-method-choice input:focus-visible + .pdp-order-method-choice__visual,
.pdp-order-method-express input:focus-visible ~ .pdp-order-method-express__check {
    outline: 3px solid var(--pdp-color-focus, rgba(116, 90, 122, .24));
    outline-offset: 2px;
}

.pdp-purchase-action--primary {
    border-color: var(--pdp-ink);
    background: var(--pdp-ink);
    color: #fff;
}

.pdp-purchase-action--primary .pdp-purchase-action__label {
    color: #fff;
}

.pdp-purchase-action--primary:hover:not(:disabled) {
    border-color: #263846;
    background: #263846;
}

.pdp-purchase-action--primary:active:not(:disabled) {
    border-color: #101820;
    background: #101820;
}

.pdp-purchase-action:disabled {
    cursor: not-allowed;
    opacity: .46;
    transform: none;
}

.pdp-purchase-action[data-pdp-sample-state="selected"],
body.pdp-modern-page .pdp-purchase-actions .pdp-purchase-action[data-pdp-sample-state="selected"] {
    border-color: var(--pdp-secondary-selected-line);
    background: var(--pdp-secondary-selected-bg);
    color: var(--pdp-ink);
    box-shadow: none;
    cursor: pointer;
    opacity: 1;
}

.pdp-purchase-action__icon,
.pdp-purchase-action__arrow {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pdp-purchase-action__arrow {
    width: 16px;
    height: 16px;
}

.pdp-purchase-action__label {
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: nowrap;
}

.pdp-purchase-actions__grid [data-pdp-action="cart"] {
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
}

.pdp-purchase-actions__grid [data-pdp-action="cart"] .pdp-purchase-action__icon {
    width: 20px;
    height: 20px;
}

.pdp-purchase-actions__grid [data-pdp-action="cart"] .pdp-purchase-action__label,
.pdp-purchase-dock__utility[data-pdp-action="cart"] .pdp-purchase-action__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.pdp-purchase-action__icon--sample-selected {
    display: none;
}

.pdp-purchase-action[data-pdp-sample-state="selected"] .pdp-purchase-action__icon--sample-default {
    display: block;
}

.pdp-purchase-action[data-pdp-sample-state="selected"] .pdp-purchase-action__icon--sample-selected {
    display: none;
}

.pdp-purchase-actions__feedback {
    margin: 8px 2px 0;
    color: var(--pdp-muted);
    font-size: 12px;
    line-height: 1.5;
}

.pdp-purchase-actions__feedback[data-tone="error"] {
    color: #a14444;
}

/* 샘플이 멈춘 단종 예정 카드 — 까닭 한 줄(명세 §5) */
.pdp-purchase-actions__sample-closed {
    margin: 8px 2px 0;
    color: #7d653b;
    font-size: 12px;
    line-height: 1.5;
}

.pdp-purchase-actions__cart-adapter {
    display: none !important;
}

[data-pdp-footer-sentinel] {
    display: block;
    width: 100%;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
}

.pdp-purchase-dock[hidden] {
    display: none !important;
}

.pdp-purchase-dock {
    position: fixed;
    z-index: 10020;
    right: 0;
    bottom: var(--pdp-environment-banner-inset, 0px);
    left: 0;
    width: 100%;
    border-top: 1px solid #e7e9eb;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--pdp-shadow-dock, 0 -8px 28px rgba(23, 35, 47, .08));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: none;
}

.pdp-purchase-dock__rail {
    width: min(1000px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 372px;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: auto;
    animation: pdp-purchase-dock-in .18s ease-out;
}

@keyframes pdp-purchase-dock-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pdp-purchase-dock__product {
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 22px;
}

.pdp-purchase-dock__identity {
    width: max-content;
    max-width: 240px;
    min-width: 0;
    margin: 0;
    flex: 0 1 auto;
    display: grid;
    gap: 3px;
}

.pdp-purchase-dock__identity strong {
    min-width: 0;
    overflow: hidden;
    color: var(--pdp-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdp-purchase-dock__identity > span {
    overflow: hidden;
    color: var(--pdp-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdp-purchase-dock__product-meta {
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pdp-ink);
    white-space: nowrap;
}

.pdp-purchase-dock__product-meta > span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.pdp-purchase-dock__product-meta > i {
    width: 1px;
    height: 14px;
    background: var(--pdp-line);
}

.pdp-purchase-dock__product-meta > strong {
    color: var(--pdp-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.025em;
}

.pdp-purchase-dock__order {
    width: auto;
    min-height: 52px;
    min-width: 0;
}

.pdp-purchase-dock__actions {
    width: 372px;
    display: grid;
    grid-template-columns: 52px repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
}

.pdp-purchase-dock__utility {
    width: auto;
    min-width: 0;
    min-height: 52px;
}

.pdp-purchase-dock__utility[data-pdp-action="cart"] {
    width: 52px;
    padding: 0;
}

.pdp-purchase-dock__order-summary {
    display: none;
}

html.pdp-purchase-dock-visible,
body.pdp-purchase-dock-visible {
    scroll-padding-bottom: 88px;
}

body.pdp-purchase-dock-visible {
    padding-bottom: 88px !important;
}

body.pdp-purchase-dock-visible :where(a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])) {
    scroll-margin-bottom: 88px;
}

.pdp-order-method-dialog[hidden],
.pdp-order-method-express[hidden] {
    display: none !important;
}

.pdp-order-method-dialog {
    position: fixed;
    z-index: 10040;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(12, 20, 27, .52);
}

.pdp-order-method-dialog:focus {
    outline: none;
}

.pdp-order-method-dialog__sheet {
    width: 100%;
    max-width: 480px;
    width: min(480px, 100%);
    max-height: calc(100vh - 48px);
    max-height: min(760px, calc(100vh - 48px));
    max-height: min(760px, calc(100dvh - 48px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--pdp-radius-modal, 18px);
    background: #fff;
    box-shadow: 0 24px 72px rgba(13, 25, 35, .2);
    animation: pdp-order-dialog-in .2s ease-out;
}

@keyframes pdp-order-dialog-in {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pdp-order-method-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 16px;
}

.pdp-order-method-dialog__title {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
}

.pdp-order-method-dialog__eyebrow {
    display: none;
}

.pdp-order-method-dialog h2 {
    margin: 0;
    color: var(--pdp-ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.035em;
}

.pdp-order-method-dialog__close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pdp-soft);
    color: #39434c;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

.pdp-order-method-dialog__close:hover {
    background: #edf0f2;
    color: var(--pdp-ink);
}

.pdp-order-method-dialog__close svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.pdp-order-method-dialog__body {
    min-height: 0;
    /* 레거시 전역 div{margin:0 auto}(css.css:14)가 걸려 있어, 본문이 짧아지면
       shrink-to-fit + auto 마진으로 폭이 줄고 헤더와 좌측선이 어긋난다. */
    margin-inline: 0;
    padding: 0 24px 24px;
    overflow: auto;
    overscroll-behavior: contain;
}

.pdp-order-method-dialog__choices {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 10px;
}

.pdp-order-method-choice {
    position: relative;
    min-height: 0;
    padding: 12px 40px 12px 14px;
    border: 1px solid #e5e2de;
    border-radius: var(--pdp-radius-card, 12px);
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    background: #fbfbfa;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.pdp-order-method-choice:hover {
    border-color: #c9c4bd;
    background: #fff;
}

.pdp-order-method-choice[data-selected="true"] {
    border-color: var(--pdp-ink);
    background: #fff;
    box-shadow: none;
}

.pdp-order-method-choice[data-disabled="true"] {
    cursor: not-allowed;
    opacity: .52;
}

.pdp-order-method-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pdp-order-method-choice__go {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    color: var(--pdp-muted, #6b7280);
    transition: transform .16s ease, color .16s ease;
}

.pdp-order-method-choice__go svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pdp-order-method-choice:hover .pdp-order-method-choice__go {
    transform: translateX(2px);
    color: var(--pdp-ink);
}


.pdp-order-method-choice__copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.pdp-order-method-choice__visual {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #52645c;
}

.pdp-order-method-choice__visual--designer {
    color: var(--pdp-accent, #72566f);
}

.pdp-order-method-choice__visual svg {
    width: 48px;
    height: 48px;
    display: block;
}

.pdp-order-method-choice__title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.pdp-order-method-choice__copy strong {
    color: var(--pdp-ink);
    font-size: 16px;
    line-height: 1.35;
}

.pdp-order-method-choice__description,
.pdp-order-method-choice__copy em {
    color: var(--pdp-muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
}

.pdp-order-method-choice__copy em {
    color: #a04c4c;
}

.pdp-order-method-choice__tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--pdp-soft, #f1eef3);
    color: var(--pdp-accent, #72566f);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

/* ─── 카드형태 선택 (2026-07-22) — 엽서형/2단형 금액 비교 세그먼트 ─── */
.pdp-order-method-shape {
    margin: 0 0 16px;
}

.pdp-order-method-shape__head {
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.pdp-order-method-shape__title {
    margin: 0;
    color: var(--pdp-ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.02em;
}

.pdp-order-method-shape__meta {
    color: var(--pdp-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.01em;
}

.pdp-order-method-shape[data-pdp-shape-pending="true"] .pdp-order-method-shape__meta {
    color: var(--pdp-accent);
    font-weight: 700;
}

.pdp-order-method-shape__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pdp-order-shape-option {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid var(--pdp-control);
    border-radius: var(--pdp-radius-card, 12px);
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fff;
    color: var(--pdp-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
    -webkit-tap-highlight-color: transparent;
}

.pdp-order-shape-option:hover {
    border-color: var(--pdp-control-hover);
}

.pdp-order-shape-option:focus-visible {
    outline: 3px solid var(--pdp-color-focus, rgba(116, 90, 122, .24));
    outline-offset: 2px;
}

.pdp-order-shape-option[aria-checked="true"] {
    border-color: var(--pdp-ink);
    background: #f8f8f7;
}

.pdp-order-shape-option__icon {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--pdp-soft);
    color: #5a6672;
}

.pdp-order-shape-option[aria-checked="true"] .pdp-order-shape-option__icon {
    background: #eceeed;
    color: var(--pdp-ink);
}

.pdp-order-shape-option__icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pdp-order-shape-option__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.pdp-order-shape-option__name {
    overflow: hidden;
    color: var(--pdp-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdp-order-shape-option__price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
    color: var(--pdp-muted);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.pdp-order-shape-option[aria-checked="true"] .pdp-order-shape-option__price {
    color: #39434c;
}

.pdp-order-shape-option__delta {
    color: var(--pdp-accent);
    font-size: 11.5px;
    font-weight: 700;
}

/* ─── 빠른 제작 신청 (2026-07-22 재설계) — 모달 공통 카드 언어로 통일 ─── */
.pdp-order-method-express {
    position: relative;
    margin-top: 10px;
    padding: 14px 16px;
    border: 1px solid var(--pdp-control);
    border-radius: var(--pdp-radius-card, 12px);
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease;
    animation: pdp-order-express-in .18s ease-out;
}

@keyframes pdp-order-express-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.pdp-order-method-express:hover {
    border-color: var(--pdp-control-hover);
}

.pdp-order-method-express input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pdp-order-method-express__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pdp-soft);
    color: #5a6672;
    transition: background-color .16s ease, color .16s ease;
}

.pdp-order-method-express__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linejoin: round;
}

.pdp-order-method-express__copy {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 3px;
}

.pdp-order-method-express__title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pdp-order-method-express__title strong {
    color: var(--pdp-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.02em;
}

.pdp-order-method-express__title em {
    padding: 1px 7px;
    border-radius: 999px;
    background: #f1eef3;
    color: var(--pdp-accent);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
}

.pdp-order-method-express__copy small {
    color: var(--pdp-muted);
    font-size: 12px;
    line-height: 1.5;
}

.pdp-order-method-express__check {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border: 1.5px solid var(--pdp-control);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: transparent;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.pdp-order-method-express__check svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pdp-order-method-express input:checked ~ .pdp-order-method-express__check {
    border-color: var(--pdp-ink);
    background: var(--pdp-ink);
    color: #fff;
}

/* :has() 미지원 브라우저 호환 — JS 가 label 에 data-checked 를 미러링한다 */
.pdp-order-method-express[data-checked="true"] {
    border-color: var(--pdp-ink);
    background: #f8f8f7;
}

.pdp-order-method-express[data-checked="true"] .pdp-order-method-express__icon {
    background: #eceeed;
    color: var(--pdp-ink);
}

.pdp-order-method-dialog__note {
    margin: 2px 0 0;
    color: var(--pdp-muted);
    font-size: 12px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pdp-order-method-dialog__note::before {
    content: '✓';
    color: #65766d;
    font-size: 12px;
    font-weight: 800;
}

.pdp-order-method-dialog__note.is-fullset-pricing {
    justify-content: flex-start;
    word-break: keep-all;
}

.pdp-order-method-dialog__note.is-fullset-pricing::before {
    content: none;
}

.pdp-order-method-dialog__note.is-fullset-charge {
    color: var(--pdp-ink);
    font-weight: 600;
}

.pdp-order-method-dialog__footer {
    padding: 0 24px 24px;
    border-top: 0;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 9px;
    background: #fff;
}

.pdp-order-method-dialog__footer button {
    min-height: 50px;
    margin: 0;
    border-radius: var(--pdp-radius-control, 8px);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.pdp-order-method-dialog__cancel {
    border: 0;
    background: #fff;
    color: #48535d;
}

.pdp-order-method-dialog__continue {
    border: 1px solid var(--pdp-ink);
    background: var(--pdp-ink);
    color: #fff;
}

.pdp-order-method-dialog__continue:disabled {
    border-color: #d8dde1;
    background: #e6e9eb;
    color: #969ea5;
    cursor: not-allowed;
}

.pdp-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.pdp-order-method-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    body.pdp-purchase-dock-enabled .pdp-purchase-actions {
        margin-top: 0 !important;
    }

    body.pdp-purchase-dock-enabled .pdp-purchase-actions > .pdp-purchase-actions__grid {
        display: none !important;
    }

    html.pdp-purchase-dock-visible,
    body.pdp-purchase-dock-visible {
        scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom) + var(--pdp-environment-banner-inset, 0px));
    }

    body.pdp-purchase-dock-visible {
        padding-bottom: calc(72px + env(safe-area-inset-bottom) + var(--pdp-environment-banner-inset, 0px)) !important;
    }

    body.pdp-purchase-dock-visible :where(a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])) {
        scroll-margin-bottom: calc(88px + env(safe-area-inset-bottom) + var(--pdp-environment-banner-inset, 0px));
    }

    body.pdp-purchase-dock-visible .fixedBottomMenuWrapper,
    body.pdp-purchase-dock-visible #product_detail_bottom_menu,
    body.pdp-purchase-dock-visible .bottomMenuListBox {
        display: none !important;
    }

    body.pdp-purchase-dock-visible #ch-plugin-entry,
    body.pdp-purchase-dock-visible [id^="ch-plugin-launcher"],
    body.pdp-purchase-dock-visible .ch-plugin-launcher,
    body.pdp-purchase-dock-visible [data-ch-testid="launcher"] {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .pdp-purchase-dock {
        bottom: var(--pdp-environment-banner-inset, 0px);
    }

    .pdp-purchase-dock__rail {
        width: 100%;
        height: calc(72px + env(safe-area-inset-bottom));
        min-height: 0;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 0;
        gap: 8px;
        background: rgba(255, 255, 255, .98);
        box-shadow: none;
    }

    .pdp-purchase-dock__product {
        display: none;
    }

    .pdp-purchase-dock__summary {
        display: none;
    }

    .pdp-purchase-dock__metric {
        min-width: 0;
        padding: 0 8px;
        border-left: 0;
    }

    .pdp-purchase-dock__metric--quantity {
        display: none;
    }

    .pdp-purchase-dock__metric--total {
        min-width: 92px;
        flex: 1 1 auto;
        border-left: 0;
    }

    .pdp-purchase-dock__product span,
    .pdp-purchase-dock__metric dt {
        font-size: 10px;
    }

    .pdp-purchase-dock__metric dd {
        overflow: hidden;
        font-size: 13px;
        text-overflow: ellipsis;
    }

    .pdp-purchase-dock .pdp-purchase-dock__order {
        --pdp-type-purchase-action-size: 16px;
        --pdp-type-purchase-action-line: 1.25;
        width: 100%;
        height: 56px;
        min-height: 56px;
        min-width: 0;
        flex: 1 1 auto;
        padding: 0 6px;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 1px;
    }

    .pdp-purchase-dock__actions {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: 48px 96px minmax(0, 1fr);
        gap: 8px;
    }

    .pdp-purchase-dock__utility {
        width: 48px;
        min-width: 48px;
        height: 56px;
        min-height: 56px;
        padding: 0;
        border-radius: 8px;
    }

    .pdp-purchase-dock__utility[data-pdp-action="sample"] {
        width: auto;
        min-width: 0;
    }

    .pdp-purchase-dock__utility[data-pdp-action="cart"] {
        width: 48px;
        min-width: 48px;
        height: 56px;
        min-height: 56px;
    }

    .pdp-purchase-dock__utility[data-pdp-action="cart"] .pdp-purchase-action__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .pdp-purchase-dock__order-summary {
        display: flex;
        max-width: 100%;
        align-items: center;
        justify-content: center;
        gap: 3px;
        overflow: hidden;
        color: #fff;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: -.025em;
        line-height: 14px;
        white-space: nowrap;
    }

    body.pdp-modern-page .pdp-purchase-dock .pdp-purchase-dock__order-summary,
    body.pdp-modern-page .pdp-purchase-dock .pdp-purchase-dock__order-summary span {
        font-size: 11px !important;
        font-weight: 500 !important;
        line-height: 14px !important;
    }

    .pdp-purchase-dock__order-summary .pdp-purchase-dock__order-total {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pdp-purchase-dock__order-quantity,
    .pdp-purchase-dock__order-divider {
        display: inline;
    }

    body.pdp-modern-page .pdp-purchase-dock .pdp-purchase-dock__order::after {
        display: none;
    }

    .pdp-purchase-dock__utility[data-pdp-action="sample"] {
        --pdp-type-purchase-action-size: 15px;
        --pdp-type-purchase-action-line: 1.2;
        padding: 0 8px;
    }

    .pdp-purchase-dock__utility[data-pdp-action="sample"] .pdp-purchase-action__icon {
        display: none;
    }

    .pdp-purchase-dock__utility .pdp-purchase-action__icon {
        display: block;
    }

    .pdp-purchase-dock__utility .pdp-purchase-action__icon--sample-selected {
        display: none;
    }

    .pdp-purchase-dock__utility[data-pdp-sample-state="selected"] .pdp-purchase-action__icon--sample-default {
        display: block;
    }

    .pdp-purchase-dock__utility[data-pdp-sample-state="selected"] .pdp-purchase-action__icon--sample-selected {
        display: none;
    }

    .pdp-purchase-actions__grid {
        gap: 8px;
        grid-template-columns: 56px repeat(2, minmax(0, 1fr));
    }

    body.pdp-modern-page .pdp-purchase-actions__grid {
        grid-template-columns: 56px repeat(2, minmax(0, 1fr)) !important;
    }

    .pdp-purchase-action[data-pdp-action="order"] {
        grid-column: 3;
        grid-row: 1;
    }

    .pdp-purchase-action[data-pdp-action="cart"] {
        grid-column: 1;
        grid-row: 1;
    }

    .pdp-purchase-action[data-pdp-action="sample"] {
        grid-column: 2;
        grid-row: 1;
    }

    .pdp-purchase-action {
        min-height: 56px;
        padding: 0 8px;
        gap: 6px;
        flex-wrap: nowrap;
        align-content: center;
        font-size: 16px;
    }

    .pdp-purchase-actions__grid .pdp-purchase-action__icon {
        display: none;
    }

    .pdp-purchase-actions__grid [data-pdp-action="cart"] {
        width: 56px;
        min-width: 56px;
        height: 56px;
        min-height: 56px;
        padding: 0;
    }

    .pdp-purchase-actions__grid [data-pdp-action="cart"] .pdp-purchase-action__icon {
        width: 20px;
        height: 20px;
        display: block;
    }

    .pdp-purchase-actions__grid [data-pdp-action="cart"] .pdp-purchase-action__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .pdp-purchase-actions__grid .pdp-purchase-action[data-pdp-sample-state="selected"] .pdp-purchase-action__icon--sample-selected {
        display: none;
    }

    .pdp-order-method-dialog {
        align-items: flex-end;
        padding: 0;
        background: rgba(12, 20, 27, .5);
    }

    .pdp-order-method-dialog__sheet {
        width: 100%;
        max-width: none;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        border: 0;
        border-radius: var(--pdp-radius-modal, 18px) var(--pdp-radius-modal, 18px) 0 0;
        animation-name: pdp-order-sheet-in;
    }

    @keyframes pdp-order-sheet-in {
        from { opacity: .72; transform: translateY(24px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .pdp-order-method-dialog__sheet::before {
        content: '';
        width: 38px;
        height: 4px;
        flex: 0 0 auto;
        margin: 9px auto 0;
        border-radius: 999px;
        background: #d7dbdf;
    }

    .pdp-order-method-dialog__header {
        padding: 15px 18px 12px;
    }

    .pdp-order-method-dialog h2 {
        font-size: 20px;
    }

    .pdp-order-method-dialog__close {
        width: 44px;
        height: 44px;
        margin-top: -2px;
    }

    .pdp-order-method-dialog__body {
        padding: 0 18px 18px;
    }

    .pdp-order-method-choice {
        min-height: 0;
        padding: 12px 38px 12px 12px;
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 10px;
    }

    .pdp-order-method-choice__visual,
    .pdp-order-method-choice__visual svg {
        width: 46px;
        height: 46px;
    }

    .pdp-order-method-choice__visual {
        border-radius: 0;
    }

    .pdp-order-method-choice__copy {
        gap: 6px;
    }

    .pdp-order-method-choice__tag {
        font-size: 10px;
    }

    .pdp-order-method-shape {
        margin-bottom: 14px;
    }

    .pdp-order-shape-option {
        padding: 12px 12px;
        gap: 9px;
    }

    .pdp-order-shape-option__icon {
        width: 28px;
        height: 28px;
    }

    .pdp-order-shape-option__name {
        font-size: 13.5px;
    }

    .pdp-order-shape-option__price {
        font-size: 12px;
    }

    .pdp-order-method-express {
        padding: 13px 14px;
        gap: 10px;
    }

    .pdp-order-method-dialog__footer {
        grid-template-columns: 86px minmax(0, 1fr);
        padding: 0 18px calc(16px + env(safe-area-inset-bottom));
    }

    .pdp-order-method-dialog__footer button {
        min-height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pdp-purchase-action,
    .pdp-order-method-dialog__sheet,
    .pdp-purchase-dock__rail,
    .pdp-order-method-express,
    .pdp-order-shape-option,
}

/* ─── 전환 로딩 오버레이 — 주문 방식 선택 후 에디터/주문서 이동 중 (2026-07-21) ───
   body 직속으로 마운트되므로 .pdp-purchase-actions 스코프 변수 대신
   전역 --pdp-color-* 훅 + 폴백을 쓴다. */
/* ★★★ (2026-08-01 사장님 지시) **로딩은 하나로 이어져야 한다.**
   사장님: "까만 로딩 빨간 로딩 똑같이 2개 로딩 2번 떠"
   이 막(상세페이지)과 에디터 부팅막(editor/index.php #edBootVeil)이 연달아 뜨는데
   배경·스피너 색·크기·문구가 전부 달라 **한 번의 기다림이 두 번으로 읽혔다**:
       종전 이 막   흰 배경 rgba(255,255,255,.98) · 40px 스피너 진남색 #17232f
                    "에디터를 준비하고 있어요"
       에디터 막    회색 rgb(241,242,245) · 34px 스피너 빨강 #ff5b5f
                    "디자인을 불러오는 중입니다."
   ⇒ **뒤에 오는 것(에디터)에 맞춘다.** 앞을 뒤에 맞춰야 화면이 바뀔 때 아무것도 안 바뀐 것처럼
     보인다(반대로 하면 에디터 쪽을 고쳐야 하는데 그쪽은 부팅 실패 감시와 얽혀 있어 위험하다). */
.pdp-order-transition {
    position: fixed;
    z-index: 10060;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgb(241, 242, 245);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}

.pdp-order-transition[data-visible="true"] {
    opacity: 1;
    pointer-events: auto;
}

.pdp-order-transition__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.pdp-order-transition__spinner {
    /* 에디터 부팅막과 같은 값 — 34px · 3px · #ff5b5f (editor/index.php #edBootVeil) */
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 91, 95, .18);
    border-top-color: #ff5b5f;
    border-radius: 50%;
    animation: pdp-order-transition-spin .8s linear infinite;
}

.pdp-order-transition__title {
    /* 에디터 부팅막의 문구 스타일과 동일 — 굵은 큰 제목이 아니라 같은 한 줄이어야 이어져 보인다 */
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.02em;
}

@keyframes pdp-order-transition-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .pdp-order-transition {
        transition: none;
    }

    .pdp-order-transition__spinner {
        animation-duration: 1.6s;
    }
}

/* ── 빠른 제작은 '무료 편집' 전용 옵션이다 ─────────────────────────────
   버튼형 전환(2026-08-25)으로 방식 카드 클릭이 곧 결정이 되면서,
   이 옵션이 어느 선택지에 속하는지 시각적으로 드러나야 한다.
   그 카드 바로 아래에 들여쓰기로 붙여 소속을 표현한다. */
.pdp-order-method-express {
    margin-top: -1px;              /* 위 카드와 맞닿게 — 별개 선택지로 보이지 않게 */
    margin-left: 22px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
/* 확인 버튼을 없앤 뒤 푸터에는 취소만 남는다. */
/* 삭제한 <footer> 가 홈 인디케이터 여백(env(safe-area-inset-bottom))을 공급하던 유일한 곳이었다.
   본문이 그것을 승계한다. env() 미지원 기기는 0 으로 계산돼 기존과 같다. */
@media (max-width: 768px) {
    .pdp-order-method-dialog__body {
        padding: 0 18px calc(18px + env(safe-area-inset-bottom));
    }
}

/* ── 모달 타이포 위계 복원 ────────────────────────────────────────────────
   이 모달은 #document_middle 안에 있어서 본문용 광역 강제 규칙
   (product-detail-modern.css:8026·8077 의 font-size: var(--pdp-type-*) !important)에
   걸린다. 그 결과 선언한 22/16/13px 이 전부 18px·15px 두 단계로 뭉개져
   모달 제목과 단계 제목이 같아지고, 선택지 제목이 설명과 같은 크기가 됐다.

   오버레이는 본문 타이포 스케일의 대상이 아니므로 모달 스코프에서 자체 위계를 세운다.
   광역 규칙을 고치지 않으므로 다른 화면에는 영향이 없다.
   ───────────────────────────────────────────────────────────────────────── */

/* ① 모달 제목 — 오버레이 최상위 */
body.pdp-modern-page .pdp-order-method-dialog h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

/* ② 단계 제목 — 섹션 라벨. 모달 제목과 확실히 갈린다 */
body.pdp-modern-page .pdp-order-method-dialog .pdp-order-method-shape__title {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

/* ③ 단계 배지·부수 메타 — 메타 정보 */
body.pdp-modern-page .pdp-order-method-dialog :is(.pdp-order-method-step, .pdp-order-method-shape__meta) {
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

/* ④ 선택지 제목 — 실제로 고르는 대상이라 설명보다 뚜렷해야 한다 */
body.pdp-modern-page .pdp-order-method-dialog :is(.pdp-order-method-choice__copy strong, .pdp-order-shape-option__name) {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

/* ⑤ 선택지 설명·가격 — 보조 */
body.pdp-modern-page .pdp-order-method-dialog .pdp-order-method-choice__copy span {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}
body.pdp-modern-page .pdp-order-method-dialog .pdp-order-shape-option__price {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

/* ⑥ 태그·다시 고르기 — 메타·보조 액션 */
body.pdp-modern-page .pdp-order-method-dialog :is(.pdp-order-method-choice__tag, .pdp-order-method-back) {
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.pdp-order-method-dialog__footer--single {
    justify-content: center;
}

/* ── 상세 구매영역의 빠른 제작 ─────────────────────────────────────────
   모달을 열기 전에도 고를 수 있게 주문 버튼 바로 위에 둔다.
   모달 안의 체크와 같은 선택이며 값이 서로 동기화된다. */
.pdp-purchase-express {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border: 1px solid var(--pdp-control);
    border-radius: var(--pdp-radius-card, 12px);
    background: #fff;
    cursor: pointer;
}

.pdp-purchase-express input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pdp-purchase-express__check {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 1.5px solid var(--pdp-control);
    border-radius: 6px;
    background: #fff;
}

.pdp-purchase-express[data-checked="true"] {
    border-color: var(--pdp-ink);
}

.pdp-purchase-express[data-checked="true"] .pdp-purchase-express__check {
    border-color: var(--pdp-ink);
    background: var(--pdp-ink);
}

.pdp-purchase-express__copy {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.pdp-purchase-express__copy strong {
    color: var(--pdp-ink);
    font-size: 14px;
    font-weight: 700;
}

.pdp-purchase-express__cost {
    color: var(--pdp-accent, #745a7a);
    font-size: 13px;
    font-weight: 700;
}

.pdp-purchase-express__day {
    color: var(--pdp-muted, #6b7280);
    font-size: 12px;
}

/* ── 형태 옵션의 라디오 인디케이터 ─────────────────────────────────────
   role=radio 인데 시각 표시가 없어 고르기 전에는 두 카드가 똑같아 보였다.
   빈 원이 보여야 "골라야 하는 것"으로 읽힌다. 편집 방식과 같은 시각 언어다. */
.pdp-order-shape-option__radio {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    box-sizing: border-box;
    border: 1.5px solid var(--pdp-control);
    border-radius: 50%;
    background: #fff;
    transition: border-color .16s ease, border-width .16s ease;
}

.pdp-order-shape-option[aria-checked="true"] .pdp-order-shape-option__radio {
    border-color: var(--pdp-ink);
    border-width: 5px;
}

/* 아직 아무것도 고르지 않았으면 이 섹션을 먼저 봐야 한다는 것을 옅게 알린다. */
.pdp-order-method-shape[data-pdp-shape-pending="true"] .pdp-order-method-shape__title {
    color: var(--pdp-ink);
    font-weight: 700;
}

.pdp-order-method-shape[data-pdp-shape-pending="true"] .pdp-order-shape-option {
    border-color: var(--pdp-control-hover, #b9bec4);
}

/* ── 모달 단계 표시 ────────────────────────────────────────────────────
   형태와 편집 방식은 서로 다른 선택 그룹이라 한 번에 하나씩 보여준다.
   진행 위치를 적어 다음 단계가 있다는 것을 알린다. */
.pdp-order-method-step {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--pdp-soft, #f1eef3);
    color: var(--pdp-muted, #6b7280);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.pdp-order-method-mode__head {
    /* 레거시 전역 div{margin:0 auto}(css.css:14)가 grid item 의 stretch 를 무력화한다.
       좌우 마진을 0 으로 되돌려야 1단계 헤드와 좌측선이 맞는다. */
    margin-inline: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.pdp-order-method-mode__head[hidden] {
    display: none;
}

.pdp-order-method-back {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border: 0;
    background: none;
    color: var(--pdp-muted, #6b7280);
    font: inherit;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
}

.pdp-order-method-back:hover {
    color: var(--pdp-ink);
    text-decoration: underline;
}

.pdp-order-method-back[hidden] {
    display: none;
}

.pdp-order-method-dialog__choices[hidden] {
    display: none;
}
/* Selected/error sample labels must fit the same mobile action grid as the default state. */
@media (max-width: 767px) {
    .pdp-purchase-action[data-pdp-action="sample"] {
        min-width: 0;
        gap: 6px;
        padding-right: 4px;
        padding-left: 4px;
    }
    .pdp-purchase-action[data-pdp-action="sample"] .pdp-purchase-action__label {
        min-width: 0;
        white-space: normal;
        word-break: keep-all;
        line-height: 20px;
        text-align: center;
    }
    .pdp-purchase-action[data-pdp-action="sample"] .pdp-purchase-action__icon {
        flex-shrink: 0;
    }
}
