/* 주문내역 래퍼 */
.order-wrapper {
    background: #faf8f8;
    min-height: 100vh;
    padding: 60px 0;
}

.order-wrapper .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

body.order-history-modal-open {
    overflow: hidden;
}

.order-history-modal-layer {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(28, 24, 23, 0.48);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.order-history-modal-layer.active {
    opacity: 1;
    visibility: visible;
}

.order-history-modal-panel {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(187, 135, 122, 0.18);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(38, 28, 25, 0.22);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.18s ease;
}

.order-history-modal-layer.active .order-history-modal-panel {
    transform: translateY(0) scale(1);
}

.order-history-modal-x {
    position: sticky;
    top: 10px;
    left: calc(100% - 46px);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 10px 10px -44px auto;
    border: 1px solid #eadbd7;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #8f5f53;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(38, 28, 25, 0.08);
}

.order-history-modal-content {
    min-width: 0;
}

.order-detail-loading {
    padding: 56px 32px;
    text-align: center;
    color: #917e79;
    font-size: 15px;
    font-weight: 600;
}

/* 페이지 헤더 */
.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-title {
    font-size: 34px;
    font-weight: 800;
    color: #323232;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 16px;
    color: #917e79;
}

/* 검색 필터 */
.search-filter {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-section {
    margin-bottom: 28px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

/* 기간 버튼 */
.period-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.period-btn {
    padding: 10px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.period-btn:hover {
    border-color: #ac756b;
    color: #ac756b;
}

.period-btn.active {
    background: #ac756b;
    border-color: #ac756b;
    color: #fff;
}

/* 날짜 범위 */
.date-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
}

.date-separator {
    color: #999;
    font-weight: 500;
}

.btn-search-date {
    padding: 10px 32px;
    background: #ac756b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-search-date:hover {
    background: #bb877a;
}

/* 카테고리 필터 */
.category-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-btn:hover {
    border-color: #ac756b;
}

.category-btn:hover .category-label {
    color: #ac756b;
}

.category-btn.active {
    background: #ac756b;
    border-color: #ac756b;
}

.category-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: color 0.3s;
}

.category-btn.active .category-label {
    color: #fff;
}

.category-count {
    font-size: 13px;
    font-weight: 700;
    color: #c76b52;
    background: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.category-btn.active .category-count {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* 주문 리스트 */
.order-list {
    display: block;
    margin-bottom: 40px;
    background: #fff;
    border: 1px solid #eadfdb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(68, 49, 43, 0.06);
}

.order-list.is-empty {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.empty-orders {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: center;
    min-height: 186px;
    padding: 34px 38px;
    border: 1px solid #eadfdb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(68, 49, 43, 0.07);
}

.empty-orders-kicker {
    display: block;
    margin-bottom: 8px;
    color: #b58374;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.empty-orders .empty-title {
    margin: 0;
    color: #2f2b2a;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.35;
}

.empty-orders .empty-text {
    margin: 8px 0 0;
    color: #8b7771;
    font-size: 14px;
    line-height: 1.6;
}

.empty-orders-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.btn-reset-order-filter,
.empty-orders .btn-go-shopping {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn-reset-order-filter {
    border: 1px solid #d9bcb3;
    background: #fff;
    color: #8f5f53;
}

.empty-orders .btn-go-shopping {
    border: 1px solid #b58374;
    background: #b58374;
    color: #fff;
}

.empty-orders-panel {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 136px;
    border-radius: 12px;
    background: #fbf7f5;
    color: #c3a79e;
    overflow: hidden;
}

.empty-orders-panel span {
    position: absolute;
    inset: 16px;
    border: 1px dashed #e3c9c1;
    border-radius: 10px;
}

.empty-orders-panel strong {
    color: #b58374;
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
}

.empty-orders-panel em {
    margin-top: -22px;
    color: #a49590;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.order-board-header {
    display: grid;
    grid-template-columns: minmax(360px, 1.45fr) minmax(220px, 0.9fr) minmax(130px, 0.55fr) minmax(120px, 0.45fr) minmax(110px, 0.42fr);
    align-items: center;
    min-height: 52px;
    padding: 0 24px;
    background: #fbf7f5;
    border-bottom: 1px solid #eadfdb;
}

.order-board-cell {
    font-size: 13px;
    font-weight: 700;
    color: #7b625d;
}

.order-board-cell.amount,
.order-board-cell.status,
.order-board-cell.action {
    text-align: center;
}

/* 주문 항목 */
.order-item {
    background: #fff;
    border-bottom: 1px solid #f0e6e2;
    transition: background 0.2s ease;
} 

.order-item:last-child {
    border-bottom: 0;
}

.order-item:hover {
    background: #fffaf8;
}

/* 주문 헤더 */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #bb877a; 
}

.order-date,
.order-number {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-label,
.number-label {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    opacity:0.8;
}

.date-value,
.number-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* 주문 콘텐츠 */
.order-content {
    display: grid;
    grid-template-columns: minmax(360px, 1.45fr) minmax(220px, 0.9fr) minmax(130px, 0.55fr) minmax(120px, 0.45fr) minmax(110px, 0.42fr);
    gap: 0;
    padding: 18px 24px;
    align-items: center;
    min-height: 118px;
}

.order-product-cell {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding-right: 18px;
}

.order-cart-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 38px;
    height: 38px;
    background: #fcf7f4;
    border: 1px solid #cdd9ff;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #a27b6f;
    transition: all 0.2s ease;
}

.order-cart-btn:hover {
    background: #e0e7ff;
    border-color: #a27b6f;
}

.order-cart-btn svg {
    width: 16px;
    height: 16px;
}

/* 상품 이미지 */
.product-image {
    width: 82px;
    height: 82px;
    border-radius: 8px;
    overflow: hidden;
    background: #f6f1ef;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* 이미지 없을 때 SVG 아이콘 */
.product-image svg {
    width: 34px;
    height: 34px;
    color: #ccc;
}

/* 상품 정보 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
    min-width: 0;
}

.product-type {
    display: inline-block;
    width: fit-content;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.product-type.rental {
    background: #e8f5e9;
    color: #2e7d32;
}

.product-type.purchase {
    background: #e3f2fd;
    color: #1565c0;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: #25201f;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-option {
    font-size: 13px;
    color: #8b7771;
    margin: 0;
}

.more-items {
    margin-left: 6px;
    color: #a67568;
    font-size: 13px;
    font-weight: 700;
}

.order-meta-cell {
    min-width: 0;
    padding-right: 18px;
}

.order-meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.order-meta-list div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
}

.order-meta-list dt {
    color: #9b8984;
    font-size: 12px;
    font-weight: 600;
}

.order-meta-list dd {
    min-width: 0;
    margin: 0;
    color: #3a3230;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-amount-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c76b52;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.order-amount-cell strong {
    font-size: inherit;
    font-weight: inherit;
}

.mobile-cell-label {
    display: none;
}

/* 렌탈 정보 */
.rental-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.rental-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rental-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.rental-value {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.rental-value.highlight {
    color: #c76b52;
}

/* 구매 정보 */
.purchase-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-row {
    display: flex;
    gap:15px;
    align-items: center;
}

.price-row.total {
    padding-top: 8px;
    border-top: 1px solid #e5e5e5;
}

.price-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.price-value {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.price-value.free {
    color: #2e7d32;
}

.price-row.total .price-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.price-row.total .price-value {
    font-size: 18px;
    font-weight: 800;
    color: #c76b52;
}

/* 주문 상태 */
.order-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    height:100%;
}

.status-badge {
    min-width: 86px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f4eee9;
    color: #7b625d;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

.status-badge.pending,
.status-badge.paid,
.status-badge.preparing {
    background: #eef4ff;
    color: #315c9c;
}

.status-badge.shipping,
.status-badge.cancel-request {
    background: #fff3e5;
    color: #b65a23;
}

.status-badge.delivered,
.status-badge.confirmed {
    background: #eef8ef;
    color: #32713d;
}

.status-badge.cancelled {
    background: #f1f1f1;
    color: #777;
}

.status-badge.rental-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.delivery {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.completed {
    background: #e3f2fd;
    color: #1565c0;
}

.status-date {
    font-size: 12px;
    color: #666;
    text-align: right;
}

.delivery-company {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 4px;
}

/* 주문 액션 */
.order-actions {
    display: flex;
    gap: 0;
    padding: 0;
    background: transparent;
    border-top: 0;
    justify-content: center;
}

.btn-action {
    padding: 9px 14px;
    background: #fff;
    border: 1px solid #c99b91;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #9a5f53;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
}

.btn-action:hover {
    border-color: #bb877a;
    color: #bb877a;
} 
.btn-action.confirm {
    background: #bb877a;
    border-color: #bb877a;
    color: #fff;
}

.btn-action.confirm:hover {
    background: #ac756b;
    border-color: #ac756b;
}

.btn-action.danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-action.danger:hover {
    background: #dc3545;
    color: #fff;
}

/* 계약 조건 확인 모달 */
#contract-detail-modal {
    display: none;
}

.contract-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#contract-detail-modal:checked ~ .contract-detail-overlay {
    opacity: 1;
    visibility: visible;
}

.contract-detail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

#contract-detail-modal:checked ~ .contract-detail-modal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.contract-detail-header {
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.contract-detail-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.contract-detail-close {
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s;
}

.contract-detail-close:hover {
    color: #333;
}

.contract-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.contract-detail-section {
    margin-bottom: 32px;
}

.contract-detail-section:last-child {
    margin-bottom: 0;
}

.contract-detail-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c76b52;
}

/* 상세 정보 그리드 */
.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-info-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.detail-info-value {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.detail-info-value.highlight {
    color: #c76b52;
}

.detail-info-value.status {
    color: #2e7d32;
}

/* 상세 제품 정보 */
.detail-product-info {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: #faf8f8;
    border-radius: 12px;
}

.detail-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.detail-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.detail-product-text {
    flex: 1;
}

.detail-product-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
}

.detail-product-option {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* 방문 일정 */
.visit-schedule {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.visit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #faf8f8;
}

.visit-item.completed {
    background: #e8f5e9;
}

.visit-item.upcoming {
    background: #e3f2fd;
}

.visit-item.future {
    background: #faf8f8;
}

.visit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.visit-item.completed .visit-icon {
    background: #2e7d32;
    color: #fff;
}

.visit-item.upcoming .visit-icon {
    background: #c76b52;
    color: #fff;
}

.visit-item.future .visit-icon {
    background: #e5e5e5;
    color: #999;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visit-date {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.visit-label {
    font-size: 13px;
    color: #666;
}

/* 결제 정보 */
.payment-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #faf8f8;
    border-radius: 8px;
}

.payment-row.total {
    background: #e3f2fd;
    margin-top: 8px;
}

.payment-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.payment-value {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.payment-row.total .payment-label {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.payment-row.total .payment-value {
    font-size: 18px;
    font-weight: 800;
    color: #c76b52;
}

/* 배송지 정보 */
.delivery-address {
    padding: 16px;
    background: #faf8f8;
    border-radius: 12px;
}

.address-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
}

.address-phone {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
}

.address-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* 특이사항 */
.contract-notes {
    padding: 16px;
    background: #fff8e1;
    border-radius: 12px;
    border-left: 4px solid #ffc107;
}

.contract-notes p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 6px 0;
}

.contract-notes p:last-child {
    margin-bottom: 0;
}

/* 모달 푸터 */
.contract-detail-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
    background: #faf8f8;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-change-schedule,
.btn-contact,
.btn-close-modal {
    flex: 1;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-change-schedule {
    background: #fff;
    color: #c76b52;
    border: 2px solid #c76b52;
}

.btn-change-schedule:hover {
    background: #fff8f4;
}

.btn-contact {
    background: #fff;
    color: #c76b52;
    border: 2px solid #c76b52;
}

.btn-contact:hover {
    background: #fff8f4;
}

.btn-close-modal {
    background: #c76b52;
    color: #fff;
    border: 2px solid #c76b52;
}

.btn-close-modal:hover {
    background: #bb877a;
}

/* 배송조회 모달 */
#delivery-tracking-modal {
    display: none;
}

.delivery-tracking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#delivery-tracking-modal:checked ~ .delivery-tracking-overlay {
    opacity: 1;
    visibility: visible;
}

.delivery-tracking-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

#delivery-tracking-modal:checked ~ .delivery-tracking-modal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.delivery-tracking-header {
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.delivery-tracking-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.delivery-tracking-close {
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s;
}

.delivery-tracking-close:hover {
    color: #333;
}

.delivery-tracking-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.tracking-section {
    margin-bottom: 28px;
}

.tracking-section:last-child {
    margin-bottom: 0;
}

.tracking-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

/* 주문 정보 */
.tracking-order-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tracking-order-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: #faf8f8;
    border-radius: 8px;
}

.tracking-order-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.tracking-order-value {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

/* 상품 정보 */
.tracking-product-info {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: #faf8f8;
    border-radius: 12px;
}

.tracking-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.tracking-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.tracking-product-text {
    flex: 1;
}

.tracking-product-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
}

.tracking-product-option {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* 배송 정보 */
.tracking-delivery-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tracking-delivery-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #faf8f8;
    border-radius: 6px;
}

.tracking-delivery-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.tracking-delivery-value {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.tracking-delivery-value.copy-text {
    color: #c76b52;
    cursor: pointer;
}

/* 배송 현황 */
.tracking-status-current {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #bb877a 0%, #9f806f 100%);
    border-radius: 12px;
    color: #fff;
}

.status-current-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-current-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-current-label {
    font-size: 18px;
    font-weight: 700;
}

.status-current-desc {
    font-size: 13px;
    opacity: 0.9;
}

/* 배송 추적 타임라인 */
.tracking-timeline {
    position: relative;
    padding-left: 40px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e5e5;
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 0;
    width: 30px;
    height: 30px;
    background: #e5e5e5;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-item.active .timeline-dot {
    background: #c76b52;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    animation: pulse 2s infinite;
}

.timeline-item.completed .timeline-dot {
    background: #2e7d32;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.1);
    }
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-date {
    font-size: 12px;
    color: #999;
}

.timeline-item.active .timeline-date {
    color: #c76b52;
    font-weight: 700;
}

.timeline-status {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.timeline-item.active .timeline-status {
    color: #c76b52;
}

.timeline-location {
    font-size: 13px;
    color: #666;
}

/* 배송지 정보 */
.tracking-address {
    padding: 16px;
    background: #faf8f8;
    border-radius: 12px;
}

.tracking-address-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
}

.tracking-address-phone {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
}

.tracking-address-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.tracking-address-memo {
    font-size: 13px;
    color: #c76b52;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #e5e5e5;
}

/* 배송 모달 푸터 */
.delivery-tracking-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
    background: #faf8f8;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-call-delivery,
.btn-contact-cs,
.btn-close-tracking {
    flex: 1;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-call-delivery {
    background: #fff;
    color: #c76b52;
    border: 2px solid #c76b52;
}

.btn-call-delivery:hover {
    background: #fff8f4;
}

.btn-contact-cs {
    background: #fff;
    color: #c76b52;
    border: 2px solid #c76b52;
}

.btn-contact-cs:hover {
    background: #fff8f4;
}

.btn-close-tracking {
    background: #c76b52;
    color: #fff;
    border: 2px solid #c76b52;
}

.btn-close-tracking:hover {
    background: #bb877a;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: #c76b52;
    color: #c76b52;
}

.page-btn.active {
    background: #c76b52;
    border-color: #c76b52;
    color: #fff;
}

.page-btn.prev,
.page-btn.next {
    color: #999;
}

/* Responsive */
@media (max-width: 1024px) {
    .order-board-header {
        grid-template-columns: minmax(300px, 1.25fr) minmax(190px, 0.8fr) minmax(120px, 0.52fr) minmax(110px, 0.42fr) minmax(96px, 0.36fr);
        padding: 0 18px;
    }

    .order-content {
        grid-template-columns: minmax(300px, 1.25fr) minmax(190px, 0.8fr) minmax(120px, 0.52fr) minmax(110px, 0.42fr) minmax(96px, 0.36fr);
        padding: 16px 18px;
    }

    .product-image {
        width: 72px;
        height: 72px;
    }

    .detail-info-grid,
    .tracking-order-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .order-history-modal-layer {
        align-items: flex-end;
        padding: 12px;
    }

    .order-history-modal-panel {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 16px 16px 0 0;
    }

    .order-wrapper {
        padding: 40px 0;
    }

    .order-wrapper .container {
        padding: 0 20px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .search-filter {
        padding: 24px 20px;
    }

    .period-buttons {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }

    .date-range {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-search-date {
        width: 100%;
    }

    .category-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .category-btn {
        justify-content: space-between;
    }

    .order-list {
        border-radius: 12px;
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    .order-board-header {
        display: none;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
        padding: 16px 20px;
    }

    .order-content {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
        min-height: 0;
        background: #fff;
        border: 1px solid #eadfdb;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(68, 49, 43, 0.06);
    }

    .order-item {
        margin-bottom: 14px;
        border-bottom: 0;
        background: transparent;
    }

    .order-item:hover {
        background: transparent;
    }

    .order-product-cell {
        align-items: flex-start;
        gap: 12px;
        padding-right: 0;
    }

    .product-image {
        width: 74px;
        height: 74px;
        aspect-ratio: auto;
    }

    .product-name {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .order-meta-cell {
        padding: 12px 0;
        border-top: 1px solid #f0e6e2;
        border-bottom: 1px solid #f0e6e2;
    }

    .order-meta-list {
        gap: 6px;
    }

    .order-meta-list div {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .order-amount-cell,
    .order-status {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: auto;
    }

    .mobile-cell-label {
        display: inline-flex;
        color: #9b8984;
        font-size: 12px;
        font-weight: 700;
    }

    .rental-info {
        grid-template-columns: 1fr;
    }

    .order-status {
        padding-left: 0;
        border-left: 0;
        border-top: 0;
        padding-top: 0;
    }

    .status-badge {
        min-width: 82px;
    }

    .status-date,
    .delivery-company {
        text-align: left;
    }

    .order-actions {
        flex-direction: column;
        padding: 4px 0 0;
    }

    .btn-action {
        width: 100%;
    }

    .contract-detail-modal,
    .delivery-tracking-modal {
        width: 95%;
        max-height: 85vh;
    }

    .contract-detail-header,
    .delivery-tracking-header {
        padding: 20px;
    }

    .contract-detail-header h3,
    .delivery-tracking-header h3 {
        font-size: 18px;
    }

    .contract-detail-body,
    .delivery-tracking-body {
        padding: 20px;
    }

    .contract-detail-section,
    .tracking-section {
        margin-bottom: 24px;
    }

    .contract-detail-footer,
    .delivery-tracking-footer {
        flex-direction: column;
        padding: 16px 20px;
    }

    .tracking-timeline {
        padding-left: 35px;
    }

    .timeline-dot {
        left: -35px;
        width: 26px;
        height: 26px;
    }

    .date-separator {
        display: none;
    }

    .category-label {margin:0 auto;}


}

@media (max-width: 480px) {
    .order-wrapper .container {
        padding: 0 16px;
    }

    .page-title {
        font-size: 24px;
    }

    .search-filter {
        padding: 20px 16px;
    }

    .filter-title {
        font-size: 14px;
    }

    .period-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .period-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .date-input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .btn-search-date {
        padding: 8px 24px;
        font-size: 13px;
    }

    .category-filters {
        gap: 6px;
    }

    .category-btn {
        padding: 8px 16px;
    }

    .category-label {
        font-size: 13px;
    }

    .category-count {
        font-size: 12px;
        padding: 1px 6px;
    }

    .order-header {
        padding: 14px 16px;
    }

    .date-label,
    .number-label {
        font-size: 12px;
    }

    .date-value,
    .number-value {
        font-size: 13px;
    }

    .product-type {
        font-size: 11px;
        padding: 3px 10px;
    }

    .product-name {
        font-size: 15px;
    }

    .product-option {
        font-size: 12px;
    }

    .rental-label,
    .price-label {
        font-size: 11px;
    }

    .rental-value,
    .price-value {
        font-size: 13px;
    }

    .status-date,
    .delivery-company {
        font-size: 11px;
    }

    .order-actions {
        padding: 14px 16px;
        gap: 6px;
    }

    .btn-action {
        padding: 10px 14px;
        font-size: 13px;
    }

    .pagination {
        gap: 6px;
    }

    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .contract-detail-header,
    .delivery-tracking-header {
        padding: 16px;
    }

    .contract-detail-header h3,
    .delivery-tracking-header h3 {
        font-size: 17px;
    }

    .contract-detail-body,
    .delivery-tracking-body {
        padding: 16px;
    }

    .contract-detail-title,
    .tracking-section-title {
        font-size: 14px;
    }

    .detail-product-image,
    .tracking-product-image {
        width: 60px;
        height: 60px;
    }

    .detail-product-name,
    .tracking-product-name {
        font-size: 14px;
    }

    .detail-product-option,
    .tracking-product-option {
        font-size: 12px;
    }

    .visit-icon {
        width: 36px;
        height: 36px;
    }

    .visit-date {
        font-size: 13px;
    }

    .visit-label {
        font-size: 12px;
    }

    .status-current-icon {
        width: 48px;
        height: 48px;
    }

    .status-current-icon svg {
        width: 24px;
        height: 24px;
    }

    .status-current-label {
        font-size: 16px;
    }

    .status-current-desc {
        font-size: 12px;
    }

    .tracking-timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -30px;
        width: 22px;
        height: 22px;
        border-width: 3px;
    }

    .timeline-date {
        font-size: 11px;
    }

    .timeline-status {
        font-size: 14px;
    }

    .timeline-location {
        font-size: 12px;
    }

    .contract-detail-footer,
    .delivery-tracking-footer {
        padding: 14px 16px;
    }

    .btn-change-schedule,
    .btn-contact,
    .btn-close-modal,
    .btn-call-delivery,
    .btn-contact-cs,
    .btn-close-tracking {
        padding: 12px 14px;
        font-size: 13px;
    }
}
/* 리뷰 작성 모달 */
#review-write-modal {
    display: none;
}

.review-write-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#review-write-modal:checked ~ .review-write-overlay {
    opacity: 1;
    visibility: visible;
}

.review-write-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

#review-write-modal:checked ~ .review-write-modal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.review-write-header {
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.review-write-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.review-write-close {
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s;
}

.review-write-close:hover {
    color: #333;
}

.review-write-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.review-section {
    margin-bottom: 28px;
}

.review-section:last-child {
    margin-bottom: 0;
}

.review-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.required {
    color: #ff4444;
    margin-left: 4px;
}

/* 리뷰 상품 정보 */
.review-product-info {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: #faf8f8;
    border-radius: 12px;
}

.review-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.review-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.review-product-text {
    flex: 1;
}

.review-product-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
}

.review-product-option {
    font-size: 13px;
    color: #666;
    margin: 0 0 4px 0;
}

.review-product-date {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* 별점 선택 */
.review-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: #faf8f8;
    border-radius: 12px;
}

.star-group {
    display: flex;
    gap: 8px;
    flex-direction: row-reverse;
    justify-content: center;
}

.star-label {
    cursor: pointer;
    transition: all 0.3s;
}

.star-icon {
    stroke: #ffb800;
    fill: transparent;
    transition: all 0.3s;
}

.star-label:hover .star-icon,
.star-label:hover ~ .star-label .star-icon {
    fill: #ffb800;
}

#star5:checked ~ .star-group label[for="star5"] .star-icon,
#star5:checked ~ .star-group label[for="star5"] ~ .star-label .star-icon,
#star4:checked ~ .star-group label[for="star4"] .star-icon,
#star4:checked ~ .star-group label[for="star4"] ~ .star-label .star-icon,
#star3:checked ~ .star-group label[for="star3"] .star-icon,
#star3:checked ~ .star-group label[for="star3"] ~ .star-label .star-icon,
#star2:checked ~ .star-group label[for="star2"] .star-icon,
#star2:checked ~ .star-group label[for="star2"] ~ .star-label .star-icon,
#star1:checked ~ .star-group label[for="star1"] .star-icon {
    fill: #ffb800;
}

.rating-text {
    font-size: 14px;
    color: #666;
}

/* 리뷰 내용 */
.review-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
    resize: vertical;
    transition: border-color 0.3s;
}

.review-textarea:focus {
    outline: none;
    border-color: #c76b52;
}

.review-textarea::placeholder {
    color: #999;
}

.review-textarea-count {
    text-align: right;
    margin-top: 8px;
    font-size: 13px;
    color: #999;
}

.current-count {
    color: #c76b52;
    font-weight: 700;
}

/* 사진 첨부 */
.review-photo-upload {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.photo-upload-btn {
    width: 120px;
    height: 120px;
    border: 2px dashed #e5e5e5;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #faf8f8;
}

.photo-upload-btn:hover {
    border-color: #c76b52;
    background: #fff8f4;
}

.photo-upload-btn svg {
    color: #999;
}

.photo-upload-btn span {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.photo-count {
    font-size: 12px !important;
    color: #999 !important;
    font-weight: 500 !important;
}

.photo-preview-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 선택 사진 미리보기 항목 (썸네일 + 빼기 버튼) */
.photo-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    padding: 0;
}

.photo-preview-remove:hover {
    background: rgba(0, 0, 0, 0.75);
}

.review-photo-guide {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* 추천 여부 */
.review-recommend {
    display: flex;
    gap: 12px;
}

.recommend-btn {
    flex: 1;
    padding: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #faf8f8;
}

.recommend-btn:hover {
    border-color: #c76b52;
    background: #fff8f4;
}

#recommend-yes:checked ~ .review-recommend label[for="recommend-yes"] {
    border-color: #c76b52;
    background: #e3f2fd;
}

#recommend-yes:checked ~ .review-recommend label[for="recommend-yes"] svg {
    stroke: #c76b52;
}

#recommend-no:checked ~ .review-recommend label[for="recommend-no"] {
    border-color: #ff4444;
    background: #fff7f5;
}

#recommend-no:checked ~ .review-recommend label[for="recommend-no"] svg {
    stroke: #ff4444;
}

.recommend-btn svg {
    stroke: #999;
    transition: stroke 0.3s;
}

.recommend-btn span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* 리뷰 작성 유의사항 */
.review-notice {
    padding: 16px;
    background: #fff8e1;
    border-radius: 12px;
    border-left: 4px solid #ffc107;
}

.review-notice-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
}

.review-notice-list {
    padding-left: 20px;
    margin: 0;
}

.review-notice-list li {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

/* 리뷰 작성 푸터 */
.review-write-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
    background: #faf8f8;
    flex-shrink: 0;
}

.review-reward {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #e8f5e9;
    border-radius: 8px;
    margin-bottom: 16px;
}

.review-reward svg {
    color: #2e7d32;
    flex-shrink: 0;
}

.review-reward span {
    font-size: 13px;
    color: #333;
}

.review-reward strong {
    font-weight: 700;
    color: #2e7d32;
}

.review-write-buttons {
    display: flex;
    gap: 12px;
}

.btn-cancel-review,
.btn-submit-review {
    flex: 1;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel-review {
    background: #fff;
    color: #666;
    border: 2px solid #e5e5e5;
}

.btn-cancel-review:hover {
    background: #faf8f8;
    border-color: #d0d0d0;
}

.btn-submit-review {
    background: #c76b52;
    color: #fff;
    border: 2px solid #c76b52;
}

.btn-submit-review:hover {
    background: #bb877a;
}

/* Responsive - 리뷰 모달 */
@media (max-width: 768px) {
    .review-write-modal {
        width: 95%;
        max-height: 85vh;
    }

    .review-write-header {
        padding: 20px;
    }

    .review-write-header h3 {
        font-size: 18px;
    }

    .review-write-body {
        padding: 20px;
    }

    .review-section {
        margin-bottom: 24px;
    }

    .review-section-title {
        font-size: 14px;
    }

    .review-product-image {
        width: 60px;
        height: 60px;
    }

    .review-product-name {
        font-size: 14px;
    }

    .review-product-option {
        font-size: 12px;
    }

    .star-icon {
        width: 36px;
        height: 36px;
    }

    .photo-upload-btn {
        width: 100px;
        height: 100px;
    }

    .recommend-btn {
        padding: 14px;
    }

    .review-write-footer {
        padding: 16px 20px;
    }

    .review-reward {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .review-reward span {
        font-size: 12px;
    }

    .review-write-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .review-write-header {
        padding: 16px;
    }

    .review-write-header h3 {
        font-size: 17px;
    }

    .review-write-body {
        padding: 16px;
    }

    .review-section-title {
        font-size: 13px;
    }

    .review-product-info {
        padding: 12px;
    }

    .review-product-image {
        width: 50px;
        height: 50px;
    }

    .review-product-name {
        font-size: 13px;
    }

    .review-product-option,
    .review-product-date {
        font-size: 11px;
    }

    .review-rating {
        padding: 20px;
    }

    .star-icon {
        width: 32px;
        height: 32px;
    }

    .rating-text {
        font-size: 13px;
    }

    .review-textarea {
        padding: 14px;
        font-size: 13px;
    }

    .review-textarea-count {
        font-size: 12px;
    }

    .photo-upload-btn {
        width: 90px;
        height: 90px;
    }

    .photo-upload-btn span {
        font-size: 12px;
    }

    .review-photo-guide {
        font-size: 11px;
    }

    .recommend-btn {
        padding: 12px;
    }

    .recommend-btn svg {
        width: 20px;
        height: 20px;
    }

    .recommend-btn span {
        font-size: 13px;
    }

    .review-notice {
        padding: 14px;
    }

    .review-notice-title {
        font-size: 13px;
    }

    .review-notice-list li {
        font-size: 12px;
    }

    .review-write-footer {
        padding: 14px 16px;
    }

    .review-reward {
        padding: 10px 14px;
    }

    .review-reward svg {
        width: 18px;
        height: 18px;
    }

    .review-reward span {
        font-size: 11px;
    }

    .btn-cancel-review,
    .btn-submit-review {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* 무한 스크롤 센티넬 및 로딩 */
.scroll-sentinel {
    padding: 20px;
    text-align: center;
}

.scroll-loading {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.scroll-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e1e6f0;
    border-top-color: #c76b52;
    border-radius: 50%;
    animation: order-spin 0.8s linear infinite;
}

@keyframes order-spin {
    to { transform: rotate(360deg); }
}

.scroll-end-message {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

@media (max-width: 768px) {
    .empty-orders {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

    .empty-orders-panel {
        min-height: 120px;
    }

    .empty-orders .empty-title {
        font-size: 20px;
    }
}
