/* ==========================================
   ZIJAI ORDER TRACKING
   TRACKING PAGE STYLES
========================================== */


/* ==========================================
   TRACKING SECTION
========================================== */

.tracking-section {

    padding: 60px 0 80px;

    min-height: 70vh;

}


/* ==========================================
   TRACKING HEADER
========================================== */

.tracking-header {

    text-align: center;

    margin-bottom: 40px;

}


.tracking-header span {

    display: inline-block;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #198754;

    margin-bottom: 8px;

}


.tracking-header h1 {

    font-size: 38px;

    font-weight: 700;

    margin-bottom: 10px;

}


.tracking-header p {

    color: #777;

    margin-bottom: 0;

}


/* ==========================================
   TRACKING CARD
========================================== */

.tracking-card {

    background: #ffffff;

    border-radius: 18px;

    padding: 28px;

    border: 1px solid #e7e7e7;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.05);

}


.tracking-card h3 {

    font-size: 22px;

    font-weight: 700;

    margin-bottom: 25px;

}


.tracking-card h4 {

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 18px;

}


.tracking-card p {

    color: #555;

}


/* ==========================================
   ORDER SUMMARY
========================================== */

.summary-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

}


.summary-row span {

    color: #555;

}


.summary-row strong {

    color: #222;

}


/* ==========================================
   STATUS TIMELINE
========================================== */

.status-timeline {

    position: relative;

    margin-top: 10px;

}


.status-step {

    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 18px;

    padding: 18px 0;

    opacity: 0.45;

    transition:
        all 0.3s ease;

}


/* Vertical line */

.status-step:not(:last-child)::after {

    content: "";

    position: absolute;

    left: 21px;

    top: 60px;

    width: 2px;

    height: calc(100% - 18px);

    background: #dddddd;

}


/* ==========================================
   STATUS ICON
========================================== */

.status-icon {

    position: relative;

    z-index: 2;

    width: 44px;

    height: 44px;

    min-width: 44px;

    border-radius: 50%;

    background: #eeeeee;

    color: #888;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;

    transition:
        all 0.3s ease;

}


/* ==========================================
   ACTIVE STATUS
========================================== */

.status-step.active {

    opacity: 1;

}


.status-step.active .status-icon {

    background: #198754;

    color: #ffffff;

    box-shadow:
        0 0 0 6px
        rgba(25, 135, 84, 0.12);

}


/* ==========================================
   COMPLETED STATUS
========================================== */

.status-step.completed {

    opacity: 1;

}


.status-step.completed .status-icon {

    background: #198754;

    color: #ffffff;

}


.status-step.completed::after {

    background: #198754;

}


/* ==========================================
   STATUS CONTENT
========================================== */

.status-step h5 {

    margin: 0 0 4px;

    font-size: 17px;

    font-weight: 700;

}


.status-step p {

    margin: 0;

    font-size: 14px;

    color: #777;

}


/* ==========================================
   ETA BOX
========================================== */

.eta-box {

    display: flex;

    align-items: flex-start;

    gap: 18px;

    padding: 22px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #f1f9f3,
            #f8fcf8
        );

    border: 1px solid #cfe8d4;

}


.eta-icon {

    width: 58px;

    height: 58px;

    min-width: 58px;

    border-radius: 50%;

    background: #198754;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;

    box-shadow:
        0 5px 15px
        rgba(25, 135, 84, 0.2);

}


.eta-content {

    flex: 1;

}


.eta-title {

    font-size: 14px;

    font-weight: 600;

    color: #666;

    margin-bottom: 3px;

}


.eta-time {

    font-size: 28px;

    font-weight: 800;

    color: #196b24;

    line-height: 1.2;

}


.eta-countdown {

    margin-top: 5px;

    font-size: 14px;

    color: #555;

}


/* ==========================================
   ETA BREAKDOWN
========================================== */

.eta-breakdown {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    border-top: 1px solid #d9eadb;

    padding-top: 13px;

}


.eta-breakdown-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 9px 12px;

    background: #ffffff;

    border: 1px solid #e4eee5;

    border-radius: 9px;

    font-size: 13px;

}


.eta-breakdown-item span {

    color: #666;

}


.eta-breakdown-item strong {

    color: #222;

}


.eta-total-time {

    background: #eaf7ed;

    border-color: #cce5d1;

}


/* ==========================================
   ACTUAL ORDER TIMELINE
========================================== */

.actual-time-card {

    margin-top: 20px;

    padding: 24px;

    background: #ffffff;

    border-radius: 16px;

    border: 1px solid #e5e5e5;

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, 0.04);

}


.actual-time-title {

    font-size: 19px;

    font-weight: 700;

    margin-bottom: 15px;

    color: #222;

}


/* ==========================================
   ACTUAL STATUS ROW
========================================== */

.actual-status-row {

    position: relative;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 13px 0;

    border-bottom: 1px solid #eeeeee;

}


.actual-status-row:last-child {

    border-bottom: none;

}


.actual-status-icon {

    width: 42px;

    height: 42px;

    min-width: 42px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eeeeee;

    color: #999;

    font-size: 16px;

}


.actual-status-row.completed
.actual-status-icon {

    background: #198754;

    color: #ffffff;

}


.actual-status-content {

    flex: 1;

}


.actual-status-name {

    font-size: 15px;

    font-weight: 600;

    color: #333;

}


.actual-status-time {

    font-size: 13px;

    color: #198754;

    margin-top: 2px;

}


.actual-status-row.pending
.actual-status-name {

    color: #999;

}


.actual-status-row.pending
.actual-status-time {

    color: #aaa;

}


/* ==========================================
   DELIVERY PERFORMANCE
========================================== */

.actual-performance-card {

    margin-top: 20px;

    padding: 24px;

    background: #ffffff;

    border-radius: 16px;

    border: 1px solid #e5e5e5;

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, 0.04);

}


.performance-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

}


.performance-item {

    padding: 16px;

    background: #f7f9f7;

    border-radius: 11px;

    border: 1px solid #e8eee9;

}


.performance-item span {

    display: block;

    font-size: 13px;

    color: #777;

    margin-bottom: 6px;

}


.performance-item strong {

    display: block;

    font-size: 19px;

    font-weight: 700;

    color: #222;

}


.performance-total {

    background: #eaf7ed;

    border-color: #cce5d1;

}


.performance-total strong {

    color: #198754;

}


/* ==========================================
   ALERT
========================================== */

.tracking-card
.alert {

    border-radius: 12px;

}


/* ==========================================
   BUTTONS
========================================== */

.tracking-section .btn {

    font-weight: 600;

}


.tracking-section
.btn-success {

    padding-left: 24px;

    padding-right: 24px;

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .tracking-section {

        padding:
            40px 0 60px;

    }


    .tracking-header h1 {

        font-size: 30px;

    }


    .tracking-card {

        padding: 20px;

        border-radius: 15px;

    }


    .tracking-card h3 {

        font-size: 20px;

    }


    .tracking-card h4 {

        font-size: 18px;

    }


    .eta-box {

        padding: 18px;

    }


    .eta-icon {

        width: 50px;

        height: 50px;

        min-width: 50px;

        font-size: 21px;

    }


    .eta-time {

        font-size: 24px;

    }


    .eta-breakdown {

        display: block;

    }


    .eta-breakdown-item {

        margin-bottom: 8px;

    }


    .performance-grid {

        grid-template-columns: 1fr;

    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .tracking-header h1 {

        font-size: 27px;

    }


    .tracking-header p {

        font-size: 14px;

    }


    .tracking-card {

        padding: 16px;

    }


    .status-step {

        gap: 12px;

    }


    .status-icon {

        width: 40px;

        height: 40px;

        min-width: 40px;

    }


    .status-step:not(:last-child)::after {

        left: 19px;

    }


    .status-step h5 {

        font-size: 15px;

    }


    .status-step p {

        font-size: 13px;

    }


    .eta-box {

        gap: 12px;

        padding: 15px;

    }


    .eta-icon {

        width: 45px;

        height: 45px;

        min-width: 45px;

    }


    .eta-time {

        font-size: 21px;

    }


    .eta-countdown {

        font-size: 13px;

    }


    .actual-time-card,
    .actual-performance-card {

        padding: 18px;

    }

}