/* 마이페이지 전용 스타일 */

/* 마이페이지 메인 컨테이너 */
.myp-main-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

/* 내 정보 관리 섹션 (좌측) */
.myp-user-info-section {
    flex: 1;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.myp-user-info-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.myp-user-info-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.myp-user-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    min-width: 0;
    overflow: hidden;
}

.myp-info-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1.125rem;
    border: 1px solid var(--gray-100);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.myp-info-item::-webkit-scrollbar {
    display: none;
}

.myp-info-item {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.myp-info-item:hover {
    border-color: var(--gray-300);
}

.myp-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.625rem;
}

.myp-info-label-group {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.myp-info-icon {
    color: var(--primary-color);
    font-size: 0.8125rem;
}

.myp-info-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    line-height: 1.2;
    white-space: nowrap;
    min-width: 0;
}

.myp-edit-icon {
    color: var(--gray-400);
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.myp-edit-icon:hover {
    color: var(--primary-color);
}

.myp-info-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    min-width: 0;
}

/* 탈퇴하기 버튼 */
.myp-withdraw-button-container {
    margin-top: 2rem;
}

.myp-withdraw-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 1px solid #dc2626;
    border-radius: var(--radius-sm);
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.myp-withdraw-button:hover {
    background: #dc2626;
    color: var(--white);
    box-shadow: 0 2px 6px 0 rgba(220, 38, 38, 0.2);
}

.myp-withdraw-button i {
    font-size: 0.875rem;
}

/* 포인트 적립 내역 섹션 (우측) */
.myp-point-history-section {
    flex: 1;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.myp-point-history-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.myp-point-history-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* 포인트 적립 내역 테이블 컨테이너 */
.myp-point-table-container {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 371.781px;
    display: flex;
    flex-direction: column;
}

.myp-point-table-wrapper {
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    max-height: 100%;
}

.myp-point-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--white);
}

.myp-point-table thead {
    background: var(--gray-50);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.myp-point-table th {
    padding: 0.75rem 0.875rem;
    text-align: center;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
    position: relative;
}

.myp-point-table th:first-child {
    text-align: center;
}

.myp-point-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--gray-200);
}

.myp-point-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s ease;
}

.myp-point-table tbody tr:hover {
    background: var(--gray-50);
}

.myp-point-table tbody tr:last-child {
    border-bottom: none;
}

.myp-point-table td {
    padding: 0.75rem 0.875rem;
    color: var(--gray-800);
    font-weight: 500;
    vertical-align: middle;
    border-bottom: none;
    text-align: center;
}


/* 스크롤바 스타일 */
.myp-point-table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.myp-point-table-wrapper::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.myp-point-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.myp-point-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* 결제 내역 섹션 (전체 너비) */
.myp-payment-history-section {
    width: 100%;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
    margin-bottom: 2rem;
}

.myp-payment-history-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.myp-payment-history-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* 결제 내역 테이블 컨테이너 */
.myp-payment-table-container {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 371.781px;
    display: flex;
    flex-direction: column;
}

.myp-payment-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    max-height: 100%;
}

.myp-payment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--white);
}

.myp-payment-table thead {
    background: var(--gray-50);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.myp-payment-table th {
    padding: 0.75rem 0.875rem;
    text-align: center;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
    position: relative;
}

.myp-payment-table th:first-child {
    text-align: center;
}

.myp-payment-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--gray-200);
}

.myp-payment-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s ease;
}

.myp-payment-table tbody tr:hover {
    background: var(--gray-50);
}

.myp-payment-table tbody tr:last-child {
    border-bottom: none;
}

.myp-payment-table td {
    padding: 0.75rem 0.875rem;
    color: var(--gray-800);
    font-weight: 500;
    vertical-align: middle;
    border-bottom: none;
    text-align: center;
    white-space: nowrap;
}

/* 결제 내역 테이블 스크롤바 스타일 */
.myp-payment-table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.myp-payment-table-wrapper::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.myp-payment-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.myp-payment-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* 1200px 이하 반응형 */
@media (max-width: 1200px) {
    .myp-main-container {
        gap: 1.75rem;
    }
    
    .myp-user-info-section {
        padding: 28px;
    }
    
    .myp-point-history-section {
        padding: 28px;
    }
    
    .myp-user-info-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .myp-user-info-title i {
        font-size: 1.25rem;
    }
    
    .myp-point-history-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .myp-point-history-title i {
        font-size: 1.25rem;
    }
    
    .myp-user-info-grid {
        gap: 1rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .myp-info-item {
        padding: 1rem;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .myp-info-header {
        margin-bottom: 0.5rem;
    }
    
    .myp-info-icon {
        font-size: 0.75rem;
    }
    
    .myp-info-label {
        font-size: 0.75rem;
        white-space: nowrap;
        min-width: 0;
    }
    
    .myp-info-value {
        font-size: 0.875rem;
        white-space: nowrap;
        min-width: 0;
    }
    
    .myp-point-table-container {
        height: 328.953px;
    }
    
    .myp-point-table {
        font-size: 0.8125rem;
    }
    
    .myp-point-table th,
    .myp-point-table td {
        padding: 0.75rem 0.875rem;
    }
    
    /* 탈퇴하기 버튼 - 1200px */
    .myp-withdraw-button-container {
        margin-top: 1.75rem;
    }
    
    .myp-withdraw-button {
        width: 100%;
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .myp-withdraw-button i {
        font-size: 0.8125rem;
    }
    
    /* 결제 내역 섹션 - 1200px */
    .myp-payment-history-section {
        padding: 28px;
    }
    
    .myp-payment-history-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .myp-payment-history-title i {
        font-size: 1.25rem;
    }
    
    .myp-payment-table-container {
        height: 328.953px;
    }
    
    .myp-payment-table {
        font-size: 0.8125rem;
    }
    
    .myp-payment-table th,
    .myp-payment-table td {
        padding: 0.75rem 0.875rem;
    }
}

/* 900px 이하 반응형 */
@media (max-width: 900px) {
    .myp-main-container {
        gap: 1.5rem;
    }
    
    .myp-user-info-section {
        padding: 24px;
    }
    
    .myp-point-history-section {
        padding: 24px;
    }
    
    .myp-user-info-title {
        font-size: 1.375rem;
        gap: 0.625rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }
    
    .myp-user-info-title i {
        font-size: 1.125rem;
    }
    
    .myp-point-history-title {
        font-size: 1.375rem;
        gap: 0.625rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }
    
    .myp-point-history-title i {
        font-size: 1.125rem;
    }
    
    .myp-user-info-grid {
        gap: 0.875rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .myp-info-item {
        padding: 0.875rem;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .myp-info-header {
        margin-bottom: 0.5rem;
    }
    
    .myp-info-icon {
        font-size: 0.6875rem;
    }
    
    .myp-info-label {
        font-size: 0.6875rem;
        line-height: 1.1;
        white-space: nowrap;
        min-width: 0;
    }
    
    .myp-info-value {
        font-size: 0.8125rem;
        line-height: 1.2;
        white-space: nowrap;
        min-width: 0;
    }
    
    .myp-point-table-container {
        height: 288.062px;
    }
    
    .myp-point-table {
        font-size: 0.75rem;
    }
    
    .myp-point-table th,
    .myp-point-table td {
        padding: 0.625rem 0.75rem;
    }
    
    /* 탈퇴하기 버튼 - 900px */
    .myp-withdraw-button-container {
        margin-top: 1.5rem;
    }
    
    .myp-withdraw-button {
        width: 100%;
        padding: 0.625rem 1.125rem;
        font-size: 0.75rem;
    }
    
    .myp-withdraw-button i {
        font-size: 0.75rem;
    }
    
    /* 결제 내역 섹션 - 900px */
    .myp-payment-history-section {
        padding: 24px;
    }
    
    .myp-payment-history-title {
        font-size: 1.375rem;
        gap: 0.625rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }
    
    .myp-payment-history-title i {
        font-size: 1.125rem;
    }
    
    .myp-payment-table-container {
        height: 288.062px;
    }
    
    .myp-payment-table {
        font-size: 0.75rem;
    }
    
    .myp-payment-table th,
    .myp-payment-table td {
        padding: 0.625rem 0.75rem;
    }
}

/* 768px 이하 반응형 - 세로 배치 */
@media (max-width: 768px) {
    .myp-main-container {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .myp-user-info-section {
        flex: none;
        width: 100%;
        padding: 20px;
    }
    
    .myp-point-history-section {
        flex: none;
        width: 100%;
        padding: 20px;
    }
    
    .myp-user-info-title {
        font-size: 1.25rem;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .myp-user-info-title i {
        font-size: 1.125rem;
    }
    
    .myp-point-history-title {
        font-size: 1.25rem;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .myp-point-history-title i {
        font-size: 1.125rem;
    }
    
    .myp-user-info-grid {
        gap: 1rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .myp-info-item {
        padding: 1rem;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .myp-info-header {
        margin-bottom: 0.5rem;
    }
    
    .myp-info-icon {
        font-size: 0.75rem;
    }
    
    .myp-info-label {
        font-size: 0.8125rem;
        white-space: nowrap;
        min-width: 0;
    }
    
    .myp-info-value {
        font-size: 0.9375rem;
        white-space: nowrap;
        min-width: 0;
    }
    
    .myp-point-table-container {
        height: 319.891px;
    }
    
    .myp-point-table {
        font-size: 0.6875rem;
    }
    
    .myp-point-table th,
    .myp-point-table td {
        padding: 0.5rem 0.625rem;
    }
    
    /* 768px 이하에서 스크롤바 숨기기 */
    .myp-point-table-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .myp-point-table-wrapper {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    /* 탈퇴하기 버튼 - 768px */
    .myp-withdraw-button-container {
        margin-top: 1.25rem;
    }
    
    .myp-withdraw-button {
        width: 100%;
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .myp-withdraw-button i {
        font-size: 0.8125rem;
    }
    
    /* 결제 내역 섹션 - 768px */
    .myp-payment-history-section {
        padding: 20px;
        margin-bottom: 1rem;
    }
    
    .myp-payment-history-title {
        font-size: 1.25rem;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .myp-payment-history-title i {
        font-size: 1.125rem;
    }
    
    .myp-payment-table-container {
        height: 319.891px;
    }
    
    .myp-payment-table {
        font-size: 0.6875rem;
    }
    
    .myp-payment-table th,
    .myp-payment-table td {
        padding: 0.5rem 0.625rem;
    }
    
    /* 768px 이하에서 결제 내역 테이블 스크롤바 숨기기 */
    .myp-payment-table-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .myp-payment-table-wrapper {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* 480px 이하 반응형 */
@media (max-width: 480px) {
    .myp-main-container {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .myp-user-info-section {
        width: 100%;
        padding: 12px;
    }
    
    .myp-point-history-section {
        width: 100%;
        padding: 12px;
    }
    
    .myp-user-info-title {
        font-size: 1.125rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .myp-user-info-title i {
        font-size: 1rem;
    }
    
    .myp-point-history-title {
        font-size: 1.125rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .myp-point-history-title i {
        font-size: 1rem;
    }
    
    .myp-user-info-grid {
        gap: 0.75rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .myp-info-item {
        padding: 0.875rem;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .myp-info-header {
        gap: 0.375rem;
        margin-bottom: 0.5rem;
    }
    
    .myp-info-icon {
        font-size: 0.75rem;
    }
    
    .myp-info-label {
        font-size: 0.75rem;
        line-height: 1.1;
        white-space: nowrap;
        min-width: 0;
    }
    
    .myp-info-value {
        font-size: 0.875rem;
        line-height: 1.3;
        white-space: nowrap;
        min-width: 0;
    }
    
    .myp-edit-icon {
        font-size: 0.6875rem;
    }
    
    .myp-point-table-container {
        height: 283.125px;
    }
    
    .myp-point-table {
        font-size: 0.625rem;
    }
    
    .myp-point-table th,
    .myp-point-table td {
        padding: 0.375rem 0.5rem;
    }
    
    /* 탈퇴하기 버튼 - 480px */
    .myp-withdraw-button-container {
        margin-top: 0.75rem;
    }
    
    .myp-withdraw-button {
        width: 100%;
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
        gap: 0.375rem;
    }
    
    .myp-withdraw-button i {
        font-size: 0.75rem;
    }
    
    /* 결제 내역 섹션 - 480px */
    .myp-payment-history-section {
        padding: 12px;
        margin-bottom: 0.75rem;
    }
    
    .myp-payment-history-title {
        font-size: 1.125rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .myp-payment-history-title i {
        font-size: 1rem;
    }
    
    .myp-payment-table-container {
        height: 283.125px;
    }
    
    .myp-payment-table {
        font-size: 0.625rem;
    }
    
    .myp-payment-table th,
    .myp-payment-table td {
        padding: 0.375rem 0.5rem;
    }
}
