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

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

/* 페이지 헤더 */
.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: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

/* 주문 항목 */
.order-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
} 

/* 주문 헤더 */
.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: auto 1fr auto;
    gap: 30px;
    padding: 24px;
    align-items: center;
}

.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: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #faf8f8;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

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

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

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

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

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

/* 렌탈 정보 */
.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: flex-end;
    border-left:1px solid #e5e5e5;
    justify-content: center;
    padding-left:10px;
    height:100%;
}

.status-badge {
    width:120px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

.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: 8px;
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    justify-content: flex-end;
}

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

.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: cover;
}

.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: cover;
}

.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-content {
        grid-template-columns: 120px 1fr 160px;
        gap: 20px;
    }

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

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

@media (max-width: 768px) {
    .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-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
        padding: 16px 20px;
    }

    .order-content {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px;
    }

    .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

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

    .order-status {
        align-items: flex-start;
        padding-left:0;
        border-left:0;
        border-top:1px solid #e5e5e5;
        padding-top:10px;
    }

    .status-badge {width:unset;}

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

    .order-actions {
        flex-direction: column;
        padding: 16px 20px;
    }

    .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;
    }

    .order-content {
        padding: 16px;
    }

    .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: cover;
}

.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;
}

.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;
}
