@charset "utf-8";

/* 비급여 — 다른 서브(오시는길 등)와 동일 좌우 여백 */
body.syou-sub-page.syou-price-page .syou-sub__body:has(.syou-price-page) {
    padding: 0;
    background: #fff;
}

body.syou-sub-page.syou-price-page .syou-price-page {
    padding: 14px var(--syou-frame-pad-x, 16px) 24px;
    box-sizing: border-box;
}

body.syou-sub-page.syou-price-page .syou-price-page__unit {
    margin: 0 0 10px;
    text-align: right;
    font-size: var(--syou-frame-meta, 1.4rem);
    color: #666;
}

body.syou-sub-page.syou-price-page .table_scroll.price {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.syou-sub-page.syou-price-page .table_scroll.price .table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    table-layout: fixed;
    font-size: var(--syou-frame-meta, 1.4rem) !important;
    line-height: 1.45 !important;
    border-collapse: collapse;
    border: 1px solid #b8b8b8;
    background: #fff;
}

body.syou-sub-page.syou-price-page .table_scroll.price .table thead th,
body.syou-sub-page.syou-price-page .table_scroll.price .table tbody th,
body.syou-sub-page.syou-price-page .table_scroll.price .table tbody td {
    height: auto !important;
    min-height: 38px;
    padding: 8px 5px !important;
    vertical-align: middle !important;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: anywhere;
    font-size: var(--syou-frame-meta, 1.4rem) !important;
    line-height: 1.45 !important;
    color: #555;
    box-sizing: border-box;
    border: 1px solid #b8b8b8 !important;
}

/* 항목 · 기준 · 금액 헤더 — 바른마음 브랜드색 */
body.syou-sub-page.syou-price-page .table_scroll.price .table thead th {
    background-color: var(--syou-primary, #c49a6b);
    color: #fff;
    font-size: var(--syou-frame-meta, 1.4rem) !important;
    font-weight: 500;
    line-height: 1.35 !important;
}

body.syou-sub-page.syou-price-page .table_scroll.price .table tbody th {
    background: var(--syou-primary-light, #faf6f1);
    font-weight: 500;
    color: #444;
}

body.syou-sub-page.syou-price-page .table_scroll.price .table tbody td {
    background: #fff;
}

/* 기준 열 */
body.syou-sub-page.syou-price-page .table_scroll.price .table tbody tr > td:nth-last-child(2):not(.syou-price-amt) {
    color: var(--syou-primary, #c49a6b);
    font-weight: 500;
}

/* 금액 열 */
body.syou-sub-page.syou-price-page .table_scroll.price .table .syou-price-amt {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--syou-primary, #c49a6b);
    font-weight: 500;
}

/* 4열 비율 (항목·항목 | 기준 | 금액) */
body.syou-sub-page.syou-price-page .table_scroll.price .table col.syou-price-col--cat {
    width: 20%;
}

body.syou-sub-page.syou-price-page .table_scroll.price .table col.syou-price-col--item {
    width: 40%;
}

body.syou-sub-page.syou-price-page .table_scroll.price .table col.syou-price-col--std {
    width: 22%;
}

body.syou-sub-page.syou-price-page .table_scroll.price .table col.syou-price-col--amt {
    width: 18%;
}

@container syouframe (max-width: 740px) {
    body.syou-sub-page.syou-price-page .table_scroll.price .table thead th,
    body.syou-sub-page.syou-price-page .table_scroll.price .table tbody th,
    body.syou-sub-page.syou-price-page .table_scroll.price .table tbody td {
        font-size: calc(100cqw * 12 / 430) !important;
        padding: calc(100cqw * 8 / 430) calc(100cqw * 4 / 430) !important;
    }

    body.syou-sub-page.syou-price-page .syou-price-page {
        padding-left: var(--syou-frame-pad-x, calc(100cqw * 16 / 430));
        padding-right: var(--syou-frame-pad-x, calc(100cqw * 16 / 430));
    }
}
