/**
 * 마이페이지 주문 목록 스타일
 *
 * @package Terra_TossPay
 */

/* === 주문 테이블 === */
.woocommerce-account .woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.woocommerce-account .woocommerce-orders-table th {
    font-weight: 600;
    color: #666;
    font-size: 13px;
    background: #f8f9fa;
}

.woocommerce-account .woocommerce-orders-table tbody tr:hover {
    background: #f9f9f9;
}

/* === 주문 번호 링크 === */
.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    color: #0064FF;
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:hover {
    text-decoration: underline;
}

/* === 주문 상태 배지 === */
.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
    font-weight: 500;
}

/* === 주문 액션 버튼 === */
.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button {
    padding: 8px 14px !important;
    font-size: 13px !important;
    margin-right: 6px;
    margin-bottom: 4px;
}

/* =============================================================================
   주문 세부사항 (view-order) 페이지
   ============================================================================= */

/* === 청구주소 / 고객 상세정보 섹션 숨기기 === */
.woocommerce-account .woocommerce-customer-details {
    display: none !important;
}

/* === 주문 세부사항 테이블 === */
.woocommerce-account .woocommerce-order-details .shop_table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.woocommerce-account .woocommerce-order-details .shop_table thead th {
    background: #F8F9FA;
    font-size: 13px;
    font-weight: 600;
    color: #4E5968;
    padding: 14px 16px;
    border: none !important;
}

/* === 상품명, 결제방법, 합계 등 모든 텍스트 통일 === */
.woocommerce-account .woocommerce-order-details .shop_table td,
.woocommerce-account .woocommerce-order-details .shop_table th {
    font-size: 14px;
    color: #191F28 !important;
    padding: 14px 16px;
    border: none !important;
    border-bottom: 1px solid #F2F4F6 !important;
}

.woocommerce-account .woocommerce-order-details .shop_table td a,
.woocommerce-account .woocommerce-order-details .shop_table td span,
.woocommerce-account .woocommerce-order-details .shop_table td p,
.woocommerce-account .woocommerce-order-details .shop_table tfoot th,
.woocommerce-account .woocommerce-order-details .shop_table tfoot td {
    font-size: 14px !important;
    color: #191F28 !important;
}

/* 상품명 링크 - 밑줄 제거, 블랙 */
.woocommerce-account .woocommerce-order-details .shop_table .woocommerce-table__product-name a {
    text-decoration: none !important;
    color: #191F28 !important;
    font-weight: 500;
}

/* tfoot 마지막 행 (합계) - 약간 굵게 */
.woocommerce-account .woocommerce-order-details .shop_table tfoot tr:last-child th,
.woocommerce-account .woocommerce-order-details .shop_table tfoot tr:last-child td {
    font-weight: 600;
}

/* 섹션 제목 */
.woocommerce-account .woocommerce-order-details h2 {
    font-size: 18px;
    font-weight: 700;
    color: #191F28;
    margin-bottom: 16px;
}

/* === 반응형: 모바일 - 가로 스크롤 === */
@media (max-width: 600px) {
    .woocommerce-account .woocommerce-orders-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .woocommerce-account .woocommerce-orders-table thead {
        display: table-header-group;
    }

    .woocommerce-account .woocommerce-orders-table tbody {
        display: table-row-group;
    }

    .woocommerce-account .woocommerce-orders-table tr {
        display: table-row;
    }

    .woocommerce-account .woocommerce-orders-table th,
    .woocommerce-account .woocommerce-orders-table td {
        display: table-cell;
        white-space: nowrap;
        padding: 14px 10px;
        font-size: 14px;
    }

    .woocommerce-account .woocommerce-orders-table th {
        font-size: 12px;
        padding: 12px 10px;
    }

    .woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button {
        padding: 10px 14px !important;
        font-size: 13px !important;
        width: auto;
        display: inline-block;
    }
}
