/* 비회원 주문 조회 페이지 */
.guest-lookup-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

.lookup-form-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.lookup-form-card .form-label.required::after {
    content: ' *';
    color: #dc3545;
}

.lookup-form-card .form-control {
    padding: 10px 14px;
}

/* 조회 결과 */
#lookupResult {
    margin-top: 30px;
}

.lookup-order-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.lookup-order-header {
    background: #f8f9fa;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.lookup-order-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.lookup-order-body {
    padding: 20px;
}

.lookup-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lookup-info-row:last-child {
    border-bottom: none;
}

.lookup-info-label {
    color: #666;
    font-size: 14px;
    min-width: 100px;
}

.lookup-info-value {
    font-size: 14px;
    text-align: right;
    word-break: break-all;
}

.lookup-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.lookup-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.lookup-status-badge.paid {
    background: #d1e7dd;
    color: #0f5132;
}

.lookup-status-badge.preparing {
    background: #cfe2ff;
    color: #084298;
}

.lookup-status-badge.shipping {
    background: #e2d9f3;
    color: #563d7c;
}

.lookup-status-badge.delivered {
    background: #d1e7dd;
    color: #0f5132;
}

.lookup-status-badge.cancelled {
    background: #f8d7da;
    color: #842029;
}

.lookup-status-badge.returned {
    background: #fff3cd;
    color: #664d03;
}

.lookup-status-badge.exchanged {
    background: #cfe2ff;
    color: #084298;
}

/* 주문 상품 */
.lookup-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lookup-product-item:last-child {
    border-bottom: none;
}

.lookup-product-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #eee;
}

.lookup-product-info {
    flex: 1;
}

.lookup-product-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px;
}

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

.lookup-product-qty {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.lookup-product-price {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* 금액 요약 */
.lookup-amount-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.lookup-amount-row.total {
    border-top: 2px solid #333;
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 16px;
}

/* 배송 추적 */
.lookup-shipping-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lookup-shipping-item:last-child {
    border-bottom: none;
}

.lookup-shipping-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lookup-shipping-carrier {
    font-size: 14px;
    font-weight: 500;
}

.lookup-shipping-number {
    font-size: 13px;
    color: #666;
}

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

.lookup-tracking-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #563d7c;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
    line-height: 28px;
}

.lookup-tracking-btn:hover {
    background: #452d6b;
    color: #fff;
    text-decoration: none;
}

/* 클레임 (취소/반품/교환) */
.lookup-claim-card.cancelled .lookup-claim-header {
    background: #f8d7da;
}

.lookup-claim-card.returned .lookup-claim-header {
    background: #fff3cd;
}

.lookup-claim-card.exchanged .lookup-claim-header {
    background: #cfe2ff;
}

.lookup-claim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lookup-claim-status {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
}

/* 클레임 타임라인 */
.lookup-claim-timeline {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.lookup-claim-timeline::before {
    content: '';
    position: absolute;
    top: 38px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e5e5e5;
}

.lookup-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.lookup-timeline-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e5e5;
    color: #999;
    font-size: 16px;
}

.lookup-timeline-step.active .lookup-timeline-icon {
    background: #333;
    color: #fff;
}

.lookup-timeline-title {
    font-size: 12px;
    color: #999;
    text-align: center;
    white-space: nowrap;
}

.lookup-timeline-step.active .lookup-timeline-title {
    color: #333;
    font-weight: 500;
}

/* 클레임 섹션 */
.lookup-claim-section {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lookup-claim-section:last-child {
    border-bottom: none;
}

.lookup-claim-section-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #333;
}

/* 클레임 상품 */
.lookup-claim-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.lookup-claim-item:last-child {
    border-bottom: none;
}

.lookup-claim-item-name {
    flex: 1;
    font-size: 14px;
}

.lookup-claim-item-option {
    font-size: 13px;
    color: #666;
}

.lookup-claim-item-qty {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

/* 클레임 배송 조회 */
.lookup-claim-tracking {
    margin-top: 12px;
}

/* 반응형 */
@media (max-width: 767.98px) {
    .guest-lookup-container {
        padding: 10px 0 40px;
    }

    .lookup-form-card {
        padding: 20px 16px;
    }

    .lookup-info-row {
        flex-direction: column;
        gap: 2px;
    }

    .lookup-info-value {
        text-align: left;
    }

    .lookup-product-img {
        width: 50px;
        height: 50px;
    }

    .lookup-shipping-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .lookup-tracking-btn {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .lookup-claim-timeline {
        gap: 4px;
        padding: 16px 0;
    }

    .lookup-timeline-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .lookup-timeline-title {
        font-size: 11px;
    }

    .lookup-claim-item {
        flex-wrap: wrap;
    }

    .lookup-claim-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}
