/* 마이페이지 사이드바 */
#mypage-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* 모바일 토글 버튼 */
.mypage-sidebar-toggle {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    border: none;
    width: 100%;
    border-radius: 12px;
}
.mypage-sidebar-toggle i {
    transition: transform 0.3s;
    color: #adb5bd;
    font-size: 12px;
}

/* 사이드바 그룹 */
.sidebar-group {
    padding: 0 5px;
}
.sidebar-group + .sidebar-group {
    border-top: 1px solid #f0f0f0;
}
.sidebar-group-title {
    font-size: 14px;
    font-weight: 800;
    color: #2c3e50;
    padding: 14px 15px 6px;
    margin: 0;
}
.sidebar-group-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}
.sidebar-group-list li a {
    display: block;
    padding: 9px 15px;
    font-size: 13px;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.sidebar-group-list li a:hover {
    background: #f8f9fa;
    color: #2c3e50;
}
.sidebar-group-list li a.active {
    background: #fff8e1;
    color: #e5a600;
    font-weight: 600;
}
.sidebar-disabled {
    display: block;
    padding: 9px 15px;
    font-size: 13px;
    color: #adb5bd;
}

/* PC: 사이드바 + 컨텐츠 레이아웃 */
@media (min-width: 769px) {
    .mypage-layout-wrapper {
        display: flex !important;
        gap: 24px;
        align-items: flex-start;
        position: relative;
    }
    .mypage-sidebar-slot {
        width: 220px;
        flex-shrink: 0;
    }
    .mypage-layout-wrapper > *:not(.mypage-sidebar-slot) {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    /* 카트 페이지 콘텐츠 */
    .cart-page-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
}

/* 모바일: 접기/펼치기 */
@media (max-width: 768px) {
    #mypage-sidebar {
        margin-bottom: 15px;
    }
    .mypage-sidebar-toggle {
        display: flex;
    }
    .mypage-sidebar-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .mypage-sidebar-nav.open {
        overflow: visible;
    }
}

/* 답변 영역 */
.mypage-answer {
    margin-top: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #f8b500;
}
.mypage-answer-label {
    font-size: 11px;
    font-weight: 700;
    color: #f8b500;
    margin-bottom: 6px;
}
.mypage-answer-content {
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
    word-break: break-word;
}
.mypage-answer-toggle {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}
.mypage-answer-toggle:hover {
    color: #f8b500;
}
.mypage-answer-body {
    display: none;
}
.mypage-answer-body.open {
    display: block;
}

/* 글쓰기 버튼 */
.mypage-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #f8b500;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}
.mypage-write-btn:hover {
    background: #e5a600;
    color: white;
}
