/* reservation.css */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    background: #f6f7f9;
    color: #262626;
}

:root {
    --teal: #00A3A3;
    --line: #e7e9ee;
    --shadow: 0 10px 30px rgba(17, 24, 39, .08);
    --radius: 14px;
}

/* ===== 페이지 레이아웃 ===== */
.rc-main {
    width: 100%;
    max-width: 1920px;
    min-height: calc(100vh - 80px);
    margin: 0 auto;
    background: #f6f7f9;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    box-sizing: border-box;
}

.rc-wrap {
    display: grid;
    place-items: center;
    width: 1461px;
    flex: 1 1 auto;
    border-radius: 15px;
    margin: 0 auto;
    min-height: 0;
    background: #fff;
}

/* 카드(가운데 흰 박스) */
.rc-card {
    width: 520px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, .03);
    overflow: hidden;
}

.rc-card#resultCard {
    width: min(94vw, 860px);   /* 넓은 화면에서 좀 더 여유, 좁은 화면 반응형 */
    padding: 25px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 180px);
    min-height: 0;
}

/* ===== 상단 탭 ===== */
.rc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1.5px solid var(--teal);
    background: #f6f7f9;
    gap: 5px;
}

/* 탭 버튼 */
.rc-tab {
    height: 54px;
    border: 0;
    cursor: pointer;
    background: #fff;
    color: #262626;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* 아이콘 크기 */
.rc-tab img {
    width: 24px;
    height: 24px;
    display: block;
    margin-top: 2px;
}

/* 비활성 탭은 위쪽 라운드만 살짝 */
.rc-tab:not(.is-active) {
    border-bottom: 0;
    margin: 0;
    border-radius: 15px 15px 0 0;
    height: 54px;
}

/* 활성 탭 */
.rc-tab.is-active {
    background: var(--teal);
    color: #fff;
    margin: 0;
    border-radius: 10px 10px 0 0;
}

.rc-result-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 20px;
}

/* ===== 문구/입력 ===== */
.rc-title {
    margin: 35px 20px 10px;
    text-align: center;
    color: #262626;
    font-size: 20px;
    font-weight: 600;
}

.rc-title span {
    color: var(--teal);
    font-weight: 700;
}

.rc-desc {
    margin: 0 20px 30px;
    text-align: center;
    color: #4D4D4D;
    font-size: 16px;
    font-weight: 400;
}

.rc-input {
    width: calc(100% - 40px);
    margin: 0 20px;
    height: 58px;
    border-radius: 12px;
    border: 1px solid #d9d9d9;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    background: #fff;
    color: #262626;
}

.rc-input::placeholder {
    color: #a6a6a6;
}

.rc-input:focus {
    border: 1.5px solid var(--teal);
}

.rc-input.is-error {
    border: 1.5px solid var(--teal);
    padding-right: 56px;
    background: url("/pc/img/caution_icon.png") no-repeat right 16px center;
    background-size: 22px;
}

.rc-help {
    margin: 8px 20px 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--teal);
}

.rc-help.is-hidden {
    display: none;
}

/* ===== 버튼 ===== */
.rc-btn {
    width: calc(100% - 40px);
    margin: 30px 20px;
    height: 54px;
    border: 0;
    border-radius: 10px;
    background: var(--teal);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
}

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

.is-invisible {
    visibility: hidden;
}

.is-hidden-check {
    visibility: hidden;
}

/* ===== 결과 카드 ===== */
.rc-result-title {
    margin: 22px 20px 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #262626;
}

.rc-result-title span {
    color: var(--teal);
}

.rc-result-section {
    width: 100%;
}

.rc-result-section:last-child {
    margin-top: 20px;
}

.rc-result-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.rc-result-head .h-title {
    font-size: 20px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 10px;
}

.rc-result-head .h-title span {
    color: var(--teal);
}

.rc-result-head .h-count {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.rc-result-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rc-result-desc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 400;
    color: #4D4D4D;
}

.h-count {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
}

.h-count span {
    color: var(--teal);
}

/* 리스트 박스 */
.rc-listbox {
    border: 1px solid #F2F2F2;
    border-radius: 9px;
    background: #f9f9f9;
    padding: 15px;
}

.rc-group+.rc-group {
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #666;
}

/* 날짜/예매자 한 줄 */
.rc-row-top-wtl {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    padding-bottom: 5px;
}

.rc-row-top {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    padding-bottom: 5px;
    justify-content: space-between;
}

.rc-row-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rc-status {
    width: 70px;
    height: 30px;
    font-size: 13px;
    line-height: 24px;
    font-weight: 550;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.status-active {
    color: #00A3A3;
    background: #DDF5F5;
}

.status-cancelled {
    color: #d9534f;
    background: #FFF1F1;
}

.status-completed {
    color: #007BFF;
    background: #EAF8FF;
}

/* 상세 행(상품명/이용일/이용인원) */
.rc-row {
    display: grid;
    /* 이용인원(3번째)이 자주 길어져서 여유 있게 재분배 + shrink 허용(minmax 0) */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.5fr);
    gap: 20px;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 5px 0;
    font-size: 14px;
    border: 1px solid #F2F2F2;
    min-height: 50px;
    font-weight: 600;
}

.rc-kv {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 0;                /* grid item 이 shrink 가능하도록 */
    overflow: hidden;
    text-overflow: ellipsis;
}
.rc-kv > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-kv b {
    font-weight: 600;
    color: #262626;
}

.rc-kv .bar {
    color: #D9D9D9;
    font-weight: 200;
}

.rc-kv .color {
    color: var(--teal);
    text-decoration: none;
    font-weight: 400;
}

.rc-kv span {
    font-weight: 400;
}

/* 체크박스 */
.rc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rc-check input {
    display: none;
}

.rc-check-box {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    border: 1px solid #D9D9D9;
    background: #fff;
    display: block;
}

/* 체크 되었을 때 */
.rc-check input:checked+.rc-check-box {
    background: var(--teal);
    border-color: var(--teal);
    background-image: url("/pc/img/check_w_icon.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

/* 하단 버튼 */
.rc-actions {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    gap: 10px;
    margin-top: 30px;
}

.btn-back {
    height: 54px;
    border-radius: 9px;
    border: 0;
    background: #f2f2f2;
    font-size: 20px;
    font-weight: 600;
    color: #262626;
    cursor: pointer;
}

.btn-cancel {
    height: 54px;
    border-radius: 9px;
    border: 0;
    background: #DDF5F5;
    font-size: 20px;
    font-weight: 600;
    color: var(--teal);
    cursor: pointer;
}

/* ===== 스크롤 커스터마이징 ===== */
.rc-result-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.rc-result-list::-webkit-scrollbar-thumb {
    background-color: #DADADA;
    border-radius: 4px;
}

.rc-result-list::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

.rc-result-list::-webkit-scrollbar-track {
    background: transparent;
}


/* ===== 예약취소 모달 ===== */
.rc-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

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

.btn-cancel.is-active {
    background: var(--teal);
    color: #fff;
}

.rc-modal-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.rc-modal-panel {
    position: relative;
    width: 500px;
    max-width: calc(100vw - 40px);
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    padding: 32px 28px 26px;
}

.rc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 12px;
    height: 12px;
    border: 0;
    cursor: pointer;
    background-color: transparent;
    background-image: url("/pc/img/close_icon.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* .rc-modal-close:hover {
  opacity: 1;
} */

.rc-modal-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 10px;
}

.rc-modal-desc {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #4d4d4d;
    margin-bottom: 30px;
}

.rc-modal-desc .accent {
    color: var(--teal);
    font-weight: 600;
}

.rc-modal-form {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

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

.rc-modal-input {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
    outline: none;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #262626;
    margin-bottom: 10px;
}

.rc-modal-input:focus {
    border: 1.5px solid var(--teal);
}

/* 기본(안내/오류/완료): 회색 버튼 */
.rc-modal-ok {
    width: 100%;
    height: 54px;
    border-radius: 10px;
    border: 0;
    background: #f2f2f2;
    color: #262626;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
}

/* 비밀번호 모달: 민트 버튼 */
.rc-modal-ok.is-teal {
    background: var(--teal);
    color: #fff;
}

/* 비밀번호 에러 메세지 */
#rcModalForm #pwHelp {
    margin: 0;
    padding: 0;
}

#rcModalForm .rc-modal-input {
    margin-bottom: 0;
}

/* 모달 열렸을 때 배경 스크롤 방지 */
body.is-modal-open {
    overflow: hidden;
}

/* ===== 취소 안내 모달 (수수료 미리보기) ===== */
.cancel-info-notice {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 18px;
}

.cancel-info-body {
    background: #f9f9f9;
    border: 1px solid #e7e9ee;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 14px;
}

.cancel-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
}

.cancel-info-label {
    color: #4d4d4d;
    font-weight: 500;
}

.cancel-info-value {
    font-weight: 600;
    color: #262626;
}

.cancel-info-fee {
    color: #d9534f;
}

.cancel-info-divider {
    border-top: 1px solid #e7e9ee;
    margin: 6px 0;
}

.cancel-info-refund-row {
    padding-top: 10px;
}

.cancel-info-refund {
    color: var(--teal);
    font-size: 17px;
}

.cancel-info-policy-btn {
    width: 100%;
    background: none;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 9px 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin-bottom: 10px;
}

.cancel-info-policy-btn:hover {
    background: #f6f7f9;
}

.cancel-info-table-wrap {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e7e9ee;
}

.cancel-info-table-wrap.is-hidden {
    display: none !important;
}

.cancel-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cancel-info-table th {
    background: #f2f2f2;
    color: #4d4d4d;
    font-weight: 600;
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid #e7e9ee;
}

.cancel-info-table td {
    padding: 8px 12px;
    text-align: center;
    color: #262626;
    border-bottom: 1px solid #f2f2f2;
}

.cancel-info-table tr:last-child td {
    border-bottom: none;
}

.cancel-info-question {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    margin: 14px 0 16px;
}

/* ===== 결과 상단 탭 ===== */
.rc-result-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1.5px solid var(--teal);
    background: #f6f7f9;
    gap: 5px;
    margin: -25px -25px 20px -25px;
}

.rc-result-tab {
    height: 54px;
    border: 0;
    cursor: pointer;
    background: #fff;
    color: #262626;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.rc-result-tab.is-active {
    background: #00A3A3;
    color: #fff;
}

/* 탭 내용 */
.rc-result-panel {
    display: none;
}

.rc-result-panel.is-active {
    display: block;
}

.rc-result-panel {
    display: none;
}

.rc-result-panel.is-active {
    display: block;
}