/* 주문 확인서 페이지 전용 CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: linear-gradient(135deg, #2196f3 0%, #21cbf3 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #21cbf3;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.content {
    padding: 40px 30px 30px;
}

.order-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #2196f3;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 진행상태 게이지바 */
.progress-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #2196f3;
}

.progress-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.progress-title i {
    margin-right: 10px;
    color: #2196f3;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    gap: 2px;
    margin-bottom: 10px;
}

.progress-step {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.progress-step.completed {
    background-color: #28a745;
    color: white;
}

.progress-step.current {
    background-color: #2196f3;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.progress-step.pending {
    background-color: #e9ecef;
    color: #6c757d;
}

/* 주문 상품 정보 */
.items-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: #2196f3;
}

.item-row {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.item-row:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.item-main {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.item-info {
    flex: 1;
    min-width: 300px;
}

.item-material {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.item-summary {
    font-size: 1em;
    color: #666;
}

.item-summary .number {
    color: #2196f3;
    font-weight: bold;
}

.item-summary .price {
    color: #e91e63;
    font-weight: bold;
    float: right;
}

.item-basic-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 600;
}

.item-basic-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-options {
    font-size: 0.95em;
    color: #555;
    line-height: 1.4;
}

.option-row {
    margin-bottom: 4px;
}

.option-label {
    color: #2196f3;
    font-weight: 500;
    min-width: 60px;
    display: inline-block;
}

.separator {
    color: #ccc;
}

.detail-btn {
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-btn:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.detail-btn i {
    transition: transform 0.3s ease;
}

.detail-btn.expanded i {
    transform: rotate(180deg);
}

/* 상세 정보 확장 영역 */
.item-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.item-details.expanded {
    max-height: 300px;
}

.details-content {
    padding: 15px;
}

.price-breakdown {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.price-row:last-child {
    border-bottom: none;
    font-weight: normal;
    color: #333;
    margin-top: 0;
    padding-top: 10px;
    border-top: none;
}

.price-label {
    font-size: 1em;
    color: #333;
    font-weight: 500;
}

.price-value {
    font-size: 1em;
    font-weight: 600;
    color: #333;
}

/* 고객 메모 섹션 */
.memo-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.memo-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.memo-title i {
    margin-right: 8px;
}

.memo-content {
    color: #533;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f0d85f;
}

/* 주문 정보 카드 (하단으로 이동) */
.order-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #2196f3;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
    font-weight: normal;
    color: #333;
    margin-top: 0;
    padding-top: 10px;
    border-top: none;
}

.info-label {
    font-size: 1em;
    color: #333;
    font-weight: 500;
}

.info-label i {
    margin-right: 8px;
    color: #2196f3;
}

.info-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.price {
    color: #e91e63;
    font-size: 1.3em;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading i {
    font-size: 3em;
    color: #2196f3;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.error {
    text-align: center;
    padding: 60px 20px;
    color: #e74c3c;
}

.footer {
    text-align: center;
    padding: 30px;
    color: #666;
    border-top: 1px solid #e9ecef;
    margin-top: 30px;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 15px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .order-number {
        font-size: 2em;
    }
    
    .item-main {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-info {
        min-width: auto;
        width: 100%;
    }
    
    .item-basic-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .item-basic-left {
        flex-wrap: wrap;
    }
    
    .option-label {
        min-width: 50px;
        font-size: 0.9em;
    }
    
    .detail-btn {
        align-self: stretch;
        justify-content: center;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-bar {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .progress-step {
        min-width: 70px;
        height: 35px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }
    
    .order-number {
        font-size: 1.6em;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
} 