/* 마이페이지 공통 토큰 */
:is(.mypage-renew, .mypage-order-detail, .mypage-order-add) {
    --ink: var(--bj-ink);
    --muted: var(--bj-muted);
    --quiet: var(--bj-tertiary);
    --line: var(--bj-line);
    --line-strong: var(--bj-line-strong, var(--bj-line));
    --surface: var(--bj-clean);
    --soft: var(--bj-header-surface);
    --soft-panel: var(--bj-header-surface);
    --coral: var(--bj-danger);
    --coral-soft: color-mix(in srgb, var(--bj-danger) 8%, var(--bj-clean));
    --blue: var(--bj-ink);
    --blue-soft: var(--bj-header-surface);
    --mypage-list-head-bg: var(--bj-clean);
    --shadow: 0 2px 8px rgba(24, 24, 23, .04);
    --mypage-accent: var(--bj-ink);
    --mypage-accent-soft: var(--bj-clean);
    --mypage-source-editor-bg: #efedf6;
    --mypage-source-editor-ink: #575071;
    --mypage-source-form-bg: #edf3ee;
    --mypage-source-form-ink: #47614e;
    --mypage-source-legacy-bg: var(--bj-product-stage);
    --mypage-source-legacy-ink: var(--bj-muted);
    --mypage-status-warning-line: #e4c18f;
    --mypage-status-warning-bg: #fff7e9;
    --mypage-status-warning-ink: #8a5b18;
    --mypage-panel-padding: 20px;
    --mypage-row-padding: 16px 20px;
    --mypage-content-panel-padding: 16px 24px;
    --mypage-content-panel-padding-inline: 24px;
    --mypage-content-row-padding: 16px 0;
    --mypage-content-section-gap: 32px;
    --mypage-content-major-gap: 64px;
    --mypage-content-title-gap: 16px;
    --mypage-content-first-gap: 24px;
    --mypage-control-title-support-gap: var(--bj-space-1, 8px);
    --mypage-control-title-content-gap: var(--bj-space-2, 16px);
    --mypage-content-divider: color-mix(in srgb, var(--bj-line) 45%, transparent);
    --mypage-info-label-size: 13px;
    --mypage-button-height: 44px;
    --mypage-button-radius: 6px;
    --mypage-control-padding: 0 16px;
    --mypage-button-line: var(--bj-line);
    --mypage-space-content: 30px;
    --mypage-space-toolbar: 40px;
    --mypage-space-section: 50px;
    --mypage-space-guide: 40px;
    --mypage-space-footer: 80px;
    color: var(--ink);
    font-family: var(--bj-font-family);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;
    word-break: keep-all;
}

body.mypage-renew-shell {
    margin: 0;
    background: var(--surface);
}

/* 항목 제목을 보조하는 설명 문구의 공통 역할 */
:is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-support-text {
    display: block;
    margin: var(--mypage-control-title-support-gap) 0 0;
    color: var(--bj-muted, #66635e);
    font-family: var(--bj-font-family, Pretendard, sans-serif);
    font-size: var(--bj-type-caption, 14px);
    font-weight: 400;
    line-height: var(--bj-type-caption-line, 1.5);
}

:is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-support-text:empty {
    display: none;
}

/* 마이페이지 본문 공통 문법: 신규·리뉴얼 상세/작성 페이지가 역할 기준으로 사용합니다. */
:is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-content-section-title {
    margin: var(--mypage-content-section-gap) 0 var(--mypage-content-title-gap) !important;
    padding: 0 !important;
    color: var(--ink) !important;
    font-family: var(--bj-font-family) !important;
    font-size: var(--bj-type-subsection, 20px) !important;
    font-weight: var(--bj-type-subsection-weight, 600) !important;
    line-height: var(--bj-type-subsection-line, 1.5) !important;
    letter-spacing: -.02em !important;
}

/* 금액 패널 공통 역할: 페이지 CSS는 열 너비와 배치만 소유합니다. */
:is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-price-item-label,
:is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-price-total-label {
    color: var(--bj-ink, #181817);
    font-family: var(--bj-font-family, Pretendard, sans-serif);
    font-size: var(--bj-type-caption, 14px);
    font-weight: 600;
    line-height: var(--bj-type-caption-line, 1.5);
    letter-spacing: 0;
}

:is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-price-total-note {
    color: var(--bj-muted, #66635e);
    font-family: var(--bj-font-family, Pretendard, sans-serif);
    font-size: var(--bj-catalog-supporting-size, 13px);
    font-weight: 400;
    line-height: var(--bj-catalog-supporting-line, 20px);
}

:is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-price-total-value {
    color: var(--mypage-accent, #ad625c);
    font-family: var(--bj-font-family, Pretendard, sans-serif);
    font-size: 24px;
    font-weight: 700;
    line-height: var(--bj-type-subsection-line, 1.5);
}

:is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-content-section--first > .mypage-content-section-title,
:is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-content-section-title--first {
    margin-top: var(--mypage-content-first-gap) !important;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-content-section--major {
    margin-top: var(--mypage-content-major-gap);
}

:is(.mypage-renew, .mypage-order-detail) .mypage-content-panel {
    overflow: hidden;
    margin: 0 !important;
    padding: var(--mypage-content-panel-padding) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--bj-control-radius) !important;
    background: var(--surface) !important;
    box-shadow: none !important;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-content-row {
    margin: 0;
    padding: var(--mypage-content-row-padding) !important;
    border: 0 !important;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-content-row + .mypage-content-row {
    border-top: 1px solid var(--mypage-content-divider) !important;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-content-row:only-child {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

/* 패널이 바깥 여백을 소유하므로 첫·마지막 내부 행은 가장자리 패딩을 중복하지 않습니다. */
:is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-content-row--panel-first {
    padding-top: 0 !important;
}

:is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-content-row--panel-last {
    padding-bottom: 0 !important;
}

@media (max-width: 639px) {
    :is(.mypage-renew, .mypage-order-detail) {
        --mypage-content-panel-padding: 16px;
        --mypage-content-panel-padding-inline: 16px;
    }
}

body.mypage-renew-shell #content_wrapper {
    width: 100%;
}

body.mypage-renew-shell #content_wrapper > tbody > tr > td {
    width: 100% !important;
}

body.mypage-renew-shell #foot_margin_top {
    height: 0 !important;
}

.mypage-renew:not(.mypage-page) {
    position: relative;
    left: calc(50vw - 50%);
    width: 100vw;
    max-width: 100vw;
    overflow-x: clip;
    background: var(--surface);
}

.mypage-renew,
.mypage-renew *,
.mypage-renew *::before,
.mypage-renew *::after {
    box-sizing: border-box;
}

.mypage-renew button,
.mypage-renew input,
.mypage-renew select,
.mypage-renew textarea {
    font: inherit;
    letter-spacing: 0;
}

.mypage-renew button {
    cursor: pointer;
}

/* 마이페이지 기본 폭과 여백 */
.mypage-page {
    box-sizing: border-box;
    width: min(1000px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
    padding-top: 48px;
    padding-bottom: var(--mypage-space-footer);
}

.mypage-renew .mypage-notice.mypage-bottom-notice {
    margin-top: var(--mypage-space-guide);
}

/* 페이지 제목 */
.mypage-page-title {
    margin: 0;
    color: var(--ink);
    font-size: var(--bj-type-page, 28px);
    font-weight: var(--bj-type-page-weight, 700);
    line-height: var(--bj-type-page-line, 1.35);
    letter-spacing: var(--bj-type-page-tracking, -.025em);
}

/* 목록형 게시판 공통 규칙 */
.mypage-list-head {
    min-height: 44px;
    background: var(--mypage-list-head-bg);
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.mypage-list-row {
    min-height: 64px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-empty-state {
    display: grid;
    place-items: center;
    padding: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-empty-state--list {
    min-height: 160px;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-empty-state--compact {
    min-height: 56px;
    padding: 16px 20px;
    background: var(--mypage-list-head-bg);
}

:is(.mypage-renew, .mypage-order-detail) .mypage-empty-state[hidden] {
    display: none;
}

/* 마이페이지 2차 탭: 링크와 버튼 마크업을 같은 형태로 사용합니다. */
:is(.mypage-renew, .sian-view-renewal) .mypage-subtabs {
    display: inline-flex;
    gap: 4px;
    margin-top: 40px;
    padding: 4px;
    border-radius: 6px;
    background: var(--soft);
}

:is(.mypage-renew, .sian-view-renewal) .mypage-subtabs > a,
:is(.mypage-renew, .sian-view-renewal) .mypage-subtabs > button,
.sian-view-renewal .mypage-subtabs > .sian_pan_btn {
    display: inline-flex;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
}

:is(.mypage-renew, .sian-view-renewal) .mypage-subtabs > .active,
:is(.mypage-renew, .sian-view-renewal) .mypage-subtabs > a:hover,
:is(.mypage-renew, .sian-view-renewal) .mypage-subtabs > button:hover,
.sian-view-renewal .mypage-subtabs > .sian_pan_btn_on,
.sian-view-renewal .mypage-subtabs > .sian_pan_btn:hover {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
}

/* 마이페이지 공통 체크박스: 장바구니와 같은 선택·포커스 문법을 사용합니다. */
.mypage-check {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.mypage-check > input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.mypage-check__box {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1px solid var(--line, var(--bj-line));
    background: var(--surface, var(--bj-clean));
    box-sizing: border-box;
}

.mypage-check > input[type="checkbox"]:checked + .mypage-check__box {
    border-color: var(--bj-charcoal);
    background: var(--bj-charcoal);
}

/* 보조 옵션 선택: 장바구니의 선택 대기 상태와 같은 웜그레이를 사용합니다. */
.mypage-check--muted > input[type="checkbox"]:checked + .mypage-check__box {
    border-color: var(--bj-tertiary);
    background: var(--bj-tertiary);
}

.mypage-check > input[type="checkbox"]:checked + .mypage-check__box::after {
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid var(--surface, var(--bj-clean));
    border-width: 0 1px 1px 0;
    content: "";
    transform: rotate(45deg);
}

.mypage-check > input[type="checkbox"]:focus-visible + .mypage-check__box {
    outline: 2px solid var(--ink, var(--bj-ink));
    outline-offset: 3px;
}

.mypage-check:has(input[type="checkbox"]:disabled) {
    cursor: not-allowed;
    opacity: .58;
}

@media (max-width: 639px) {
    :is(.mypage-renew, .sian-view-renewal) .mypage-subtabs--fill {
        display: flex;
        width: 100%;
    }

    :is(.mypage-renew, .sian-view-renewal) .mypage-subtabs--fill > a,
    :is(.mypage-renew, .sian-view-renewal) .mypage-subtabs--fill > button {
        min-width: 0;
        flex: 1 1 0;
    }
}

/* 모바일 마이페이지 헤더 메뉴 */
.mypage-mobile-menu,
.mypage-mobile-menu-overlay {
    display: none;
}

@media (max-width: 768px) {
    body.mypage-mobile-menu-open {
        overflow: hidden;
    }

    .mypage-renew .mypage-page-title {
        display: none;
    }

    .mypage-renew .mypage-page {
        padding-top: 0;
    }

    .mypage-renew .tabs {
        position: sticky;
        z-index: 30;
        top: 0;
        width: 100%;
        min-height: 56px;
        gap: var(--bj-space-3, 32px);
        margin-top: 0;
        padding-right: 0;
        background: var(--bj-clean, #fff);
    }

    .mypage-mobile-menu-overlay:not([hidden]) {
        position: fixed;
        z-index: 130;
        inset: 62px 0 0;
        display: block;
        background: color-mix(in srgb, var(--bj-ink, #181817) 24%, transparent);
    }

    .mypage-mobile-menu:not([hidden]) {
        position: fixed;
        z-index: 131;
        top: 62px;
        right: 0;
        left: 0;
        display: block;
        padding: var(--bj-space-2, 16px) 20px var(--bj-space-3, 32px);
        border-top: 1px solid var(--bj-line, #ddd9d2);
        border-bottom: 1px solid var(--bj-line, #ddd9d2);
        background: var(--bj-clean, #fff);
    }

    .mypage-mobile-menu__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--bj-space-1, 8px);
        margin: 0 auto;
        padding: 0;
    }

    .mypage-mobile-menu__link {
        position: relative;
        display: flex;
        min-height: 44px;
        align-items: center;
        padding: 0 12px;
        border-radius: var(--bj-control-radius, 8px);
        color: var(--bj-nav-primary, #384a52);
        font-size: var(--bj-type-caption, 14px);
        font-weight: var(--bj-type-control-weight, 500);
        line-height: var(--bj-type-nav-line, 1.5);
        text-decoration: none;
    }

    .mypage-mobile-menu__link.is-current {
        background: var(--bj-paper, #fbfaf8);
        color: var(--bj-nav-active, #132b34);
        font-weight: var(--bj-type-nav-weight, 600);
    }

    .mypage-mobile-menu__link.is-current::after {
        content: "";
        position: absolute;
        right: 12px;
        bottom: 7px;
        left: 12px;
        height: 2px;
        background: var(--bj-nav-indicator, #1b2631);
    }
}

/* 마이페이지 패널·행 공통 구조 */
.mypage-renew .mypage-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--bj-control-radius);
    background: var(--surface);
    box-shadow: none;
}

.mypage-renew .mypage-panel--section {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.mypage-renew .mypage-panel--section {
    --mypage-row-padding: 16px 0;
}
.mypage-renew .mypage-panel--section > :first-child { padding-top: 0; }
.mypage-renew .mypage-panel--section > :last-child { padding-bottom: 0; }
.mypage-renew .mypage-panel--section .mypage-inset-divider::before { left: 0; right: 0; }

.mypage-renew .mypage-panel.is-selectbox-open {
    position: relative;
    z-index: 20;
    overflow: visible;
}

.mypage-renew .mypage-panel--flat {
    border-color: var(--line-strong);
    box-shadow: none;
}

.mypage-renew .mypage-panel-row {
    padding: var(--mypage-row-padding);
}

.mypage-renew .mypage-panel-row--roomy,
.mypage-renew .mypage-panel-row--fixed {
    padding: var(--mypage-panel-padding);
}

.mypage-renew .mypage-panel-divider {
    border-top: 1px solid var(--line);
}

/* 패널 내부 구획선: 외곽선과 맞닿지 않도록 콘텐츠 여백 안에서 시작합니다. */
.mypage-renew .mypage-inset-divider {
    position: relative;
    border-top: 0;
}

.mypage-renew .mypage-inset-divider::before {
    position: absolute;
    top: 0;
    right: var(--mypage-panel-padding);
    left: var(--mypage-panel-padding);
    border-top: 1px solid var(--line);
    content: "";
    pointer-events: none;
}

/* 주문 상품 요약 공통 구조 */
.mypage-renew .mypage-order-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    min-height: 146px;
    margin-top: 30px;
}

.mypage-renew .mypage-order-summary__product {
    display: block;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    padding: 20px;
}

.mypage-renew .mypage-order-summary__product-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    gap: 20px;
}

.mypage-renew .mypage-order-summary__thumb {
    display: grid;
    width: 96px;
    height: 106px;
    flex: 0 0 96px;
    margin: 0;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--soft);
}

.mypage-renew .mypage-order-summary__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mypage-renew .mypage-order-summary__copy {
    display: flex;
    align-items: flex-start;
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    margin: 0 !important;
    flex-direction: column;
    gap: 7px;
    text-align: left;
}

.mypage-renew .mypage-order-summary__name {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.mypage-renew .mypage-order-summary__name h2,
.mypage-renew .mypage-order-summary__name strong {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.mypage-renew .mypage-order-summary__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-left: 1px solid var(--line);
}

.mypage-renew .mypage-order-summary__facts > div {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 20px;
}

.mypage-renew .mypage-order-summary__facts > div + div {
    border-left: 1px solid var(--line);
}

.mypage-renew .mypage-order-summary__facts dt,
.mypage-renew .mypage-order-summary__facts dd {
    margin: 0;
}

.mypage-renew .mypage-order-summary__facts.mypage-info-surface dd {
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 639px) {
    .mypage-renew .mypage-order-summary {
        grid-template-columns: 1fr;
        min-height: 0;
        margin-top: 40px;
    }

    .mypage-renew .mypage-order-summary__product {
        padding: var(--mypage-row-padding);
    }

    .mypage-renew .mypage-order-summary__product-inner {
        gap: 12px;
    }

    .mypage-renew .mypage-order-summary__thumb {
        width: 78px;
        height: 87px;
        flex-basis: 78px;
    }

    .mypage-renew .mypage-order-summary__name {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .mypage-renew .mypage-order-summary__facts {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .mypage-renew .mypage-order-summary__facts > div {
        min-height: 66px;
        padding: var(--mypage-row-padding);
    }

    .mypage-renew .mypage-order-summary__facts.mypage-info-surface dd {
        font-size: 14px;
    }
}

.mypage-renew .address-surface {
    display: grid;
    gap: 0;
    padding: 0;
}

.mypage-renew .address-surface > .postcode-row,
.mypage-renew .address-surface > .address-field {
    padding: var(--mypage-row-padding);
}

.mypage-renew .address-surface > .postcode-row + .address-field:not(.mypage-inset-divider),
.mypage-renew .address-surface > .address-field + .address-field:not(.mypage-inset-divider) {
    border-top: 1px solid var(--line);
}

.mypage-renew .address-field {
    display: grid;
    width: 100%;
    min-width: 0;
    margin-right: 0;
    margin-left: 0;
    gap: 8px;
}

.mypage-renew .address-field > input[readonly] {
    background: var(--soft-panel);
}

.mypage-renew .postcode-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    min-width: 0;
    margin-right: 0;
    margin-left: 0;
    align-items: end;
    gap: 8px;
}

.mypage-renew .address-search-button {
    gap: 8px;
}

.mypage-renew .address-search-button::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background: url("/card/img/icon_btn_search.png") center / contain no-repeat;
}

.mypage-renew .mypage-input-group {
    display: grid;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 8px;
}

.mypage-renew .mypage-input-group--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mypage-renew .mypage-input-group--email {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.mypage-renew .mypage-input-group__separator {
    color: var(--muted);
    font-size: 14px;
}

/* 마이페이지 입력 컨트롤 */
.mypage-renew .mypage-input {
    width: 100%;
    height: 44px;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    outline: 0;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.mypage-renew .mypage-input::placeholder {
    color: var(--quiet);
}

.mypage-renew select.mypage-input {
    padding: 0 36px 0 10px;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 9'%3E%3Cpath d='M1 1l6.5 6L14 1' fill='none' stroke='%239aa0a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    cursor: pointer;
}

/* 마이페이지 커스텀 셀렉트 */
:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox.is-open {
    z-index: 20;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 44px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    transition: border-color 150ms ease, background-color 150ms ease;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__trigger:hover {
    border-color: var(--line-strong);
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox.is-open .mypage-selectbox__trigger {
    border-color: var(--bj-charcoal);
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__trigger:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__trigger:disabled {
    border-color: var(--line-strong);
    background: var(--soft);
    color: var(--quiet);
    cursor: default;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__label {
    overflow: hidden;
    min-width: 0;
    font-size: 14px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__arrow {
    display: flex;
    align-items: center;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    color: var(--quiet);
    transition: transform 180ms ease-out;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__arrow svg {
    display: block;
    width: 12px;
    height: 12px;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox.is-open .mypage-selectbox__arrow {
    transform: rotate(180deg);
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 19;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    overscroll-behavior: contain;
    scrollbar-color: #cbd5df transparent;
    scrollbar-width: thin;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__dropdown[popover] {
    position: fixed;
    inset: auto;
    margin: 0;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox.is-open .mypage-selectbox__dropdown {
    display: block;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 8px 14px;
    border: 0;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    white-space: nowrap;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option:hover,
:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option.is-selected {
    background: var(--soft);
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option.is-selected {
    font-weight: 600;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option:disabled {
    color: var(--quiet);
    cursor: default;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox--rich .mypage-selectbox__dropdown {
    max-height: 330px;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option--rich {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    white-space: normal;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option--rich:last-child {
    border-bottom: 0;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option-image img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option-title,
:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option-title {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option-meta {
    color: var(--quiet);
    font-size: 13px;
    font-weight: 400;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option-check {
    color: var(--ink);
    font-size: 14px;
    opacity: 0;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__option--rich.is-selected .mypage-selectbox__option-check {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    :is(.mypage-renew, .mypage-order-detail) .mypage-selectbox__arrow {
        transition: none;
    }
}

.mypage-renew textarea.mypage-input {
    height: auto;
    padding: 12px;
    line-height: 1.6;
    resize: vertical;
}

.mypage-renew .mypage-input:hover {
    border-color: var(--line-strong);
}

.mypage-renew .mypage-input:focus {
    padding: 0 9px;
    border-width: 2px;
    border-color: var(--ink);
    outline: 0;
}

.mypage-renew select.mypage-input:focus {
    padding: 0 35px 0 9px;
}

.mypage-renew textarea.mypage-input:focus {
    padding: 11px;
}

.mypage-renew .mypage-input[readonly] {
    background: var(--soft-panel);
    color: var(--ink);
}

.mypage-renew .mypage-input--static {
    pointer-events: none;
}

.mypage-renew textarea.mypage-address-input {
    height: 44px;
    min-height: 44px;
    padding: 10px;
    line-height: 22px;
    overflow: hidden;
    resize: none;
}

@media (max-width: 639px) {
    .mypage-renew textarea.mypage-address-input {
        height: auto;
        field-sizing: content;
    }
}

/* 마이페이지 기본 명령 버튼 */
.mypage-renew .mypage-button {
    display: inline-flex;
    height: var(--mypage-button-height);
    min-height: var(--mypage-button-height);
    align-items: center;
    justify-content: center;
    padding: var(--mypage-control-padding);
    border: 1px solid var(--mypage-button-line);
    border-radius: var(--mypage-button-radius);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.mypage-renew .mypage-button:hover,
.mypage-renew .mypage-button:active {
    background: var(--soft);
}

.mypage-renew .mypage-button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.mypage-renew .mypage-button:disabled,
.mypage-renew .mypage-button[aria-disabled="true"] {
    cursor: default;
    opacity: .5;
}

.mypage-renew .secondary-button,
.mypage-renew .primary-button {
    width: 144px;
    flex: 0 0 144px;
}

.mypage-renew .mypage-button--primary {
    border-color: var(--bj-charcoal);
    background: var(--bj-charcoal);
    color: #fff;
}

.mypage-renew .mypage-button--primary:hover,
.mypage-renew .mypage-button--primary:active {
    background: color-mix(in srgb, var(--bj-charcoal) 88%, #000);
}

.mypage-renew .mypage-button--danger {
    border-color: var(--bj-danger, #a14b46);
    background: var(--bj-clean, #fff);
    color: var(--bj-danger, #a14b46);
}

.mypage-renew .mypage-button--danger:hover,
.mypage-renew .mypage-button--danger:active {
    background: color-mix(in srgb, var(--bj-danger, #a14b46) 8%, var(--bj-clean, #fff));
}

.mypage-renew .action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.mypage-renew .action-button:hover {
    border-color: var(--line);
    background: var(--soft);
}

.mypage-renew .action-button:active {
    border-color: var(--line);
    background: var(--soft);
}

.mypage-renew .action-button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.mypage-renew .action-button:disabled {
    border-color: var(--line-strong);
    background: var(--soft);
    color: var(--quiet);
    cursor: default;
}

.mypage-renew .action-button.primary {
    border-color: var(--line);
    background: var(--soft);
}

.mypage-renew .action-button.primary:hover {
    border-color: var(--line);
    background: color-mix(in srgb, var(--soft) 82%, var(--surface));
}

.mypage-renew .action-button.primary:active {
    border-color: var(--line);
    background: var(--soft);
}

.mypage-renew .action-button.featured {
    border-color: var(--bj-charcoal);
    background: #fff;
    color: var(--bj-ink);
}

.mypage-renew .action-button.featured:hover {
    border-color: var(--bj-charcoal);
    background: var(--soft);
    color: var(--bj-ink);
}

.mypage-renew .action-button.featured:active {
    border-color: var(--bj-charcoal);
    background: var(--soft);
    color: var(--bj-ink);
}

.mypage-renew .action-button.featured:focus-visible {
    outline-color: var(--muted);
}

.mypage-renew .action-button.featured:disabled {
    border-color: var(--line);
    background: var(--soft);
    color: var(--quiet);
}

/* 공통 체크 컨트롤 */
.mypage-renew .renew-toggle-switch__control.preference-check-control {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.mypage-renew .renew-toggle-switch__control.preference-check-control input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.mypage-renew .renew-toggle-switch__control.preference-check-control:has(input:checked) {
    border-color: var(--bj-charcoal);
    background: var(--bj-charcoal);
}

.mypage-renew .renew-toggle-switch__control.preference-check-control:has(input:checked)::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 4px;
    width: 5px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    pointer-events: none;
}

.mypage-renew .mypage-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 22px;
    padding: 0 6px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--bj-paper, #fbfaf8);
    color: var(--bj-ink, #181817);
    font-size: 13px;
    font-weight: 600;
    line-height: normal;
    white-space: nowrap;
}

#mypageAsRenew .as-item[data-status="received"] .as-status {
    border-color: var(--bj-line, #ddd9d2);
    background: var(--bj-paper, #fbfaf8);
    color: var(--bj-ink, #181817);
}

#mypageAsRenew .as-item[data-status="answer"] .as-status,
#mypageRefundRenew .refund-item .refund-status {
 color:var(--bj-ink); background:var(--bj-header-surface); border-color:var(--bj-line);
}

#mypageOrderDetailRenew .history-status.is-complete {
    border-color: #f9dad5;
    background: var(--coral-soft);
    color: var(--coral);
}

/* 보조 라벨 + 주요 값 정보 묶음 */
.mypage-renew .mypage-field,
.mypage-renew .mypage-info-stack {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.mypage-renew .mypage-field__label,
.mypage-renew .mypage-info-label,
.mypage-order-detail .mypage-field__label,
.mypage-order-detail .mypage-info-label,
.mypage-renew .mypage-info-stack > span:first-child,
.mypage-renew .mypage-field-surface dt,
.mypage-renew .mypage-info-surface dt {
    margin: 0;
    color: var(--muted);
    font-size: var(--mypage-info-label-size);
    font-weight: 400;
    line-height: 1.35;
}

.mypage-renew .mypage-field__value,
.mypage-renew .mypage-info-value,
.mypage-renew .mypage-info-stack > strong,
.mypage-renew .mypage-field-surface dd,
.mypage-renew .mypage-info-surface dd {
    min-width: 0;
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mypage-renew .mypage-field-surface > div,
.mypage-renew .mypage-info-surface > div {
    gap: 8px;
}

/* 마이페이지 안내 박스 공통 구조 */
:is(.mypage-renew, .mypage-order-detail) .mypage-notice {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    margin: 0;
    padding: 16px 20px;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    background: var(--surface);
    color: var(--ink);
    text-align: left;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-notice--embedded {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-notice--action {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-notice--grouped {
    display: flex;
    align-items: stretch;
    padding: var(--bj-space-2, 16px);
    border-radius: var(--bj-control-radius, 8px);
    flex-direction: column;
    gap: var(--bj-space-2, 16px);
}

:is(.mypage-renew, .mypage-order-detail) .mypage-notice__group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--bj-space-1, 8px);
}

:is(.mypage-renew, .mypage-order-detail) .mypage-notice__group + .mypage-notice__group {
    padding-top: var(--bj-space-2, 16px);
    border-top: 1px solid var(--line);
}

:is(.mypage-renew, .mypage-order-detail) .mypage-notice__group-header {
    display: flex;
    align-items: center;
    gap: var(--bj-space-1, 8px);
}

:is(.mypage-renew, .mypage-order-detail) .mypage-notice--grouped .mypage-notice__list {
    padding-left: 28px;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-notice__icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-notice__content {
    display: flex;
    width: 100%;
    min-width: 0;
    margin: 0;
    flex-direction: column;
    gap: 8px;
    justify-self: stretch;
    text-align: left;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-notice__title {
    margin: 0;
    color: var(--ink);
    font-size: var(--bj-type-body, 16px);
    font-weight: var(--bj-type-subsection-weight, 600);
    line-height: var(--bj-type-body-line, 1.6);
}

:is(.mypage-renew, .mypage-order-detail) .mypage-notice__list {
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: var(--bj-type-caption, 14px);
    font-weight: var(--bj-type-caption-weight, 400);
    line-height: var(--bj-type-caption-line, 1.5);
    list-style: none;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-notice__list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: inherit;
    font: inherit;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-notice__list li + li {
    margin-top: 2px;
}

:is(.mypage-renew, .mypage-order-detail) .mypage-notice__list li::before {
    content: "\00B7";
    flex: 0 0 auto;
}

:is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-notice__text {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 639px) {
    :is(.mypage-renew, .mypage-order-detail) .mypage-notice {
        padding: var(--mypage-row-padding);
    }

    :is(.mypage-renew, .mypage-order-detail) .mypage-notice--embedded {
        padding: 0;
    }

    :is(.mypage-renew, .mypage-order-detail) .mypage-notice--action {
        grid-template-columns: 20px minmax(0, 1fr);
        align-items: start;
    }

    :is(.mypage-renew, .mypage-order-detail) .mypage-notice--grouped {
        padding: var(--mypage-row-padding);
    }

    :is(.mypage-renew, .mypage-order-detail) .mypage-notice--action > button {
        grid-column: 2;
        justify-self: start;
        margin-top: 4px;
    }
}

/* 마이페이지 상단 탭 */
.mypage-renew .tabs {
    display: flex;
    width: 100%;
    align-items: flex-end;
    gap: var(--bj-space-3, 32px);
    margin-top: 30px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    touch-action: pan-x pan-y;
}

.mypage-renew .tabs::-webkit-scrollbar {
    display: none;
}

.mypage-renew .tab {
    position: relative;
    flex: 0 0 auto;
    padding: 0 0 var(--bj-space-2, 16px);
    border: 0;
    background: transparent;
    color: var(--bj-nav-primary, #384a52);
    font-family: inherit;
    font-size: var(--bj-catalog-category-label-pc, 15px);
    font-weight: var(--bj-type-control-weight, 500);
    line-height: var(--bj-type-nav-line, 1.5);
    text-decoration: none;
    scroll-snap-align: start;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .mypage-renew .tabs {
        cursor: grab;
    }

    .mypage-renew .tabs.is-dragging {
        cursor: grabbing;
        scroll-snap-type: none;
        user-select: none;
    }
}

.mypage-renew .tab:hover,
.mypage-renew .tab.active {
    color: var(--bj-nav-active, #132b34);
    font-weight: var(--bj-type-nav-weight, 600);
}

.mypage-renew .tab.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--bj-nav-indicator, #1b2631);
}

@media (max-width: 639px) {
    .mypage-page {
        width: 100%;
        padding: 60px 20px var(--mypage-space-footer);
    }

    .mypage-renew .mypage-panel-row--roomy {
        padding: var(--mypage-row-padding);
    }

    .mypage-renew .postcode-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mypage-renew .postcode-row > .secondary-button {
        width: 100%;
        min-width: 0;
        flex-basis: auto;
    }

    .mypage-renew .tabs {
        width: calc(100% + 20px);
        gap: var(--bj-space-3, 32px);
        margin-top: 30px;
        padding-right: 20px;
    }

    .mypage-renew .tabs.can-scroll-right {
        -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
        mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
    }

    .mypage-renew .tabs.can-scroll-left:not(.can-scroll-right) {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 100%);
    }

    .mypage-renew .tabs.can-scroll-left.can-scroll-right {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    }

    .mypage-renew .tab {
        padding-bottom: var(--bj-space-2, 16px);
        font-size: var(--bj-catalog-category-label-mobile, 16px);
    }
}

/* 모바일 헤더와 탭을 한 흐름으로 연결합니다. */
@media (max-width: 768px) {
    .mypage-renew .mypage-page {
        padding-top: 0;
    }

    .mypage-renew .tabs {
        width: 100%;
        min-height: 64px;
        margin-top: 0;
        padding-top: var(--bj-space-1, 8px);
        padding-right: 0;
    }
}

/* List filtering is distinct from boxed form controls. */
.mypage-renew .mypage-filter-bar .mypage-selectbox__trigger {
    padding: 0 16px;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    font-size: var(--bj-type-control);
}
.mypage-renew .mypage-filter-bar .mypage-selectbox__arrow,
.mypage-renew .mypage-filter-bar .mypage-selectbox__arrow svg {
    width: 16px; height: 16px; flex-basis: 16px;
}

/* One document surface per task page; order lists retain per-order cards. */
.mypage-document-surface {
    min-width:0; padding:24px; background:var(--bj-clean,#fff);
    border:1px solid var(--bj-line); border-radius:var(--bj-control-radius);
}
.mypage-renew .tabs + .mypage-document-surface { margin-top:24px; }
.mypage-renew .mypage-document-surface > :first-child { margin-top:0; }
.mypage-document-surface > :last-child { margin-bottom:0; }
@media(max-width:767px) {
    .mypage-document-surface { padding:16px; }
}

/* Existing sections become document rows; modal surfaces keep their own boundary. */
#mypageAddressRenew .mypage-document-surface .address-tool-panel,
#mypageAddressRenew .mypage-document-surface .label-settings-panel,
#mypageAddressRenew .mypage-document-surface #addr_manage_form_back:not(.is-editing) .address-form-panel {
    border:0; border-radius:0; box-shadow:none; background:transparent;
    --mypage-row-padding:16px 0; --mypage-panel-padding:0;
}
#mypageAddressRenew .mypage-document-surface .address-tool-row,
#mypageAddressRenew .mypage-document-surface #addr_manage_form_back:not(.is-editing) .address-form-rows { padding-inline:0; }
#mypageAddressRenew .mypage-document-surface .mypage-inset-divider::before { left:0; right:0; }
#mypageAsRenew .mypage-document-surface > .as-toolbar { margin-top:0; }

#mypageAddressRenew .mypage-document-surface .label-step { padding-inline:0; }
@media(max-width:359px) {
    #mypageAsRenew .mypage-document-surface .as-toolbar-filters { grid-template-columns:minmax(0,1fr); }
    #mypageAddressRenew .mypage-document-surface .postcode-row { display:grid; grid-template-columns:minmax(0,1fr) 132px; gap:8px; }
    #mypageAddressRenew .mypage-document-surface .postcode-row button { white-space:nowrap; padding-inline:8px; }
}

/* Secondary tools remain available without preceding every address row. */
.mypage-renew .address-tools-disclosure { border-block:1px solid var(--bj-line); margin-block:16px; }
.mypage-renew .address-tools-disclosure > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:8px 0; font-size:14px; cursor:pointer; list-style:none; }
.mypage-renew .address-tools-disclosure > summary::-webkit-details-marker { display:none; }
.mypage-renew .address-tools-disclosure > summary:focus-visible { outline:none; text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; }
.mypage-renew .address-tools-disclosure > summary::after { content:""; width:8px; height:8px; margin-right:4px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); }
.mypage-renew .address-tools-disclosure[open] > summary::after { transform:rotate(225deg); }
#mypageAddressRenew .address-form-rows { column-gap:24px; }

.mypage-renew :is(.secondary-button,.mypage-button:not(.primary-button):not(.withdraw-button)) { border-color:var(--line-strong,#999); }
@media(max-width:768px){ body.mypage-renew-shell #mypageOrderRenew .order-renew-page { padding-top:0!important; } }

/* ─── 주문 카드 안 접기 줄 — 공용 부품 (2026-10-21 대표님 8091) ───
   «진행 이력»·«함께 주문한 상품»과 같은 줄: 위 가는 선(--bj-line) · 44px 줄 · 14px 글 · 오른쪽 상태 · 8px 꺾쇠(열면 뒤집힘) ·
   누른 표시는 상자 대신 제목 밑줄. 목록(ing_order.php)·상세(ing_order_view.php) 둘 다 이 파일을 싣는다.
   종전 «인쇄정지 이력»은 자기 꼴을 따로 그려 12px 글씨·검은 누름 테두리·위아래 32px 더 돌았다.
   손님 화면에서 카드 안에 접는 칸을 새로 만들 때는 이 부품을 쓴다(따로 그린 글씨 크기·테두리·꺾쇠 금지).
   표: <details class="mypage-fold"><summary><span class="mypage-fold__title">제목</span><span class="mypage-fold__meta">상태</span>
        <span class="mypage-fold__indicator" aria-hidden="true"></span></summary><div class="mypage-fold__body">…</div></details> */
.mypage-fold { grid-column:1 / -1; box-sizing:border-box; min-width:0; width:100%; margin:0; padding:4px 0; border:0; border-top:1px solid var(--bj-line); border-radius:0; background:transparent; color:var(--bj-ink); font-size:var(--bj-type-caption, 14px); line-height:22px; }
.mypage-fold[open] { padding-bottom:var(--bj-space-2, 16px); }
.mypage-fold > summary { display:flex; align-items:center; gap:12px; min-height:44px; margin:0; padding:0; list-style:none; cursor:pointer; color:var(--bj-ink); font-size:var(--bj-type-caption, 14px); line-height:22px; }
.mypage-fold > summary::-webkit-details-marker { display:none; }
.mypage-fold > summary::marker { content:''; }
.mypage-fold > summary:focus:not(:focus-visible), .mypage-fold > summary:focus-visible { outline:none; }
.mypage-fold > summary:focus-visible .mypage-fold__title { text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; }
.mypage-fold__title, .mypage-fold__meta { display:inline-flex; align-items:center; gap:6px; min-width:0; margin:0; color:var(--bj-ink); font-size:var(--bj-type-caption, 14px); font-weight:var(--bj-type-caption-weight, 400); line-height:22px; }
.mypage-fold__meta { margin-left:auto; }
.mypage-fold__indicator { display:grid; place-items:center; width:16px; height:16px; flex:0 0 16px; margin:0; border:0; }
.mypage-fold__indicator::after { content:''; display:block; width:8px; height:8px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); }
.mypage-fold[open] > summary .mypage-fold__indicator { transform:rotate(180deg); }
.mypage-fold__body { color:var(--bj-ink); font-size:var(--bj-type-caption, 14px); line-height:22px; word-break:keep-all; }
/* 옛 공용 시트(css.css)의 «* { font-size:12px }»가 물려받기를 끊는다 — 몸 안 글은 모두 14px 로 맞춘다(종전 이력 몸 글 12px) */
.mypage-fold__body * { font-size:var(--bj-type-caption, 14px); line-height:22px; }
.mypage-fold__note { margin:var(--bj-space-1, 8px) 0 0; color:var(--bj-muted); }
@media (max-width:767px) {
    /* «진행 이력» 휴대폰 줄과 같다 — 제목은 흐리게, 오른쪽 상태는 굵게 */
    .mypage-fold__title { color:var(--bj-muted); }
    .mypage-fold__meta { font-weight:var(--bj-type-action-weight, 700); }
}
/* «인쇄정지 이력» 안쪽 — 위 부품의 몸(.mypage-fold__body) 안 목록만 */
.customer-print-stop-history__list { display:grid; gap:var(--bj-space-2, 16px); margin:var(--bj-space-2, 16px) 0 0; padding:0; list-style:none; }
.customer-print-stop-history__list li { margin:0; padding:0; }
.customer-print-stop-history__list li > div { display:flex; flex-wrap:wrap; gap:var(--bj-space-1, 8px); }
.customer-print-stop-history__list strong { font-weight:600; }
.customer-print-stop-history__list time { display:block; color:var(--bj-muted); font-variant-numeric:tabular-nums; }
.customer-print-stop-history__list .customer-print-stop-history__release { margin-top:var(--bj-space-1, 8px); }
/* 인쇄정지 «담당자 확인 중»(order_print_stop_actions.php · 2026-10-21) — 단추 자리에 두는 상태 글. 누르는 곳이 아니라서
   단추처럼 보이지 않게 테두리를 걷고 흐린 글·종이 바탕으로 둔다(크기·자리는 옆 단추와 같다).
   목록 단추 규칙(ing_order_preview.css «.order-card.mypage-panel :is(… .quick-action:not(.is-detail-action) …)»)보다 한 단 세게. */
.is-print-stop-staff,
body.mypage-renew-shell #mypageOrderRenew .order-card.mypage-panel .quick-action.is-print-stop-staff:not(.is-detail-action),
.order-proof-button.is-print-stop-staff { color:var(--bj-muted); background:var(--bj-paper, #fbfaf8); border-color:transparent; box-shadow:none; cursor:default; pointer-events:none; }

/* 합계의 제목과 조건은 좁은 화면에서 하나의 세로 묶음입니다. */
:is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-price-total-label {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
    max-width: 100%;
    word-break: keep-all;
}
@media (max-width: 767px) {
    :is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-price-total-label,
    :is(.mypage-renew, .mypage-order-detail, .mypage-order-add) .mypage-price-total-note {
        display: block;
    }
}

/* (2026-10-31 대표님 22037·22050 «코딱지 글씨») 옛 공용 css.css 의 «* {font-size:12px}»·머리말 «b {font-size:12px}» 가 주문 목록·상세에서 크기를 안 적은 글자를
   전부 12px 로 덮었다 — 부모 크기를 잇게 한다. :where 라 특이도 0 · 크기를 적은 규칙은 그대로 이긴다(이 파일이 css.css 뒤에 실린다). */
:where(#mypageOrderRenew, .mypage-order-detail) *,
:where(#mypageOrderRenew, .mypage-order-detail) b { font-size: inherit; }

/* 주문 내역 상단 두 안내: 승인 시안의 직접 이동 카드만 한정합니다. */
#mypageOrderRenew .order-top-notices { display: grid; gap: var(--bj-space-1); }
#mypageOrderRenew .order-top-notices:has(> .order-top-notice) { margin: var(--bj-space-2) 0 var(--mypage-content-first-gap); }
#mypageOrderRenew .order-top-notice { display: flex; align-items: flex-start; gap: var(--bj-space-1); min-width: 0; min-height: 48px; padding: var(--bj-space-2); border: 0; border-radius: var(--bj-control-radius); background: var(--bj-information-surface); color: var(--bj-ink); text-align: left; text-decoration: none; box-sizing: border-box; }
#mypageOrderRenew .order-top-notice__icon { flex: none; width: 20px; height: 20px; margin-top: calc((var(--bj-type-body) * var(--bj-type-body-line) - 20px) / 2); }
#mypageOrderRenew .order-top-notice svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#mypageOrderRenew .order-top-notice__copy { display: grid; gap: 2px; min-width: 0; }
#mypageOrderRenew .order-top-notice__copy strong, #mypageOrderRenew .order-top-notice__copy > span { font-size: var(--bj-type-body); line-height: var(--bj-type-body-line); word-break: keep-all; overflow-wrap: anywhere; }
#mypageOrderRenew .order-top-notice__copy strong { font-weight: var(--bj-type-subsection-weight); color: var(--bj-ink); }
#mypageOrderRenew .order-top-notice__copy > span { color: var(--bj-muted); }
#mypageOrderRenew .order-top-notice__go { flex: none; align-self: center; width: 18px; height: 18px; margin-left: auto; color: var(--bj-muted); transition: transform .16s ease, color .16s ease; }
#mypageOrderRenew .order-top-notice:hover .order-top-notice__go { transform: translateX(2px); color: var(--bj-ink); }
#mypageOrderRenew .order-top-notice:hover, #mypageOrderRenew .order-top-notice:focus { text-decoration: none; }
#mypageOrderRenew .order-top-notice:focus-visible { outline: 2px solid var(--bj-ink); outline-offset: 2px; }
#mypageOrderRenew .order-top-notice__accessible { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 767px) { #mypageOrderRenew .order-top-notices:has(> .order-top-notice) { margin-bottom: var(--bj-space-2); } }
@media (min-width: 1040px) { #mypageOrderRenew .order-top-notices { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--bj-space-2); align-items: stretch; } }
@media (prefers-reduced-motion: reduce) { #mypageOrderRenew .order-top-notice__go { transition: none; } }
