.order-status-card { background: white; border-radius: 12px; padding: 16px; margin: 10px 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); .order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee; h3 { margin: 0; color: #333; font-size: 1.1rem; font-weight: 600; } } .status-badge { padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; &.processing { background: #e3f2fd; color: #1976d2; } &.completed { background: #e8f5e9; color: #2e7d32; } &.pending { background: #fff3e0; color: #f57c00; } &.on-hold { background: #fffde7; color: #fbc02d; } &.cancelled { background: #ffebee; color: #c62828; } &.refunded { background: #f3e5f5; color: #7b1fa2; } &.failed { background: #fbe9e7; color: #d84315; } } .order-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; .detail-row { display: flex; flex-direction: column; gap: 4px; .label { color: #666; font-size: 0.85rem; } .value { color: #333; font-weight: 500; } } } .order-actions { margin: 16px 0; padding: 16px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; .action-buttons { display: flex; flex-wrap: wrap; gap: 8px; } .action-button { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 6px; font-size: 0.875rem; font-weight: 500; background: #f8f9fa; border: 1px solid #e2e8f0; color: #333; transition: all 0.2s ease; &:hover { background: #f1f5f9; border-color: #cbd5e1; } svg { width: 16px; height: 16px; } } } .order-items { h4 { margin: 0 0 12px; font-size: 1rem; color: #333; font-weight: 600; } .order-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; } .item-card { background: #f8f9fa; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; .item-image { width: 100%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: white; img { width: 100%; height: 100%; object-fit: contain; padding: 8px; } } .item-details { .item-name { display: block; font-weight: 500; color: #333; margin-bottom: 4px; font-size: 0.9rem; } .item-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; .item-qty { color: #666; } .item-total { color: #1976d2; font-weight: 500; } } } } } .order-support-section { margin-top: 16px; padding: 16px; border-top: 1px solid #eee; text-align: center; .support-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: #e3f2fd; border: 1px solid #90caf9; color: #1976d2; border-radius: 6px; font-size: 0.875rem; font-weight: 500; transition: all 0.2s ease; &:hover { background: #bbdefb; border-color: #64b5f6; } &:disabled { opacity: 0.7; cursor: not-allowed; } } .notes-form { background: #f8f9fa; border-radius: 8px; padding: 16px; .notes-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; h4 { margin: 0; font-size: 1rem; font-weight: 500; color: #333; } .close-button { background: none; border: none; font-size: 24px; color: #666; cursor: pointer; padding: 0 8px; line-height: 1; &:hover { color: #333; } } } .notes-input { width: 100%; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 6px; resize: vertical; min-height: 80px; font-size: 0.875rem; margin-bottom: 12px; &:focus { outline: none; border-color: #90caf9; box-shadow: 0 0 0 2px rgba(144, 202, 249, 0.2); } } .error-text { color: #dc2626; font-size: 0.75rem; margin-bottom: 8px; text-align: left; } .success-text { color: #2e7d32; font-size: 0.75rem; margin-bottom: 8px; text-align: left; } .support-button { width: 100%; justify-content: center; margin-top: 8px; } } } } // Responsive adjustments @media (max-width: 640px) { .order-status-card { .order-items-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } .action-buttons { flex-direction: column; .action-button { width: 100%; justify-content: center; } } .order-details { grid-template-columns: 1fr; } } }