@charset "utf-8";

/*
 * 이용내역 (폰 목업 셸 전용)
 * 기존 인라인 <style> 과 style.css 규칙 중 필요한 것만 옮겼다. rem -> px 환산.
 * 공통 셸은 page/css/mypage_shell.css 가 담당한다.
 */

.charge-content {
    min-height: calc(var(--phone-visible-height, 740px) - 50px);
    padding: 16px 20px 30px;
    background: #fff;
}

/* ── 썸네일 카드 (이용내역·상담후기 공통 구조) ────── */

.charge_list, .rv_list, .review_list {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.charge_list .item, .rv_list .item, .review_list .item {
    position: relative;
    width: 320px;
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.charge_list .thumbox, .rv_list .thumbox, .review_list .thumbox {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--light);
}

.charge_list .thumbox .img, .rv_list .thumbox .img, .review_list .thumbox .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.charge_list .txtbox, .rv_list .txtbox, .review_list .txtbox {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.charge_list .titbox, .rv_list .titbox, .review_list .titbox {
    display: flex;
    align-items: center;
    gap: 6px;
}

.charge_list .badge, .rv_list .badge, .review_list .badge {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--pink);
    color: var(--red);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.charge_list .badge.saju, .rv_list .badge.saju, .review_list .badge.saju { background: #fff3e6; color: #c47a1a; }
.charge_list .badge.sin,  .rv_list .badge.sin,  .review_list .badge.sin  { background: var(--pink); color: var(--red); }
.charge_list .badge.tarot,.rv_list .badge.tarot,.review_list .badge.tarot{ background: #efeaff; color: #6b4bd6; }

.charge_list .name, .rv_list .name, .review_list .name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.charge_list .descbox, .rv_list .descbox, .review_list .descbox {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.charge_list .descbox .txt, .rv_list .descbox .txt, .review_list .descbox .txt {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.charge_list .descbox .bar, .rv_list .descbox .bar, .review_list .descbox .bar {
    width: 1px;
    height: 10px;
    background: var(--line);
}

.charge_list .bottom, .rv_list .bottom, .review_list .bottom {
    display: flex;
    align-items: center;
    gap: 8px;
}

.charge_list .time, .charge_list .date,
.rv_list .time, .rv_list .date,
.review_list .time, .review_list .date {
    margin: 0;
    color: #999;
    font-size: 11px;
}

/* 더보기 — common.css 의 .more_box 규칙이 로드되지 않으므로 여기서 정의 */
.more_box {
    width: 320px;
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.more_box .more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.more_box .more .arrow {
    width: 7px;
    height: 7px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
}

.more_box[style*="none"], .more_box.hide { display: none; }

.empty-message, .no_data {
    width: 320px;
    padding: 40px 0;
    color: #999;
    font-size: 13px;
    text-align: center;
}

/* ── 상세내역 모달 ────────────────────────────────
 *
 * .screen-scale 안(.app-screen 의 형제)에 놓인다 — page/_phone_shell_bottom.php
 * 의 $shell_overlay 슬롯. position:fixed 로 두면 브라우저 뷰포트를 덮어
 * 프로모션 패널까지 어두워지므로 absolute + inset:0 로 폰 화면만 덮는다.
 *
 * 색·크기는 전환 전 원본(charge_list2.php 인라인 style)의 값을 따른다.
 */

.modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 60;              /* .detail-topbar(sticky, z-index:5) 위 */
    display: none;            /* 열 때 JS 가 flex 로 바꾼다 */
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .5);
}

.modal-box {
    box-sizing: border-box;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 22px 20px;
    border-radius: 16px;
    background: #fff;
    font-family: Pretendard, sans-serif;
    scrollbar-width: none;
}

.modal-box::-webkit-scrollbar { display: none; }

.modal-title {
    margin-bottom: 18px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
}

/* 이용내역 / 결제내역 / 총요금 사이 구분선 */
.modal-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.section-title {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

/* 좌: 항목명 / 우: 금액 */
.modal-box .row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
}

.modal-box .row > span:last-child { font-weight: 600; }

/* 금액 밑에 붙는 사유·시각. charge_list2.js 가 .row 다음 형제로 append 한다. */
.payment-date {
    display: block;
    margin: 0 0 10px;
    color: #999;
    font-size: 11px;
    font-weight: 500;
    text-align: right;
}

.modal-total { margin-bottom: 20px; }

.modal-box .row.total-price {
    margin: 6px 0;
    color: #0090ff;
    font-size: 15px;
    font-weight: 700;
}

.modal-box .row.total-price > span:last-child { font-weight: 700; }

.close-btn {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 10px;
    /* 팬 멤버십 상세 내역 모달의 확인 버튼과 동일 값 (my_membership.css:157) */
    background: #666;
    color: #fff;
    font-family: Pretendard, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
