/* SavSut Premium Order Tracking Stylesheet */

/* ── PAGE SPACING ── */
.background-light-gray-color.rts-section-gap.bg_light-1 {
    padding-top: 16px !important;
}

.rts-navigation-area-breadcrumb {
    padding-top: 0 !important;
    padding-bottom: 8px !important;
    background: transparent;
    margin-top: 0 !important;
}

.track-order-area {
    background: #ffffff;
    padding-top: 40px;
    padding-bottom: 80px;
}

/* Tracking Form Card Styles */
.tracing-order-account {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    max-width: 650px;
    margin: 0 auto;
}

.tracing-order-account .title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
}

.tracing-order-account p {
    color: #64748b;
    font-size: 1.55rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.order-tracking .single-input {
    margin-bottom: 20px;
}

.order-tracking .single-input label {
    display: block;
    font-weight: 600;
    font-size: 1.4rem;
    color: #475569;
    margin-bottom: 8px;
}

.order-tracking .single-input input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1.55rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.2s ease-in-out;
}

.order-tracking .single-input input:focus {
    border-color: #629d23;
    box-shadow: 0 0 0 4px rgba(98, 157, 35, 0.12);
    outline: none;
}

.order-tracking button.rts-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.75rem;
    font-weight: 700;
    border-radius: 10px;
    background: #629d23;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-tracking button.rts-btn:hover {
    background: #4d7a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(98, 157, 35, 0.24);
}

/* Alert Boxes */
.tracking-alert {
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 30px;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.tracking-alert-danger {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.tracking-alert-danger i {
    color: #dc2626;
    font-size: 1.3rem;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Order Details Layout */
.order-details-container {
    margin-top: 20px;
}

/* Dynamic Multi-Step Progress Tracker (Timeline) */
.order-timeline-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.order-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* The timeline connecting bar */
.order-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #cbd5e1;
    z-index: 1;
}

.order-timeline-progress-bar {
    position: absolute;
    top: 25px;
    left: 40px;
    height: 4px;
    background: #629d23;
    z-index: 1;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.timeline-step .step-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    border: 4px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step .step-label {
    margin-top: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #64748b;
    transition: color 0.3s ease;
}

.timeline-step .step-date {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Completed and active classes */
.timeline-step.completed .step-icon {
    background: #629d23;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(98, 157, 35, 0.15);
}

.timeline-step.completed .step-label {
    color: #629d23;
}

.timeline-step.active .step-icon {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.2);
    animation: activeStepPulse 2s infinite alternate;
}

.timeline-step.active .step-label {
    color: #d97706;
}

/* Animations */
@keyframes activeStepPulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* Responsive timeline for mobile */
@media (max-width: 768px) {
    .order-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding-left: 20px;
    }
    .order-timeline::before {
        top: 0;
        bottom: 0;
        left: 45px;
        width: 4px;
        height: auto;
        right: auto;
    }
    .order-timeline-progress-bar {
        top: 0;
        left: 45px;
        width: 4px !important;
        right: auto;
    }
    .timeline-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 20px;
    }
    .timeline-step .step-label {
        margin-top: 0;
    }
}

/* Info Cards & Tables Layout */
.order-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .order-summary-grid {
        grid-template-columns: 4fr 5fr;
    }
}

.order-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.order-info-card .card-section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

/* Key Value List */
.key-value-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.key-value-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 10px;
}

.key-value-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.key-value-item .key-title {
    font-weight: 500;
    color: #64748b;
    font-size: 1.45rem;
}

.key-value-item .value-text {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.55rem;
    text-align: right;
}

.key-value-item .badge-status {
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 1.25rem;
    font-weight: 700;
}

.badge-status-pending { background: #fef3c7; color: #d97706; }
.badge-status-processing { background: #dbeafe; color: #2563eb; }
.badge-status-shipped { background: #fae8ff; color: #c084fc; }
.badge-status-delivered { background: #dcfce7; color: #16a34a; }
.badge-status-cancelled { background: #fee2e2; color: #dc2626; }
.badge-status-returned { background: #f1f5f9; color: #475569; }

/* Product Table */
.order-table-wrapper {
    overflow-x: auto;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
}

.order-items-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #cbd5e1;
}

.order-items-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.order-items-table tr:last-child td {
    border-bottom: none;
}

.table-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-product-cell img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    flex-shrink: 0;
}

.table-product-cell .prod-info {
    display: flex;
    flex-direction: column;
}

.table-product-cell .prod-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.5rem;
}

.table-product-cell .prod-sub {
    font-size: 1.25rem;
    color: #94a3b8;
}

/* Pricing Section at bottom of Table Card */
.order-pricing-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    color: #475569;
}

.pricing-row.grand-total {
    border-top: 1px dashed #cbd5e1;
    padding-top: 12px;
    font-size: 2.0rem;
    font-weight: 800;
    color: #1e293b;
}

.pricing-row.grand-total .total-amount {
    color: #629d23;
}

.back-to-query-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    font-weight: 700;
    color: #629d23;
    font-size: 1.55rem;
    transition: color 0.2s;
}

.back-to-query-btn:hover {
    color: #4d7a1a;
}
