/* 결제·정책 페이지 공통 스타일.
   인증 페이지(auth.css)의 디자인 언어를 결제 화면으로 확장한다.
   시그니처 장치: 카드 상단 4px 브랜드 블루 바(.auth-card 와 동일), 포인트 블루 #3090d6,
   흰 카드 + 얇은 회색 테두리, 절제된 그림자.
   #279: 앱 화면(app.css)과 같은 규칙으로 바꿨다 — --bl-* 값은 tokens.css 의 --wp-* 를 가리키고,
   카드 상단 4px 바와 그림자는 없앤다(1px 선만). 제목은 Montserrat 대신 상속 서체(Pretendard). */

/* 결제·정책 화면에서만 페이지 바탕을 옅은 회색으로(app.css 의 html:has(.wc-app) 과 같은 방식). */
html:has(.billing-page),
html:has(.billing-doc) { background: var(--wp-page); }

.billing-page,
.billing-doc {
    --bl-brand: var(--wp-primary);
    --bl-brand-deep: var(--wp-primary-strong);
    --bl-brand-tint: var(--wp-primary-wash);
    --bl-brand-wash: var(--wp-primary-tint);
    --bl-ink: var(--wp-ink);
    --bl-ink-strong: var(--wp-ink);
    --bl-muted: var(--wp-muted);
    /* 흐린 보조 글자: tokens.css 에 대응 값이 없다. 흰 바탕 대비가 4.5:1 에 못 미치던
       #94a3b8 대신 한 단계 진한 slate-500 을 쓴다. */
    --bl-faint: var(--wp-muted);
    --bl-line: var(--wp-line);
    --bl-line-soft: var(--wp-line);
    --bl-surface: var(--wp-page);
    --bl-surface-alt: var(--wp-line-soft);
    --bl-danger: #d9534f;
    --bl-danger-wash: #fdf4f4;
    --bl-shadow: none;

    color: var(--bl-ink);
}

.billing-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 6px 0 76px;
}

.billing-page--narrow {
    max-width: 560px;
}

/* ── 페이지 머리말 ── */
.billing-head {
    margin-bottom: 26px;
}

.billing-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bl-ink-strong);
    margin: 0 0 8px;
}

.billing-lead {
    font-size: 15px;
    line-height: 1.6;
    color: var(--bl-muted);
    margin: 0;
    word-break: keep-all;
}

/* ── 상품 카드 ── */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
}

.plan-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid var(--bl-line);
    border-radius: var(--wp-radius-card);
    padding: 22px 20px 20px;
    box-shadow: var(--bl-shadow);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.plan-card:hover {
    border-color: var(--wp-input-line);
}

/* 선택 상태는 색만으로 알리지 않는다 — 상단 바 + 테두리 링 + '선택됨' 텍스트의 삼중 신호.
   #279 에서 상단 바를 없앴으므로 테두리 링 + 바탕색 + '선택됨' 버튼 문구가 신호가 된다. */
.plan-card.is-selected {
    border-color: var(--bl-brand);
    background-color: var(--bl-brand-wash);
    box-shadow: 0 0 0 1px var(--bl-brand);
}

.plan-type {
    align-self: flex-start;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.plan-type--credit {
    background-color: var(--bl-brand-tint);
    color: var(--bl-brand-deep);
}

.plan-type--period {
    background-color: var(--bl-surface-alt);
    color: var(--wp-ink-2);
}

.plan-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--bl-ink-strong);
    margin: 0 0 6px;
    word-break: keep-all;
}

/* 단가 표기가 없는 카드와도 아래 목록의 시작선이 어긋나지 않도록 높이를 맞춘다. */
.plan-price-block {
    min-height: 56px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    line-height: 1.25;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: -0.02em;
    color: var(--bl-ink-strong);
    margin: 0;
}

.plan-price-unit {
    font-size: 15px;
    font-weight: bold;
}

.plan-unit-price {
    font-size: 13px;
    color: var(--bl-faint);
    margin: 4px 0 0;
}

.plan-points {
    list-style: none;
    margin: 16px 0 20px;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--wp-muted);
}

.plan-points li {
    display: flex;
    gap: 7px;
    word-break: keep-all;
}

.plan-points li + li {
    margin-top: 7px;
}

.plan-points li::before {
    content: "✓";
    flex-shrink: 0;
    font-weight: bold;
    color: var(--bl-brand);
}

.plan-points .plan-point-note {
    color: var(--bl-faint);
    font-size: 13px;
}

.plan-points .plan-point-note::before {
    content: "·";
    color: var(--bl-faint);
}

.plan-choose,
.plan-chosen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    min-height: 44px;
    border-radius: var(--wp-radius-control);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.plan-choose {
    border: 1px solid var(--wp-primary-line);
    background-color: #fff;
    color: var(--wp-primary-strong);
    transition: background-color 0.15s;
}

.plan-choose:hover {
    background-color: var(--wp-primary-tint);
    color: var(--wp-primary-strong);
    text-decoration: none;
}

.plan-chosen {
    border: 1px solid var(--bl-brand);
    background-color: var(--bl-brand);
    color: #fff;
}

/* ── 결제 정보 카드 ── */
.billing-order {
    background-color: #fff;
    border: 1px solid var(--bl-line);
    border-radius: var(--wp-radius-card);
    padding: 28px 28px 26px;
    box-shadow: var(--bl-shadow);
}

.billing-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--bl-ink-strong);
    margin: 0 0 14px;
}

.order-summary {
    margin: 0 0 18px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--wp-line-soft);
}

.order-row dt {
    font-size: 14px;
    font-weight: normal;
    color: var(--bl-muted);
    flex-shrink: 0;
}

.order-row dd {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    color: var(--bl-ink-strong);
    text-align: right;
    word-break: keep-all;
}

.order-row--total {
    border-bottom: none;
    padding-bottom: 0;
}

.order-row--total dd {
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--bl-brand-deep);
}

/* ── 안내 상자 ── */
.billing-notice,
.billing-callout {
    background-color: var(--bl-surface);
    border: 1px solid var(--bl-line-soft);
    border-radius: var(--wp-radius-control);
    padding: 15px 17px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--wp-muted);
    word-break: keep-all;
}

.billing-notice strong,
.billing-callout strong {
    color: var(--bl-ink-strong);
}

.billing-notice p,
.billing-callout p {
    margin: 0;
}

.billing-notice ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.billing-notice li + li {
    margin-top: 5px;
}

.billing-notice-more {
    margin-top: 13px;
    font-size: 13px;
    color: var(--bl-faint);
}

.billing-notice a,
.billing-callout a {
    color: var(--bl-brand-deep);
    font-weight: bold;
}

/* ── 버튼 ── */
.billing-actions {
    margin-top: 22px;
}

.billing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: var(--wp-radius-control);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.billing-btn--primary {
    background-color: var(--bl-brand);
    border-color: var(--bl-brand);
    color: #fff;
}

.billing-btn--primary:hover {
    background-color: var(--bl-brand-deep);
    border-color: var(--bl-brand-deep);
    color: #fff;
    text-decoration: none;
}

.billing-btn--secondary {
    background-color: #fff;
    border-color: var(--wp-primary-line);
    color: var(--wp-primary-strong);
}

.billing-btn--secondary:hover {
    background-color: var(--wp-primary-tint);
    color: var(--wp-primary-strong);
    text-decoration: none;
}

.billing-btn--block {
    width: 100%;
}

.billing-btn-hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--bl-faint);
}

/* ── 상품 미선택 상태 ── */
.billing-empty {
    margin: 0;
    padding: 26px 20px;
    border: 1px dashed var(--wp-input-line);
    border-radius: var(--wp-radius-card);
    background-color: var(--bl-surface);
    text-align: center;
    font-size: 14px;
    color: var(--bl-muted);
    word-break: keep-all;
}

/* ── 결제 결과(성공·실패) ── */
.billing-result {
    background-color: #fff;
    border: 1px solid var(--bl-line);
    border-radius: var(--wp-radius-card);
    padding: 44px 40px 40px;
    box-shadow: var(--bl-shadow);
    text-align: center;
}

/* 실패는 상단 바 대신 아이콘 색(아래 .result-icon)과 문구로 알린다. */
.billing-result--fail {
    border-color: var(--bl-line);
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background-color: var(--bl-brand-tint);
    color: var(--bl-brand);
    font-size: 28px;
}

.billing-result--fail .result-icon {
    background-color: var(--bl-danger-wash);
    color: var(--bl-danger);
}

.result-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--bl-ink-strong);
    margin: 0 0 10px;
    word-break: keep-all;
}

.result-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--wp-ink-2);
    margin: 0;
    word-break: keep-all;
}

.result-meta {
    margin: 24px 0 0;
    padding: 16px 18px;
    border-radius: var(--wp-radius-control);
    background-color: var(--bl-surface);
    text-align: left;
}

.result-meta .order-row {
    padding: 7px 0;
    border-bottom: none;
}

.result-code {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--bl-faint);
    word-break: break-all;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 26px;
}

.result-link {
    font-size: 13.5px;
    color: var(--bl-muted);
}

.result-link a {
    color: var(--bl-brand-deep);
    font-weight: bold;
}

/* ── 문서형 페이지(환불정책) ── */
.billing-doc {
    max-width: 760px;
    margin: 0 auto;
    padding: 6px 0 76px;
    line-height: 1.75;
}

.billing-doc-head {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--bl-line-soft);
    margin-bottom: 30px;
}

.billing-doc-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bl-ink-strong);
    margin: 0 0 8px;
}

.billing-doc-lead {
    font-size: 15px;
    color: var(--bl-muted);
    margin: 0;
    word-break: keep-all;
}

.billing-doc-section + .billing-doc-section {
    margin-top: 34px;
}

.billing-doc h2 {
    font-size: 18px;
    font-weight: bold;
    color: var(--bl-ink-strong);
    border-left: 4px solid var(--bl-brand);
    padding-left: 12px;
    margin: 0 0 14px;
    word-break: keep-all;
}

.billing-doc h3 {
    font-size: 15px;
    font-weight: bold;
    color: var(--bl-ink-strong);
    margin: 22px 0 8px;
    word-break: keep-all;
}

.billing-doc p {
    font-size: 15px;
    margin: 0 0 12px;
    word-break: keep-all;
}

.billing-doc ul {
    margin: 0 0 12px;
    padding-left: 20px;
    font-size: 15px;
}

.billing-doc li {
    margin-bottom: 6px;
    word-break: keep-all;
}

.billing-doc li::marker {
    color: var(--bl-faint);
}

.billing-doc strong {
    color: var(--bl-ink-strong);
}

.billing-doc .billing-callout {
    margin: 0 0 12px;
    font-size: 15px;
}

.billing-doc .billing-callout p:last-child {
    margin-bottom: 0;
}

/* ── 접근성: 키보드 포커스 ── */
.billing-page a:focus-visible,
.billing-page button:focus-visible,
.billing-doc a:focus-visible {
    outline: 3px solid rgba(34, 119, 184, 0.5);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ── 반응형 ── */
@media (max-width: 860px) {
    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .billing-title,
    .billing-doc-title {
        font-size: 22px;
    }

    .billing-order,
    .billing-result {
        padding: 26px 20px 24px;
    }

    .order-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .order-row dd {
        text-align: left;
    }

    .billing-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plan-card,
    .plan-choose,
    .billing-btn {
        transition: none;
    }
}

/* ── 결제 내역 (#58) ──
   구매 화면과 같은 언어: 흰 카드 + 얇은 테두리 + 상단 4px 브랜드 바.
   상태는 색만으로 알리지 않는다 — 배지의 문구·아이콘이 함께 말한다.
   #279: 상단 바는 없애고 1px 선 카드로 통일했다. */
.history-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.history-item {
    background-color: #fff;
    border: 1px solid var(--bl-line);
    border-radius: var(--wp-radius-card);
    padding: 20px 22px 18px;
    box-shadow: var(--bl-shadow);
}

.history-item + .history-item {
    margin-top: 12px;
}

/* 취소된 건은 상단 바까지 중립색으로 눕혀 목록에서 한눈에 구분된다.
   #279 이후로는 회색 바탕 + 배지로 구분한다. */
.history-item--full,
.history-item--partial {
    background-color: var(--bl-surface);
}

.history-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--wp-line-soft);
}

.history-product {
    font-size: 16px;
    font-weight: bold;
    color: var(--bl-ink-strong);
    margin: 0 0 4px;
    word-break: keep-all;
}

.history-date {
    font-size: 13px;
    color: var(--bl-faint);
    margin: 0;
}

.history-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 6px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.history-badge--done {
    background-color: var(--bl-brand-tint);
    border-color: transparent;
    color: var(--bl-brand-deep);
}

/* 부분 취소는 app.css .wc-chip.is-beta 와 같은 노란 계열. */
.history-badge--partial {
    background-color: #fef3c7;
    border-color: transparent;
    color: #92400e;
}

.history-badge--canceled {
    background-color: var(--bl-surface-alt);
    border-color: transparent;
    color: var(--wp-ink-2);
}

.history-meta {
    margin: 0;
    padding-top: 6px;
}

.history-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 7px 0;
}

.history-row dt {
    font-size: 13.5px;
    font-weight: normal;
    color: var(--bl-muted);
    flex-shrink: 0;
}

.history-row dd {
    margin: 0;
    font-size: 14.5px;
    font-weight: bold;
    color: var(--bl-ink-strong);
    text-align: right;
    word-break: keep-all;
}

.history-row .history-canceled {
    color: var(--bl-danger);
}

.history-note {
    margin: 10px 0 0;
    padding-top: 11px;
    border-top: 1px solid var(--wp-line-soft);
    font-size: 13.5px;
    color: var(--bl-muted);
    word-break: keep-all;
}

/* ── 페이지 이동 ── */
.history-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.history-pager-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid var(--wp-primary-line);
    border-radius: var(--wp-radius-control);
    background-color: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--wp-primary-strong);
    text-decoration: none;
    transition: background-color 0.15s;
}

.history-pager-link:hover {
    background-color: var(--wp-primary-tint);
    color: var(--wp-primary-strong);
    text-decoration: none;
}

.history-pager-link.is-disabled {
    border-color: var(--bl-line-soft);
    background-color: #fff;
    color: var(--wp-input-line);
}

.history-pager-status {
    font-size: 13.5px;
    color: var(--bl-muted);
    text-align: center;
}

/* ── 빈 상태 ── */
.history-empty {
    padding: 48px 26px 44px;
    border: 1px dashed var(--wp-input-line);
    border-radius: var(--wp-radius-card);
    background-color: var(--bl-surface);
    text-align: center;
}

.history-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: var(--bl-brand-tint);
    color: var(--bl-brand);
    font-size: 25px;
}

.history-empty-title {
    font-size: 19px;
    font-weight: bold;
    color: var(--bl-ink-strong);
    margin: 0 0 8px;
    word-break: keep-all;
}

.history-empty-desc {
    font-size: 14.5px;
    color: var(--bl-muted);
    margin: 0;
    word-break: keep-all;
}

.history-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.history-help {
    margin: 26px 0 0;
    font-size: 13px;
    color: var(--bl-faint);
    text-align: center;
    word-break: keep-all;
}

.history-help a {
    color: var(--bl-brand-deep);
    font-weight: bold;
}

@media (max-width: 620px) {
    .history-item {
        padding: 18px 16px 16px;
    }

    .history-item-head {
        flex-direction: column;
        gap: 10px;
    }

    .history-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .history-row dd {
        text-align: left;
    }

    .history-pager {
        flex-direction: column;
    }

    .history-empty-actions .billing-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .history-pager-link {
        transition: none;
    }
}

/* 정가·할인율(#320). 할인 빨강 #c81e2b — 흰 바탕 5.7:1, 배지 바탕 4.9:1. */
.plan-was {
    display: flex; align-items: center; gap: 8px; margin: 0 0 2px;
    font-size: 13px; color: var(--bl-muted, #475569);
}
.plan-off {
    font-size: 12px; font-weight: 700; color: #c81e2b; background: #fdeaec;
    padding: 1px 8px; border-radius: 99px;
}
.order-vat { font-size: 13px; font-weight: 400; color: var(--bl-muted, #475569); }

/* ── 환불정책 버전 표시·표(#345) ── */
/* 버전별 본문의 머리 안내문(lead)이 본문 첫머리에 오므로 단락·첫 섹션과 간격을 둔다. */
.billing-doc-lead + .billing-doc-lead {
    margin-top: 6px;
}

.billing-doc-lead + .billing-doc-section {
    margin-top: 26px;
}

.billing-doc-meta {
    font-size: 14px;
    color: var(--bl-muted);
    margin: 0;
}

.billing-doc-table-wrap {
    overflow-x: auto;
    margin: 0 0 12px;
}

.billing-doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    word-break: keep-all;
}

.billing-doc-table th,
.billing-doc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--bl-line-soft);
    text-align: left;
    vertical-align: top;
}

.billing-doc-table th {
    font-weight: bold;
    color: var(--bl-ink-strong);
    background: var(--wp-primary-wash);
    border-bottom-color: var(--wp-primary-line);
}

/* ── 정기결제 구독 신청·결과(#362) ── */
/* x-show 를 거는 요소는 자체 클래스로 display 를 준다(ERR-007). x-cloak 은 Alpine 이
   뜨기 전 고르지 않은 선택지·빈 오류 줄이 잠깐 보이는 것을 막는다. */
.sub-page [x-cloak] { display: none !important; }

.billing-page > .billing-callout { margin-bottom: 24px; }

.sub-link {
    color: var(--bl-brand-deep);
    font-weight: bold;
}

.sub-field {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.sub-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bl-ink);
}

/* 분절 버튼 — app.css 의 .wc-seg 와 같은 모양(결제 화면은 app.css 를 불러오지 않는다). */
.sub-seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background: var(--wp-line-soft);
    border-radius: 10px;
}

.sub-seg-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    border-radius: var(--wp-radius-control);
    color: var(--wp-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.sub-seg-btn:hover { color: var(--wp-ink); }
.sub-seg-btn:has(input:checked) {
    background: #fff;
    color: var(--wp-ink);
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.sub-seg-btn:has(input:focus-visible) { outline: 2px solid var(--wp-primary); outline-offset: 1px; }
.sub-seg-btn input { position: absolute; opacity: 0; pointer-events: none; }

.sub-option { display: block; margin-bottom: 18px; }
.sub-option .order-summary { margin-bottom: 16px; }
.sub-blocked { margin-bottom: 16px; }

.sub-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--bl-ink);
    cursor: pointer;
    word-break: keep-all;
}

.sub-agree input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--wp-primary);
}

.sub-error {
    display: block;
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--wp-danger, #b42318);
}

.sub-status {
    margin: 0;
    font-size: 14px;
    color: var(--wp-ink-2);
    word-break: keep-all;
}

/* ── 구독 관리·해지 신청(#364) ── */
.sub-message { margin-bottom: 16px; }
.sub-message--error { border-color: var(--wp-danger, #b42318); color: var(--wp-danger, #b42318); }

.sub-state { font-weight: 600; color: var(--bl-ink-strong); }

.sub-actions { display: flex; flex-direction: column; gap: 10px; }
.sub-actions form { margin: 0; }

/* 선택 카드 — 디자인 시스템 §선택 카드. 라디오는 카드 위에 투명하게 겹친다(display:none 금지). */
.sub-choice {
    position: relative;
    display: block;
    margin: 0 0 10px;
    padding: 14px 16px;
    border: 1px solid var(--wp-line);
    border-radius: var(--wp-radius-control);
    background: #fff;
    cursor: pointer;
    word-break: keep-all;
}
.sub-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sub-choice:has(input:checked) {
    border: 2px solid var(--wp-primary);
    padding: 13px 15px;
    background: var(--wp-primary-tint);
}
.sub-choice:has(input:checked) .sub-choice-title { font-weight: 700; }
.sub-choice:has(input:focus-visible) { outline: 3px solid rgba(34, 119, 184, 0.5); outline-offset: 2px; }
.sub-choice-title { display: block; font-size: 15px; color: var(--bl-ink-strong); }
.sub-choice-desc { display: block; margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--wp-ink-2); }
.sub-choice-meta { display: block; margin-top: 6px; font-size: 13px; color: var(--wp-muted); }
