@charset "utf-8";

/**
 * 장착점 방문 예약 모달 — 열림/닫힘·상태 클래스·pseudo
 */

.mount-reserve-modal,
.mount-reserve-success {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mount-reserve-modal.is-open,
.mount-reserve-success.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mount-reserve-modal__panel {
    transform: translateY(100%);
    transition: transform 0.25s ease;
}

.mount-reserve-modal.is-open .mount-reserve-modal__panel {
    transform: translateY(0);
}

@media (min-width: 1024px) {
    .mount-reserve-modal__panel {
        transform: translateY(1rem);
    }

    .mount-reserve-modal.is-open .mount-reserve-modal__panel {
        transform: translateY(0);
    }
}

.mount-reserve-success__panel {
    transform: scale(0.96);
    transition: transform 0.2s ease;
}

.mount-reserve-success.is-open .mount-reserve-success__panel {
    transform: scale(1);
}

/* 캘린더 날짜 상태 */
.mount-reserve-calendar__day.is-outside {
    visibility: hidden;
}

.mount-reserve-calendar__day.is-blocked {
    color: #b7c0c7;
}

.mount-reserve-calendar__day.is-blocked.is-muted {
    color: #ced5db;
}

.mount-reserve-calendar__day.is-bookable {
    color: rgba(0, 0, 0, 0.8);
    background-color: #ebf5ff;
    cursor: pointer;
    font-weight: 400;
}

.mount-reserve-calendar__day.is-bookable:hover {
    background-color: #d9ebff;
}

.mount-reserve-calendar__day.is-selected {
    color: #fff;
    background-color: var(--color-primary);
}

.mount-reserve-calendar__day.is-bookable.is-selected:hover {
    background-color: var(--color-primary);
}

/* 시간 슬롯 구분선 */
.mount-reserve-slot-row:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .mount-reserve-slot-row:not(:last-child)::after {
        left: 0.5rem;
        right: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .mount-reserve-slot-row:not(:last-child)::after {
        left: 1.25rem;
        right: 1.25rem;
    }
}

.mount-reserve-slot-row.is-full {
    background-color: transparent;
}

.mount-reserve-slot-row__badge--full {
    background-color: #eaeff2;
    color: rgba(0, 0, 0, 0.6);
}

.mount-reserve-slot-row__badge--open {
    background-color: #ebf5ff;
    color: var(--color-primary);
}

.mount-reserve-slot-row.is-full .mount-reserve-slot-row__time {
    color: rgba(0, 0, 0, 0.3);
}

.mount-reserve-slot-row__action--full {
    border: 0;
    background-color: #f6f6f6;
    color: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
}

.mount-reserve-slot-row__action--pick {
    border: 1px solid var(--color-primary);
    background-color: #fff;
    color: var(--color-primary);
}

.mount-reserve-slot-row__action--pick:hover {
    background-color: #f0f7ff;
}

.mount-reserve-slot-row__action--selected {
    border: 1px solid var(--color-primary);
    background-color: var(--color-primary);
    color: #fff;
}

body.mount-reserve-modal-open {
    overflow: hidden;
}
