/* 포인트 내역 모달 (#hmPointModal) — 셸은 hm_scrap_modal 과 공유 */

#hmPointModal.hm_point_modal.hm_scrap_modal .hm_scrap_modal__panel {
    width: min(480px, calc(100vw - 40px));
    max-width: min(480px, calc(100vw - 40px));
}

#hmPointModal.hm_point_modal .hm_point_modal_inner {
    text-align: left;
}

/* 페이징 등 재로딩 시 전체를 비우지 않고 잠시만 흐리게 */
#hmPointModalBody.hm_point_modal__body--loading {
    opacity: 0.86;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

#hmPointModal.hm_point_modal .point_all {
    margin: 0 0 12px;
    border-radius: 8px;
    background: #edf3fc;
    border: 1px solid #d6e2f4;
    color: #485172;
    font-size: 0.92rem;
    list-style: none;
    padding: 0;
    overflow: hidden;
}

#hmPointModal.hm_point_modal .point_all:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: '';
}

#hmPointModal.hm_point_modal .point_all li {
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    margin: 0;
}

#hmPointModal.hm_point_modal .point_all .full_li span {
    float: right;
    color: #111827;
    font-weight: 800;
    font-size: 1.05rem;
}

#hmPointModal.hm_point_modal .point_list li:first-child {
    border-top: 1px solid #ececec;
}

#hmPointModal.hm_point_modal .point_list li {
    border-bottom: 1px solid #ececec;
    background: #fff;
    padding: 12px 10px;
    list-style: none;
    position: relative;
}

#hmPointModal.hm_point_modal .point_list li:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: '';
}

#hmPointModal.hm_point_modal .point_list .point_use {
    background: #f6f6f6;
}

#hmPointModal.hm_point_modal .point_list .point_use .point_num {
    color: #ff4f76;
}

#hmPointModal.hm_point_modal .point_list .point_num {
    font-size: 1.08rem;
    color: #3a8afd;
    font-weight: 800;
    position: absolute;
    right: 10px;
    top: 18px;
}

#hmPointModal.hm_point_modal .point_list .point_top {
    line-height: 1.35;
    margin: 0 76px 4px 0;
    overflow: visible;
}

#hmPointModal.hm_point_modal .point_list .point_tit {
    font-weight: 700;
    font-size: 0.94rem;
    display: block;
    word-break: break-word;
}

#hmPointModal.hm_point_modal .point_list .point_date1,
#hmPointModal.hm_point_modal .point_list .point_date {
    float: none;
    display: inline;
    color: #888d92;
    font-size: 0.78rem;
}

#hmPointModal.hm_point_modal .point_list .txt_expired {
    color: #d64545;
    margin-left: 4px;
}

#hmPointModal.hm_point_modal .point_list .empty_li {
    padding: 22px;
    text-align: center;
    color: #6b7280;
    border-bottom: none;
}

#hmPointModal.hm_point_modal .point_status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    background: #5b6470 !important;
    border: 0 !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
}

#hmPointModal.hm_point_modal .point_status:after {
    display: none !important;
}

#hmPointModal.hm_point_modal .hm_point_status_vals {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

#hmPointModal.hm_point_modal .hm_point_status_vals span {
    float: none;
    margin: 0;
}

.hm_point_paging {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0 4px;
    margin-top: 4px;
    border-top: 1px solid #eee;
}

.hm_point_paging__nums {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.hm_point_paging__meta {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    padding-top: 2px;
}

.hm_point_paging__arrow,
.hm_point_paging__num {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.hm_point_paging__num--current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    background: #283593;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.hm_point_paging__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    #hmPointModal.hm_point_modal.hm_scrap_modal .hm_scrap_modal__panel {
        width: 100%;
        max-width: none;
    }

    /* hm_scrap_modal.css 모바일 풀폭 패널과 동작 맞춤 */
    #hmPointModal.hm_point_modal.hm_scrap_modal .hm_scrap_modal__panel.hm_point_modal__panel {
        align-self: stretch;
    }
}

@media (prefers-color-scheme: dark) {
    body.hm-mobile #hmPointModal.hm_point_modal .point_all {
        background: rgba(59, 130, 246, 0.12);
        border-color: rgba(255, 255, 255, 0.12);
        color: var(--hm-text-main, #e1e1e1);
    }

    body.hm-mobile #hmPointModal.hm_point_modal .point_all .full_li span {
        color: var(--hm-text-main, #e1e1e1);
    }

    body.hm-mobile #hmPointModal.hm_point_modal .point_list li {
        background: var(--hm-bg-card, #252525);
        border-bottom-color: var(--hm-border, #2c2c2e);
    }

    body.hm-mobile #hmPointModal.hm_point_modal .point_list .point_use {
        background: rgba(255, 255, 255, 0.04);
    }

    body.hm-mobile #hmPointModal.hm_point_modal .point_list .point_tit {
        color: var(--hm-text-main, #e1e1e1);
    }

    body.hm-mobile #hmPointModal.hm_point_modal .point_list .point_date1,
    body.hm-mobile #hmPointModal.hm_point_modal .point_list .point_date {
        color: var(--hm-text-muted, #787878);
    }

    body.hm-mobile #hmPointModal.hm_point_modal .point_list .empty_li {
        color: var(--hm-text-muted, #9ca3af);
    }

    body.hm-mobile #hmPointModal.hm_point_modal .hm_point_paging {
        border-top-color: var(--hm-border, #2c2c2e);
    }

    body.hm-mobile #hmPointModal.hm_point_modal .hm_point_paging__arrow,
    body.hm-mobile #hmPointModal.hm_point_modal .hm_point_paging__num:not(.hm_point_paging__num--current) {
        border-color: var(--hm-card-border, rgba(255, 255, 255, 0.14));
        background: var(--hm-bg-card, #252525);
        color: var(--hm-text-main, #e1e1e1);
    }

    body.hm-mobile #hmPointModal.hm_point_modal .hm_point_paging__meta {
        color: var(--hm-text-sub, #a1a1a1);
    }

    body.hm-mobile #hmPointModal.hm_point_modal #point .txt_expired {
        color: #fca5a5;
    }

    body.hm-mobile #hmPointModal.hm_point_modal #point .point_list .point_num {
        color: #90caf9;
    }

    body.hm-mobile #hmPointModal.hm_point_modal #point .point_list .point_use .point_num {
        color: #f48fb1;
    }
}
