/* ==================================== 마이페이지 공용 사이드 메뉴 (PC 전용) ==================================== */
.mp_side {
    flex-shrink: 0;
    width: 232px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mp_side_head {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.mp_side_line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #222;
}

.mp_nav {
    display: flex;
    flex-direction: column;
}

.mp_nav_item {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 8px;
    border-radius: 2px;
    font-size: 15px;
    color: #5e5e5e;
    transition: background-color 0.15s, color 0.15s;
}

.mp_nav_item:hover {
    background-color: #f8f8f8;
}

.mp_nav_item.active {
    background-color: #f8f8f8;
    color: #222;
    font-weight: 700;
}

.mp_nav_item.sub {
    height: 44px;
    padding-left: 16px;
    font-size: 14px;
}

.mp_nav_label {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 8px;
    font-size: 15px;
    color: #5e5e5e;
}

/* 고객센터 */
.mp_cs {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 9px;
    padding: 16px;
    background-color: #ebebeb;
    color: #5e5e5e;
}

.mp_cs_row {
    display: flex;
    flex-direction: column;
}

.mp_cs_label {
    font-size: 13px;
    font-weight: 700;
    line-height: 24px;
}

.mp_cs_tel {
    font-size: 20px;
    font-weight: 700;
}

.mp_cs_time {
    font-size: 13px;
    font-weight: 700;
}

/* ==================================== 마이페이지 공용 레이아웃 ==================================== */
.mp_wrap {
    padding: 50px 0 80px;
}

.mp_layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* 세로 구분선 (PC 전용) */
.mp_divider {
    align-self: stretch;
    width: 1px;
    background-color: #ebebeb;
}

/* 콘텐츠 영역 */
.mp_main {
    flex: 1;
    min-width: 0;
}

.mp_main_head {
    padding-bottom: 16px;
    border-bottom: 2px solid #222;
    margin-bottom: 32px;
}

.mp_main_title {
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    color: #222;
}

/* ==================================== 마이페이지 공용 폼 (카드/라벨/입력) ==================================== */
.pf_card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 25px 29px;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    background-color: #fff;
}

.pf_card + .pf_card {
    margin-top: 10px;
}

.pf_field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf_label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #222;
}

.pf_label .req {
    margin-left: 2px;
    color: #ef4444;
    font-size: 11.5px;
}

.pf_input {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #e0e2e7;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    color: #222;
}

.pf_input::placeholder {
    color: #9e9e9e;
}

.pf_input:focus {
    outline: none;
    border-color: var(--main);
}

/* 읽기전용 (이메일 · 성함 · 휴대폰) */
.pf_input.readonly {
    background-color: #f2f4f7;
    cursor: default;
}

.pf_input.readonly:focus {
    border-color: #e0e2e7;
}

/* 오류 상태 */
.pf_input.error {
    border-color: var(--error-color);
}

/* 제출 버튼 (수정하기 등) */
.pf_submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background-color: var(--main);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

/* ==================================== 태블릿 이하 ==================================== */
@media screen and (max-width: 1023px) {
    /* 사이드 메뉴 · 세로 구분선 숨김 */
    .mp_side,
    .mp_divider {
        display: none;
    }

    .mp_main {
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .mp_wrap {
        padding: 32px 0 60px;
    }

    .mp_main_head {
        margin-bottom: 24px;
    }

    .pf_card {
        padding: 20px 16px;
    }
}
