@charset "utf-8";

/* B2 — 옵션 & 인원 선택 (카드 + 스테퍼)
   정본 규격: .claude/skills/style/item-detail-page.md */

/* 날짜 변경 재조회 중 — 응답이 오면 블록이 교체되므로 상태가 함께 사라진다 */
.item-option--loading {
    opacity: .5;
    pointer-events: none;
    transition: opacity .15s;
}

.item-option__empty {
    margin: 0;
    padding: 22px;
    border: 1px dashed var(--tp-line);
    border-radius: 14px;
    background: var(--tp-bg);
    color: var(--tp-gray);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.item-option__card {
    margin-bottom: 16px;
    padding: 20px 24px;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(20, 30, 55, .05);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

.item-option__card:hover {
    box-shadow: 0 4px 16px rgba(20, 30, 55, .10);
    transform: translateY(-2px);
}

.item-option__card--has-qty {
    border-color: var(--tp-blue);
    box-shadow: 0 4px 8px rgba(26, 95, 214, .16);
    transform: translateY(-2px);
}

.item-option__card--hidden { display: none; }

.item-option__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.item-option__name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.item-option__name-en {
    display: block;
    margin-top: 4px;
    color: var(--tp-gray);
    font-size: 12px;
    font-weight: 400;
}

.item-option__offer {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 24px;
    background: var(--tp-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.item-option__notice {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    background: #fdf5ec;
    color: #a8703a;
    font-size: 12px;
}

/* ===== 인원 행 ===== */
.item-option__pax {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
}

.item-option__pax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.item-option__pax-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.item-option__pax-type {
    font-size: 14px;
    font-weight: 500;
}

.item-option__pax-type small {
    margin-left: 4px;
    color: var(--tp-gray);
    font-size: 13px;
    font-weight: 400;
}

.item-option__pax-price {
    color: var(--tp-blue);
    font-size: 16px;
    font-weight: 700;
}

/* 현장 잔금 — 예약금(파랑, 온라인 결제)과 성격이 달라 보조 색·작은 크기로 낮춘다.
   인원 유형마다 단가가 다르므로 카드 단위가 아니라 행 단위로 붙는다. */
.item-option__pax-balance {
    display: block;
    margin: 0 0 0 16px;
    color: var(--tp-warn-text);
    font-size: 13px;
    font-weight: 500;
}

.item-option__pax-price--na {
    color: var(--tp-disabled);
    font-weight: 500;
    font-size: 13px;
}

.item-option__pax-na {
    color: var(--tp-disabled);
    font-size: 12px;
}

/* ===== 스테퍼 ===== */
.item-option__stepper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-option__step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--tp-line);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 30, 55, .06);
    color: var(--tp-blue);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.item-option__step:disabled {
    background: #fafbfc;
    color: var(--tp-disabled);
    cursor: not-allowed;
}

.item-option__step:not(:disabled):hover {
    background: var(--tp-blue);
    border-color: var(--tp-blue);
    color: #fff;
}

.item-option__step:focus-visible {
    outline: 2px solid var(--tp-blue);
    outline-offset: 2px;
}

.item-option__qty {
    min-width: 24px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

/* ===== 전체보기 토글 ===== */
.item-option__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--tp-line);
    border-radius: 8px;
    background: #fff;
    color: var(--tp-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.item-option__toggle:hover { background: var(--tp-bg);}

/* 터치 타겟 확보 */
@media (max-width: 780px) {
    .item-option__card {padding: 16px 16px;}
    .item-option__step {width: 38px; height: 38px; }
    .item-option__pax-row {align-items: flex-start; }

    .item-option__pax {gap: 12px;}
    .item-option__pax-info {gap:8px;}

    .item-option__pax-balance {margin: 0;}
    
}
