body {
    background-color: #F9FBFF;
}

.page_title {
    margin-bottom: 70px;
    font-size: 46px;
    font-weight: 700;
    text-align: center;
}

.post_sect {
    background-color: #FFFFFF;
    border: 1px solid #E1E1E1;
    border-radius: 10px;
    padding-bottom: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 70px;
}

/* ==================== 고인 성함 ==================== */
.post_title {
    text-align: center;
}

.post_title .sub_title {
    margin-bottom: 4px;
    font-size: 18px;
    color: #5E5E5E;
}

.post_title .title {
    font-weight: 700;
    font-size: 32px;
}

.post_title.in_black .sub_title {
    color: #222;
    font-size: 20px;
}

.post_title.in_black .title {
    color: #222;
    font-size: 34px;
}

/* ==================== 상단 ==================== */
.post_top_wrap {
    position: relative;
    aspect-ratio: 1/0.261;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post_top_wrap .post_img_box {
    position: absolute;
    width: 22%;
    max-width: 250px;
    aspect-ratio: 250/280;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 16%);
    box-shadow: 3px 3px 4px 0px rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    border: 3px solid #222;
}

.post_top_wrap .post_img_box .post_img {
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* ==================== 부고장 정보 ==================== */
.post_sect .post_info_wrap {
    padding: 0 50px;
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.post_info_area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post_info_area .title_box {
    background-color: #F8F8F8;
    border-radius: 4px;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    display: flex;
}

.post_info_area .title_box .title {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post_info_area .title_box .title::before {
    content: "";
    display: block;
    width: 22px;
    aspect-ratio: 32/37;
    background: url("/static/app_www/base/img/logo_short.png") center / cover no-repeat;
}

.post_info_area .title_box .btn_more {
    font-size: 18px;
    color: #5E5E5E;
    background-color: transparent;
}

.post_info_area .post_list:not(:last-of-type) {
    padding-bottom: 24px;
    border-bottom: 1px solid #E1E1E1;
}

.post_list>li:not(:last-child) {
    margin-bottom: 12px;
}

.post_item {
    display: flex;
    align-items: baseline;
    gap: 0 22px;
    font-size: 18px;
    padding: 0 16px;
}

.post_item.bold {
    font-weight: 700;
}

.post_item .title {
    min-width: 100px;
    flex-shrink: 0;
    color: #5E5E5E;
    display: flex;
    justify-content: space-between;
}

.post_item.new_layout .title {
    color: #7e7e7e;
}

.post_item .title.thin {
    min-width: 64px;
}

.post_item .title.wide {
    min-width: 97px;
}

.post_item .title span:only-child {
    margin: 0 auto;
}

.post_item .content {
    width: calc(100% - 116px);
}

.post_item.new_layout {
    flex-direction: column;
    gap: 8px;
}

.post_item.new_layout .content {
    width: 100%;
}

/* ========== 부고장 정보 - 상주 및 유가족 ========== */
.post_info_area.family .post_item .content {
    display: flex;
    gap: 8px 16px;
    align-items: center;
    flex-wrap: wrap;
    word-break: keep-all;
}

.post_info_area.family .post_item .content.bold {
    font-weight: 600;
}

.post_item .content_item {
    display: flex;
    gap: 8px;
    align-items: center;
    background-color: transparent;
    color: inherit;
}

.post_item .content_item .icon_wrap {
    display: flex;
    width: 24px;
    aspect-ratio: 1/1;
}

/* ========== 부고장 정보 - 부의금계좌 ========== */
.post_list.bank .content_item {
    display: flex;
    align-items: center;
    gap: 0 16px;
    padding: 4px 0;
}

.post_list.bank .btn_bankcopy {
    gap: 4px;
    border-radius: 50px;
    font-size: 16px;
    padding: 4px 8px;
    flex-shrink: 0;
}

.post_list.bank .btn_bankcopy::before {
    content: "";
    width: 14px;
    aspect-ratio: 1/1;
    background: url("/static/app_www/base/img/icon_copy.png") center / cover no-repeat;
}

/* ========== 오시는 길 ========== */
.post_info_area.funeral .map_box {
    border: 1px solid #BBBBBB;
    border-radius: 2px;
    min-height: 300px;
    pointer-events: none;
    touch-action: pan-y;
}

.map_funeral_name {
    display: inline-block;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    color: #333333;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    position: relative;
}

.map_funeral_name::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333333;
}

.map_funeral_name::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #ffffff;
    z-index: 1;
}

/* .post_info_area.funeral .content_box {
   padding-left: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px; 
}*/

.post_info_area.funeral .funeral_info .name {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.post_info_area.funeral .funeral_info .addr {
    font-size: 18px;
    color: #5E5E5E;
    text-align: center;
    margin-bottom: 16px;
}

.post_info_area.funeral .btn_group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.post_info_area.funeral .btn_group>* {
    display: flex;
    align-items: center;
    gap: 0 8px;
}


.post_info_area.funeral .btn_group>* i {
    border: 1px solid #5E5E5E;
    border-radius: 50%;
    font-size: 16px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #5E5E5E;
    color: #FFF;
}

.post_info_area.funeral .btn_group .icon_wrap {
    width: 24px;
    height: 24px;
    display: flex;
    flex-shrink: 0;
}

.post_info_area.funeral .btn_default {
    padding: 8px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    min-width: 180px;
    justify-content: center;
}

.post_info_area.funeral .sub_info_box {
    background-color: #F1F6FF;
    padding: 24px 0;
}

.post_info_area.funeral .sub_info_box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.post_info_area.funeral .sub_info_box li {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post_info_area.funeral .sub_info_box li:not(:last-child) {
    border-right: 1px solid #E1E1E1;
}

.post_info_area.funeral .sub_info_box .sub_item {
    background-color: transparent;
    font-size: 16px;
}

.post_info_area.funeral .sub_item .icon_box {
    width: 61px;
    aspect-ratio: 1/1;
    margin: 0 auto 8px;
    display: flex;
}

.post_info_area.funeral .sub_item .text_box {
    width: 69px;
    display: flex;
    margin: 0 auto;
    height: 20px;
}

.post_info_area.funeral .sub_item .text_box.tmap {
    width: 40px;
}

.post_info_area.funeral .sub_item .text_box img {
    object-fit: contain;
}

/* ========== 근조화환 보내신 분 ========== */
.post_info_area.flower .post_list>li:not(:last-child) {
    border-bottom: 1px solid #E1E1E1;
    padding-bottom: 12px;
}

.post_info_area.flower .post_item {
    flex-wrap: nowrap;
    align-items: center;
}

.post_info_area.flower .post_item .title {
    min-width: unset;
    font-weight: 700;
    color: #222;
    flex-shrink: 0;
}

.post_info_area.flower .post_item .content.full {
    width: auto;
    flex: 1;
    text-align: right;
}

/* ========== 조문메세지 ========== */
.post_info_area.message .post_list>li:not(:last-child) {
    border-bottom: 1px solid #E1E1E1;
    padding-bottom: 12px;
}

.post_info_area.message .text_reduce {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    overflow: visible;
    text-overflow: unset;
}

.post_info_area.message .btn_default {
    width: fit-content;
    margin-left: auto;
    padding: 12px 34px;
    font-weight: 700;
}

/* ========== 최하단 버튼영역 ========== */
.post_sect .post_btn_wrap {
    position: relative;
    z-index: 2;
    padding: 16px 50px;
    background-color: #fff;
}

.post_btn_list {
    display: flex;
    gap: 10px;
}

.post_btn_list>li {
    flex: 1;
    min-width: 0;
}

.post_btn_list .btn_default {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-align: center;
    letter-spacing: 0.02em;
    transition: transform 0.15s, box-shadow 0.15s;
}

.post_btn_list .btn_default:active {
    transform: scale(0.97);
}

.post_btn_list .btn_bank {
    background-color: #F5C842;
    border-color: #E8BA30;
    color: #3A2D00;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0 5px;
    box-shadow: 0 2px 6px rgba(245, 200, 66, 0.3);
}

.post_btn_list .btn_default.border_main {
    background-color: #F6F8FC;
    border-color: #C8D3E6;
    color: var(--main-color);
    box-shadow: 0 1px 4px rgba(10, 24, 50, 0.06);
}

.post_btn_list .btn_default.fill_main {
    box-shadow: 0 2px 8px rgba(10, 24, 50, 0.25);
}

.post_list .alert_box .title::before {
    display: none;
}

@media screen and (max-width:1023px) {

    .page_title {
        font-size: 30px;
        margin-bottom: 32px;
    }

    .post_sect {
        gap: 40px;
        padding-bottom: 20px;
    }

    /* ==================== 고인 성함 ==================== */
    .post_title .sub_title,
    .post_title.in_black .sub_title {
        font-size: 18px;
    }

    .post_title .title,
    .post_title.in_black .title {
        font-size: 18px;
    }

    /* ==================== 상단 ==================== */
    .post_top_wrap {
        aspect-ratio: 1/0.3;
    }

    .post_top_wrap .post_img_box {
        width: 40%;
    }

    /* ==================== 부고장 정보 ==================== */
    .post_sect .post_info_wrap {
        gap: 32px;
        padding: 0 8px;
    }

    .post_info_area {
        gap: 16px;
    }

    .post_info_area .title_box {
        padding: 10px 16px;
        width: calc(100% + 16px);
        transform: translateX(-8px);
    }

    .post_info_area .title_box .title {
        font-size: 18px;
    }

    .post_info_area .title_box .title::before {
        width: 14px;
        height: 15px;
    }

    .post_info_area .title_box .btn_more {
        font-size: 16px;
    }

    .post_info_area .post_list:not(:last-of-type) {
        padding-bottom: 16px;
    }

    .post_item {
        gap: 8px clamp(8px, 3vw, 22px);
        padding: 0 8px;
        flex-wrap: wrap;
    }

    .post_item .title {
        font-size: clamp(12px, 3.6vw, 16px);
    }

    .post_item .title.thin {
        min-width: clamp(46px, 13vw, 57px);
    }

    .post_item .title.wide {
        min-width: clamp(58px, 17vw, 86px);
    }

    .post_item .content {
        width: auto;
        flex: 1;
        min-width: 0;
        font-size: clamp(12px, 3.6vw, 16px);
    }

    .post_item p.content.bold {
        white-space: nowrap;
    }

    .post_item .content.full {
        width: 100%;
        flex: unset;
    }

    /* ========== 오시는 길 ========== */
    .post_info_area.funeral .content_box {
        flex-wrap: wrap;
        padding: 0 8px;
    }

    .post_info_area.funeral .funeral_info .name {
        font-size: 18px;
    }

    .post_info_area.funeral .funeral_info .addr {
        font-size: 16px;
    }

    .post_info_area.funeral .btn_group {
        width: 100%;
    }

    .post_info_area.funeral .btn_default {
        width: 100%;
        padding: 8px 0;
    }

    .post_info_area.funeral .sub_info_box {
        gap: 0;
    }

    .post_info_area.funeral .sub_item .icon_box {
        width: 40px;
    }

    /* ========== 근조화환 보내신 분 ========== */
    .post_info_area.flower .post_item {
        flex-wrap: wrap;
    }

    .post_info_area.flower .post_item .title {
        width: 100%;
        font-size: clamp(14px, 3.8vw, 16px);
    }

    .post_info_area.flower .post_item .content.full {
        width: 100%;
        font-size: clamp(12px, 3.4vw, 15px);
    }

    /* ========== 조문메세지 ========== */
    .post_info_area.message .btn_default {
        padding: 8px 20px;
    }

    /* ========== 최하단 버튼영역 ========== */
    .post_sect .post_btn_wrap {
        position: sticky;
        bottom: 0;
        width: 100%;
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #E1E1E1;
    }

    .post_btn_list {
        gap: 8px;
    }

    .post_btn_list .btn_default {
        padding: clamp(12px, 3.5vw, 15px) 0;
        font-size: clamp(13px, 3.6vw, 16px);
    }

    .post_info_area.funeral .btn_default {
        min-width: 100px;
    }

    .post_info_area.funeral .btn_group>* {
        padding: 8px 4px;
    }

    .post_info_area.funeral .btn_group>* i {
        font-size: 12px;
        width: 24px;
        height: 24px;
    }

    .post_info_area.funeral .btn_group>* span {
        font-size: 14px;
    }
}

@media screen and (max-width:767px) {
    .page_title {
        font-size: 22px;
    }

    /* ==================== 상단 ==================== */
    .post_top_wrap .post_img_box {
        width: 35%;
    }

    .post_info_area.funeral .sub_item .text_box {
        width: 56px;
    }
}

/* ========== 상주에게전달 팝업 ========== */
.popup_send_family .select_all_item {
    border-bottom: 1px solid #E1E1E1;
    padding-bottom: 12px;
}

/* ========== 병원 확인용 안내 모달 ========== */
.popup_hospital_notice .popup_center {
    max-width: 360px;
}

.popup_hospital_notice .popup_body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px 28px;
    gap: 28px;
}

.popup_hospital_notice .notice_icon_wrap {
    display: flex;
    justify-content: center;
}

.popup_hospital_notice .notice_icon_circle.hospital {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E6F7F0 0%, #C4ECDB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup_hospital_notice .notice_icon_circle.hospital i {
    font-size: 40px;
    color: #2B9A6A;
}

.popup_hospital_notice .notice_text_wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popup_hospital_notice .notice_title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.popup_hospital_notice .notice_badge {
    display: inline-block;
    margin: 0 auto;
    padding: 6px 16px;
    background-color: #E6F7F0;
    border: 1px solid #2B9A6A;
    border-radius: 999px;
    color: #2B9A6A;
    font-size: 14px;
    font-weight: 700;
}

.popup_hospital_notice .notice_desc {
    font-size: 15px;
    color: #5E5E5E;
    line-height: 1.8;
    word-break: keep-all;
}

.popup_hospital_notice .notice_desc strong {
    color: #2B9A6A;
    font-weight: 700;
    font-size: 16px;
}

.popup_hospital_notice .notice_confirm_btn {
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
}

@media screen and (max-width: 767px) {
    .popup_hospital_notice .popup_center {
        max-width: calc(100% - 40px);
    }

    .popup_hospital_notice .popup_body {
        padding: 32px 20px 24px;
        gap: 24px;
    }

    .popup_hospital_notice .notice_icon_circle.hospital {
        width: 68px;
        height: 68px;
    }

    .popup_hospital_notice .notice_icon_circle.hospital i {
        font-size: 34px;
    }

    .popup_hospital_notice .notice_title {
        font-size: 20px;
    }

    .popup_hospital_notice .notice_desc {
        font-size: 14px;
    }

    .popup_hospital_notice .notice_confirm_btn {
        padding: 12px 0;
        font-size: 15px;
    }
}

/* ========== 입실일 안내 모달 ========== */
.popup_future_notice .popup_center {
    max-width: 340px;
}

.popup_future_notice .popup_body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 28px 28px;
    gap: 24px;
}

.popup_future_notice .notice_icon_wrap {
    display: flex;
    justify-content: center;
}

.popup_future_notice .notice_icon_circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E8EFFF 0%, #D0DFFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup_future_notice .notice_icon_circle i {
    font-size: 36px;
    color: var(--sub-color, #2352BC);
}

.popup_future_notice .notice_text_wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup_future_notice .notice_title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.popup_future_notice .notice_desc {
    font-size: 15px;
    color: #5E5E5E;
    line-height: 1.7;
    word-break: keep-all;
}

.popup_future_notice .notice_desc strong {
    color: var(--sub-color, #2352BC);
    font-weight: 700;
    font-size: 16px;
}

.popup_future_notice .notice_confirm_btn {
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
}

@media screen and (max-width: 767px) {
    .popup_future_notice .popup_center {
        max-width: calc(100% - 48px);
    }

    .popup_future_notice .popup_body {
        padding: 32px 24px 24px;
        gap: 20px;
    }

    .popup_future_notice .notice_icon_circle {
        width: 60px;
        height: 60px;
    }

    .popup_future_notice .notice_icon_circle i {
        font-size: 30px;
    }

    .popup_future_notice .notice_title {
        font-size: 18px;
    }

    .popup_future_notice .notice_desc {
        font-size: 14px;
    }

    .popup_future_notice .notice_desc strong {
        font-size: 15px;
    }

    .popup_future_notice .notice_confirm_btn {
        padding: 12px 0;
        font-size: 15px;
    }
}

.text_comment,
.text_bank {
    font-weight: 600;
}