.cost-list-block {
    margin-bottom: 2rem;
}

.cost-list-block__title {
    margin: 0 0 0.85rem;
    padding: 0 0 0.45rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
    background: transparent;
    border: none;
    border-bottom: 2px solid #a5d8f3;
}

.cost-list-all-category {
    margin-bottom: 2.5rem;
}

.cost-list-all-category:last-child {
    margin-bottom: 0;
}

.cost-list-pre-exam__title {
    margin: 1.25rem 0 0.65rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #334155;
}

.cost-list-block--pre-surgery-exam {
    margin-top: 0.5rem;
}

.cost-list-table--pre-exam {
    min-width: 480px;
}

.cost-list-table--pre-exam tbody td:first-child {
    text-align: left;
    font-weight: 500;
}

.cost-list-all-category__title {
    margin: 0 0 1rem;
    padding: 0.55rem 0.85rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    background: #1c478c;
    border-left: 5px solid #a5d8f3;
}

/* ----- Tables (legacy-ish) ----- */

.cost-list-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #b8d4e0;
}

.cost-page .cost-list-table-wrap {
    overflow-x: auto;
}

.cost-list-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.9375rem;
    background: #fff;
}

.cost-list-table__unit {
    margin: 0;
    padding: 0 0 0.35rem;
    text-align: right;
    line-height: 1.4;
    font-size: 0.75rem;
    font-weight: 400;
    color: #64748b;
    border: none;
    background: transparent;
}

.cost-list-table th,
.cost-list-table td {
    padding: 0.5rem 0.45rem;
    border: 1px solid #b8d4e0;
    vertical-align: middle;
    text-align: center;
}

.cost-list-table thead th {
    font-weight: 600;
    color: #1e293b;
    background: #a5d8f3;
}

.cost-list-table tbody td {
    color: #1e293b;
    font-weight: 400;
}

.cost-list-table tbody td:first-child {
    text-align: center;
    font-weight: 500;
}

.cost-list-table__cost {
    font-weight: 400;
    text-align: center;
    line-height: 1.45;
}

.cost-list-table--thyroid {
    table-layout: fixed;
}

.cost-list-table--thyroid .cost-list-table__col-cost-thyroid,
.cost-list-table--thyroid td.cost-list-table__cost {
    width: 12.25rem;
    max-width: 12.25rem;
    white-space: normal;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.cost-list-table--thyroid .cost-list-table__col-copay-thyroid {
    width: 6.75rem;
    max-width: 6.75rem;
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.cost-list-table--thyroid .cost-list-table__col-stay-thyroid {
    width: 6.75rem;
    max-width: 6.75rem;
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .cost-list-table__cost {
        font-size: 16px;
    }
}

.cost-list-table--hernia .cost-list-table__cost {
    text-align: center;
}

.cost-list-table-wrap--hernia {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.cost-list-table--hernia {
    table-layout: fixed;
    width: 100%;
    min-width: 720px;
}

@media (min-width: 768px) {
    #category-table-view {
        overflow-x: visible;
    }

    .cost-page .cost-list-table-wrap--hernia {
        overflow-x: visible;
    }

    .cost-list-table--hernia {
        min-width: 0;
    }

    .cost-list-table--hernia .cost-list-table__th-age,
    .cost-list-table--hernia .cost-list-table__td-age {
        min-width: 0;
        width: 11%;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .cost-list-table--hernia:not(.cost-list-table--hernia-uninsured)
        th.cost-list-table__col-one,
    .cost-list-table--hernia:not(.cost-list-table--hernia-uninsured)
        td.cost-list-table__col-one {
        width: 12%;
    }

    .cost-list-table--hernia:not(.cost-list-table--hernia-uninsured)
        th.cost-list-table__col-both,
    .cost-list-table--hernia:not(.cost-list-table--hernia-uninsured)
        td.cost-list-table__col-both {
        width: 14%;
    }
}

.cost-list-table--hernia th,
.cost-list-table--hernia td {
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: keep-all;
    hyphens: manual;
}

.cost-list-table--hernia .cost-list-table__th-name,
.cost-list-table--hernia .cost-list-table__td-name {
    width: 22%;
    text-align: center;
    font-weight: 500;
    vertical-align: middle;
}

.cost-list-table--hernia .cost-list-table__th-age,
.cost-list-table--hernia .cost-list-table__td-age {
    width: 13%;
    min-width: 6rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    text-align: center;
    font-weight: 500;
    vertical-align: middle;
}

.cost-list-table--hernia-uninsured .cost-list-table__th-name,
.cost-list-table--hernia-uninsured .cost-list-table__td-name {
    width: 26%;
}

.cost-list-table--hernia-uninsured th.cost-list-table__col-one,
.cost-list-table--hernia-uninsured th.cost-list-table__col-both,
.cost-list-table--hernia-uninsured td.cost-list-table__col-one,
.cost-list-table--hernia-uninsured td.cost-list-table__col-both {
    width: 27%;
}

.cost-list-table--hernia:not(.cost-list-table--hernia-uninsured)
    th.cost-list-table__col-one,
.cost-list-table--hernia:not(.cost-list-table--hernia-uninsured)
    td.cost-list-table__col-one {
    width: 11%;
}

.cost-list-table--hernia:not(.cost-list-table--hernia-uninsured)
    th.cost-list-table__col-both,
.cost-list-table--hernia:not(.cost-list-table--hernia-uninsured)
    td.cost-list-table__col-both {
    width: 13%;
}

.cost-list-table--hernia .cost-list-table__col-copay-hernia {
    width: 6.5rem;
    max-width: 6.5rem;
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.cost-list-table--hernia tbody td:first-child {
    text-align: center;
    font-weight: 400;
}

.cost-list-table--hernia tbody td.cost-list-table__td-name {
    text-align: center;
    font-weight: 500;
}

.cost-list-table--hernia th.cost-list-table__col-one,
.cost-list-table--hernia th.cost-list-table__col-both {
    background: #d4ebf6;
}

.cost-list-table--hernia td.cost-list-table__col-one {
    background: #f3faff;
}

.cost-list-table--hernia td.cost-list-table__col-both {
    background: #eef6fc;
}

.cost-list-table--hernia td.cost-list-table__col-span-sides {
    background: #f1f8fc;
}

.cost-list-table--hernia .cost-list-table__mesh-alt {
    display: block;
    margin-top: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px dashed #cbd5e1;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.45;
}

.cost-list-table__col-copay {
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.cost-list-table-wrap--gallstone,
.cost-list-table-wrap--appendix {
    overflow-x: visible;
}

.cost-list-table--gallstone,
.cost-list-table--appendix {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
}

.cost-list-table--gallstone tbody td:first-child {
    text-align: center;
    font-weight: 500;
}

.cost-list-table--gallstone thead th:nth-child(1) {
    width: 26%;
}

.cost-list-table--gallstone thead th:nth-child(2) {
    width: 22%;
}

.cost-list-table--gallstone thead th:nth-child(3) {
    width: 12%;
    min-width: 5.5rem;
    white-space: normal;
    line-height: 1.4;
}

.cost-list-table--gallstone .cost-list-table__stay {
    text-align: center;
    line-height: 1.45;
    font-weight: 400;
    white-space: normal;
    word-break: keep-all;
}

.cost-list-table--gallstone .cost-list-table__cost {
    overflow-wrap: anywhere;
}

.cost-list-table--gallstone .cost-list-table__remarks,
.cost-list-table--appendix .cost-list-table__remarks {
    text-align: left;
    line-height: 1.45;
    font-weight: 400;
    white-space: normal;
}

/* 항문질환 */
.cost-list-table--anal {
    min-width: 560px;
}

.cost-list-table--anal tbody td:first-child {
    text-align: center;
    font-weight: 500;
}

/* 전립선·요로결석 (수술명·수술비용·기준) */
.cost-list-table--criteria-cost,
.cost-list-table--prostate,
.cost-list-table--urolithiasis {
    min-width: 640px;
}

.cost-list-table--criteria-cost tbody td:first-child,
.cost-list-table--prostate tbody td:first-child,
.cost-list-table--urolithiasis tbody td:first-child {
    text-align: left;
    font-weight: 500;
}

.cost-list-table--criteria-cost .cost-list-table__stay,
.cost-list-table--prostate .cost-list-table__stay,
.cost-list-table--urolithiasis .cost-list-table__stay {
    text-align: center;
    line-height: 1.45;
    white-space: normal;
}

/* 급성충수염 */

.cost-list-table--appendix tbody td:first-child {
    text-align: center;
    font-weight: 500;
}

.cost-list-table--appendix:not(.cost-list-table--no-stay)
    thead
    tr:first-child
    th:nth-child(3) {
    width: 12%;
    min-width: 5.5rem;
    white-space: normal;
    line-height: 1.4;
}

.cost-list-table--appendix .cost-list-table__stay {
    text-align: center;
    line-height: 1.45;
    font-weight: 400;
    white-space: normal;
    word-break: keep-all;
}

.cost-list-table--appendix .cost-list-table__cost {
    overflow-wrap: anywhere;
}

.cost-list-table--appendix th.cost-list-table__col-age-young,
.cost-list-table--appendix td.cost-list-table__col-age-young {
    background: #f3faff;
}

.cost-list-table--appendix th.cost-list-table__col-age-older,
.cost-list-table--appendix td.cost-list-table__col-age-older {
    background: #eef6fc;
}

.cost-list-table--breast {
    min-width: 640px;
}

.cost-list-table--breast tbody td:first-child {
    text-align: center;
    font-weight: 500;
    white-space: normal;
}

.cost-list-table--breast .cost-list-table__cost {
    text-align: center;
}

.cost-list-table--breast .cost-list-table__remarks {
    text-align: left;
    line-height: 1.45;
    font-weight: 400;
    white-space: normal;
}

.cost-list-table--breast .cost-list-table__th-sub {
    font-size: 0.875em;
    font-weight: 500;
}

.cost-list-checkup-intro {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #334155;
}

.cost-list-block > .cost-list-checkup-intro:first-child {
    margin-top: 0.25rem;
}

.cost-list-block__title + .cost-list-checkup-intro {
    margin-top: 1rem;
}

.cost-list-table-wrap + .cost-list-checkup-intro,
.cost-list-footnote + .cost-list-checkup-intro {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8eef3;
}

.cost-list-checkup-intro__lead {
    margin: 0;
    font-weight: 400;
    color: #1e293b;
}

.cost-list-footnote + .cost-list-checkup-separator,
.cost-list-table-wrap + .cost-list-checkup-separator {
    margin-top: 1.75rem;
}

.cost-list-checkup-separator {
    margin: 0 0 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8eef3;
}

.cost-list-checkup-separator + .cost-list-table-wrap {
    margin-top: 0;
}

.cost-list-board-intro {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #334155;
}

.cost-list-board-intro--date-only {
    margin-bottom: 0.75rem;
}

.cost-list-board-intro__date {
    margin: 0;
    text-align: right;
    font-weight: 500;
    color: #475569;
}

.cost-list-table--board {
    min-width: 480px;
}

.cost-list-table--board tbody td:first-child {
    text-align: center;
    font-weight: 500;
}

.cost-list-table--checkup .cost-list-table__cost {
    text-align: center;
}

.cost-list-table--checkup .cost-list-table__remarks {
    text-align: center;
    line-height: 1.45;
}

.cost-list-table--thyroid .cost-list-table__cost {
    text-align: center;
}

.cost-list-footnote {
    margin-top: 0.75rem;
    padding: 0.75rem 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #555;
    background: #f9feff;
    border: 1px solid #eff7fa;
    white-space: pre-line;
}

.cost-list-table-wrap + .cost-list-footnote {
    margin-top: 1.25rem;
}

.cost-list-anal-subsection + .cost-list-anal-subsection {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8eef3;
}

.cost-list-anal-subsection .cost-list-table-wrap + .cost-list-footnote {
    margin-top: 1.25rem;
}

.cost-list-footnote + .cost-list-table-wrap {
    margin-top: 1.25rem;
}

/* 단위는 table-wrap 앞에 오므로, 각주·이전 표 다음 표 블록 위 여백 */
.cost-list-footnote + .cost-list-table__unit,
.cost-list-table-wrap + .cost-list-table__unit {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8eef3;
}

.cost-page,
.cost-page *,
.cost-page *::before,
.cost-page *::after {
    box-sizing: border-box;
}

.cost-page {
    margin: 0;
    padding: 0;
    font-family: "NanumSquare", "Nanum Square", "Noto Sans KR", sans-serif;
    font-size: 19px;
    line-height: 1.5;
    color: #334155;
    background: transparent;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.is-hidden {
    display: none !important;
}

.cost-main {
    width: 100%;
    max-width: 770px;
    margin: 0 auto;
    padding: 1.5rem 0.75rem 2rem;
    box-sizing: border-box;
    min-width: 0;
    overflow-x: hidden;
    container-type: inline-size;
    container-name: cost;
}

#content .cost-page {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

#content .cost-main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 27px 2rem;
    box-sizing: border-box;
}

@media screen and (max-width: 767px) {
    #content .cost-main {
        padding-top: 1.25rem;
    }
}

@media (min-width: 640px) {
    .cost-main {
        padding: 2rem 1rem 3rem;
    }
}

/* ----- Filters ----- */
.cost-page--center-embed {
    margin: 0 0 2rem;
    padding-top: 1.25rem;
    min-width: 0;
    max-width: 100%;
}

.cost-page--center-embed-append {
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

.center-endoscopy-precautions {
    margin: 0 0 2rem;
    min-width: 0;
    max-width: 100%;
}

.center-endoscopy-precautions img {
    display: block;
    max-width: 100%;
    height: auto;
}

.cost-page--center-embed .cost-main {
    min-width: 0;
}

#content .cost-page--center-embed .cost-list-table {
    font-size: 0.875rem;
}

.cost-filters {
    margin-bottom: 1.5rem;
    min-width: 0;
    max-width: 100%;
}

.cost-filters__block + .cost-filters__block {
    margin-top: 1rem;
}

.cost-category-nav {
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #e2e8f0;
}

.cost-category-dropdown {
    display: block;
    max-width: 28rem;
}

.cost-category-select {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem 1.25rem;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.cost-category-select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

#category-table-view {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}

.cost-page .cost-category-select {
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .cost-page .cost-category-dropdown {
        max-width: 22rem;
    }

    .cost-page .cost-category-select {
        font-size: 0.9375rem;
    }
}

/* 프롤로센터 — 공통 .cost-list-table 헤더·셀 스타일 사용 */
.cost-list-table--prolo {
    min-width: 640px;
}

.cost-list-table--prolo .cost-list-prolo__group {
    font-weight: 600;
    white-space: normal;
}

.cost-list-table--prolo .cost-list-prolo__treatment {
    text-align: center;
    font-weight: 500;
}

.cost-list-table--prolo .cost-list-prolo__cost {
    white-space: normal;
}
