
/* TEST 261126 - PRICE CARD ACTIONS */
.main_price_actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
}

.main_price_actions .main_price_more,
.main_price_detail_btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.main_price_detail_btn {
    position: relative;
    z-index: 2;
    border: 1px solid #dcdfe4;
    background: #fff;
    color: #222;
}

.main_price_detail_btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.main_price_actions .main_price_more {
    width: auto;
    margin: 0;
}


.price_detail_modal,
.price_detail_modal button,
.price_detail_modal a {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    letter-spacing: -0.02em;
}

/* MODAL */
body.price_modal_open {
    overflow: hidden;
}

.price_detail_modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: none;
}

.price_detail_modal.is_open {
    display: block;
}

.price_detail_backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 20, .72);
    backdrop-filter: blur(5px);
}

.price_detail_dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(980px, calc(100% - 40px));
    max-height: calc(100vh - 44px);
    transform: translate(-50%, -50%);
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 35px 90px rgba(0,0,0,.28);
}

.price_detail_toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 64px;
    padding: 0 22px 0 28px;
    border-bottom: 1px solid #eceff2;
    background: #fff;
}

.price_detail_toolbar_product {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.price_detail_toolbar_product strong {
    overflow: hidden;
    color: #22262c;
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.price_detail_toolbar_product span {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
}

.price_detail_toolbar_actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price_detail_tool_btn,
.price_detail_close {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.price_detail_tool_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    color: #59636f;
    font-size: 12px;
    font-weight: 600;
}

.price_detail_tool_btn:hover {
    background: #f5f6f8;
    color: #111;
}

.price_detail_close {
    width: 36px;
    height: 36px;
    margin-left: 4px;
    border-radius: 50%;
    color: #222;
    font-size: 27px;
    line-height: 32px;
}

.price_detail_close:hover {
    background: #f2f3f5;
}

.price_detail_scroll {
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.price_detail_document {
    padding: 46px 52px 0;
}

.price_detail_header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: end;
    padding-bottom: 34px;
    border-bottom: 1px solid #e7e9ed;
}

.price_detail_package {
    margin: 0 0 10px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.price_detail_header h2 {
    margin: 0;
    color: #17191d;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
}

.price_detail_summary {
    max-width: 620px;
    margin: 16px 0 0;
    color: #68717d;
    font-size: 15px;
    line-height: 1.75;
    word-break: keep-all;
}

.price_detail_price {
    display: flex;
    align-items: flex-end;
    white-space: nowrap;
}

.price_detail_price strong {
    color: #17191d;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.price_detail_price span {
    padding: 0 0 5px 5px;
    color: #555e69;
    font-size: 14px;
    font-weight: 700;
}

.price_detail_benefit_section,
.price_detail_body_section,
.price_detail_scope_section {
    padding: 36px 0;
    border-bottom: 1px solid #eceef1;
}

.price_detail_section_head {
    margin-bottom: 22px;
}

.price_detail_section_head > span {
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.price_detail_section_head h3 {
    margin: 0;
    color: #1b1e23;
    font-size: 22px;
    font-weight: 800;
}

.price_detail_benefit_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}

.price_detail_benefit_item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f7f8fa;
    color: #39414b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.price_detail_benefit_item i {
    color: var(--color-primary);
}

.price_detail_detail_list {
    display: grid;
    gap: 12px;
}

.price_detail_detail_item {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr);
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px dashed #e1e4e8;
}

.price_detail_detail_item:last-child {
    border-bottom: 0;
}

.price_detail_detail_no {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
}

.price_detail_detail_item strong {
    display: block;
    margin-bottom: 7px;
    color: #24282f;
    font-size: 16px;
    font-weight: 800;
}

.price_detail_detail_item p {
    margin: 0;
    color: #66707b;
    font-size: 13px;
    line-height: 1.7;
    word-break: keep-all;
    white-space: pre-line;
}

.price_detail_scope_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.price_detail_scope_tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #dfe3e8;
    border-radius: 999px;
    color: #4c5662;
    font-size: 12px;
    font-weight: 600;
}

.price_detail_notice {
    margin: 22px 0 0;
    padding: 15px 17px;
    border-left: 3px solid var(--color-primary);
    background: #fff8f4;
    color: #6a605b;
    font-size: 12px;
    line-height: 1.7;
    word-break: keep-all;
}

.price_detail_footer {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 -52px;
    padding: 20px 52px;
    border-top: 1px solid #e8ebef;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
}

.price_detail_footer > div span {
    display: block;
    margin-bottom: 3px;
    color: #8a929c;
    font-size: 11px;
}

.price_detail_footer > div strong {
    color: #22262c;
    font-size: 15px;
    font-weight: 800;
}

.price_detail_footer > div em {
    margin-left: 8px;
    color: var(--color-primary);
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
}

.price_detail_contact {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-width: 230px;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

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

    .price_detail_dialog {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        transform: none;
        border-radius: 0;
    }

    .price_detail_toolbar {
        height: 58px;
        padding: 0 14px 0 18px;
    }

    .price_detail_toolbar_product {
        flex: 1 1 auto;
        overflow: hidden;
    }

    .price_detail_toolbar_product strong {
        font-size: 13px;
    }

    .price_detail_toolbar_product span {
        font-size: 12px;
    }

    .price_detail_toolbar_actions {
        width: 100%;
        justify-content: flex-end;
    }

    .price_detail_tool_btn {
        padding: 0 7px;
        font-size: 11px;
    }

    .price_detail_scroll {
        max-height: calc(100vh - 58px);
    }

    .price_detail_document {
        padding: 28px 20px 0;
    }

    .price_detail_header {
        grid-template-columns: 1fr;
        gap: 22px;
        align-items: start;
    }

    .price_detail_header h2 {
        font-size: 28px;
    }

    .price_detail_price strong {
        font-size: 36px;
    }

    .price_detail_benefit_grid {
        grid-template-columns: 1fr;
    }

    .price_detail_detail_item {
        grid-template-columns: 36px minmax(0,1fr);
        gap: 10px;
    }

    .price_detail_footer {
        flex-direction: column;
        align-items: stretch;
        margin: 0 -20px;
        padding: 16px 20px;
    }

    .price_detail_contact {
        width: 100%;
        min-width: 0;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }

    #price_detail_modal,
    #price_detail_modal * {
        visibility: visible !important;
    }

    #price_detail_modal {
        position: static !important;
        display: block !important;
    }

    .price_detail_backdrop,
    .price_detail_toolbar,
    .price_detail_footer {
        display: none !important;
    }

    .price_detail_dialog {
        position: static !important;
        width: 100% !important;
        max-height: none !important;
        transform: none !important;
        overflow: visible !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .price_detail_scroll {
        max-height: none !important;
        overflow: visible !important;
    }

    .price_detail_document {
        padding: 0 !important;
    }
}

/* 상세모달 단순화: 중복 상품소개/혜택 제거 후 상세내용부터 시작 */
.price_detail_body_section:first-child {
    padding-top: 6px;
}

.price_detail_document > .price_detail_body_section:first-child {
    padding-top: 10px;
}


/* 261126 상품 상세 모달 상단 상품 메뉴 */
.price_detail_toolbar {
    gap: 14px;
    padding: 0 16px 0 18px;
}

.price_detail_product_nav {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.price_detail_product_nav button {
    min-height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #68727d;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.price_detail_product_nav button:hover {
    background: #f5f6f8;
    color: #20242a;
}

.price_detail_product_nav button.is_active {
    background: rgba(243,108,33,.10);
    color: var(--color-primary);
}

.price_detail_body_section {
    border-bottom: 0;
    padding-bottom: 42px;
}

@media (max-width: 767px) {
    .price_detail_toolbar {
        gap: 8px;
        padding: 0 10px 0 12px;
    }

    .price_detail_product_nav {
        flex: 1 1 auto;
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .price_detail_product_nav::-webkit-scrollbar {
        display: none;
    }

    .price_detail_product_nav button {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 0 11px;
        font-size: 12px;
    }

    .price_detail_close {
        flex: 0 0 36px;
    }
}


/* =========================================================
   261126 모바일 모달 하단 CTA 가림 방지
   - 모바일 브라우저 동적 주소창/하단바 대응
   - PC에는 영향 없음
========================================================= */
@media (max-width: 767px) {
    .price_detail_dialog {
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
    }

    .price_detail_scroll {
        max-height: calc(100vh - 58px);
        max-height: calc(100dvh - 58px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .price_detail_footer {
        bottom: 0;
        padding-top: 18px;
        padding-right: 20px;
        padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
        padding-left: 20px;
        background: #fff;
    }

    .price_detail_contact {
        flex: 0 0 auto;
        min-height: 54px;
    }
}


/* =========================================================
   261126 요금표 카드 - 상품 자세히보기 단독 CTA
========================================================= */
.main_price_actions {
    display: block;
    width: 100%;
    padding-top: 24px;
}

.main_price_actions .main_price_detail_btn {
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    border: 1px solid rgba(243, 108, 33, .32);
    border-radius: 12px;
    background: #fff8f3;
    color: #25282e;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.02em;
    box-shadow: 0 6px 18px rgba(243, 108, 33, .06);
}

.main_price_actions .main_price_detail_btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(243, 108, 33, .11);
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.main_price_actions .main_price_detail_btn:hover {
    border-color: var(--color-primary);
    background: #fff4ec;
    color: var(--color-primary);
}



@media (max-width: 767px) {
    .main_price_actions .main_price_detail_btn {
        min-height: 56px;
        padding: 0 18px;
        font-size: 15px;
    }
}
