/* Optional: load Poppins if not already loaded elsewhere */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/**
 * Order Tracker Styles - Phone Only
 */
.sdo-order-tracker {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
}

.sdo-tracker-header {
    text-align: center;
    margin-bottom: 40px;
}

.sdo-tracker-header h2 {
    color: #1a2d40;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.sdo-tracker-header p {
    color: #666;
    font-size: 16px;
}

.sdo-tracker-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.sdo-form-group {
    margin-bottom: 25px;
}

.sdo-form-group label {
    display: block;
    font-weight: 600;
    color: #1a2d40;
    margin-bottom: 8px;
    font-size: 16px;
}

.sdo-form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.sdo-form-group input:focus {
    border-color: #c5a47e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 164, 126, 0.2);
}

.sdo-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.sdo-track-btn {
    width: 100%;
    padding: 18px;
    background: #c5a47e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sdo-track-btn:hover {
    background: #b3916b;
    transform: translateY(-2px);
}

.sdo-tracker-results {
    margin-top: 30px;
}

.sdo-tracker-loading {
    text-align: center;
    padding: 40px;
}

.sdo-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c5a47e;
    border-radius: 50%;
    animation: sdo-tracker-spin 1s linear infinite; /* renamed to avoid collisions */
    margin: 0 auto 20px;
}

@keyframes sdo-tracker-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sdo-orders-summary {
    background: #e8f4ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
}

.sdo-orders-summary h3 {
    margin: 0 0 10px;
    color: #1a2d40;
}

.sdo-tracker-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-left: 4px solid #c5a47e;
}

.sdo-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sdo-order-header h4 {
    margin: 0;
    color: #1a2d40;
    font-size: 18px;
}

.sdo-order-date {
    color: #666;
    font-size: 14px;
}

.sdo-tracker-status {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #d1ecf1; color: #0c5460; }
.status-dispatched { background: #d4edda; color: #155724; }
.status-completed { background: #d1e7ff; color: #004085; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.sdo-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.sdo-detail-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
}

.sdo-detail-item strong {
    color: #1a2d40;
}

.sdo-tracker-timeline {
    margin: 20px 0;
}

.sdo-tracker-timeline h5 {
    margin: 0 0 15px;
    color: #1a2d40;
    font-size: 16px;
}

.sdo-timeline {
    position: relative;
    padding-left: 30px;
}

.sdo-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #c5a47e;
}

.sdo-timeline-event {
    position: relative;
    margin-bottom: 15px;
}

.sdo-timeline-dot {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: #c5a47e;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #c5a47e;
}

.sdo-timeline-content {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.sdo-timeline-content strong {
    color: #1a2d40;
    display: block;
    margin-bottom: 3px;
}

.sdo-timeline-content span {
    color: #666;
    font-size: 13px;
}

.sdo-timeline-content p {
    margin: 8px 0 0;
    color: #666;
    font-style: italic;
    font-size: 13px;
}

.sdo-tracker-support {
    background: #e8f4ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
}

.sdo-tracker-support h4 {
    margin: 0 0 15px;
    color: #1a2d40;
}

.sdo-tracker-support p {
    margin: 0 0 10px;
    color: #666;
}

.sdo-tracker-error {
    background: #ffebee;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #d9534f;
    text-align: center;
}

.sdo-tracker-error p {
    margin: 0;
    color: #d9534f;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sdo-order-tracker { margin: 20px; padding: 20px; }
    .sdo-tracker-form { padding: 20px; }
    .sdo-detail-grid { grid-template-columns: 1fr; }
    .sdo-timeline { padding-left: 20px; }
    .sdo-timeline-dot { left: -26px; }
    .sdo-order-header { flex-direction: column; align-items: flex-start; gap: 5px; }
}
