.tracking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 100px;
}

.tracking-wrapper .t-c-item {
    background: #f6f9fc !important
}

.track-tabs {
    border: 0;
}

.track-tabs .nav-item {
    margin-bottom: 0;
    text-align: left;
}

.track-tabs .nav-link {
    padding: 0.375rem 0.625rem;
    opacity: .6;
}

.track-tabs .nav-link.completed,
.track-tabs .nav-link.active {
    opacity: 1;
}

.track-tab-media {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 3.75rem;
    height: 3.75rem;
    transition: color .25s ease-in-out, background-color .25s ease-in-out, box-shadow .25s ease-in-out, border-color .25s ease-in-out;
    border: 1px solid #e3e9ef;
    border-radius: 50%;
    background-color: #fff;
    color: #4b566b;
    text-align: center;
    overflow: hidden;
}

.track-link.completed .track-tab-media {
    overflow: visible;
}

.nav-link.disabled .track-tab-media,
.nav-link.completed .track-tab-media {
    background-color: #f6f9fc;
    color: #7d879c;
}

.track-tab-title,
.track-tab-subtitle {
    transition: color .25s ease-in-out, background-color .25s ease-in-out, box-shadow .25s ease-in-out, border-color .25s ease-in-out;
}

.tracking-wrapper .nav-tabs .nav-link.active,
.tracking-wrapper .nav-tabs .nav-item.show .nav-link {

    background-color: transparent;
    border-color: transparent;
}

.nav-link.active .track-tab-media,
.nav-link.active:hover .track-tab-media {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--primary-text-color);
    box-shadow: 0 0.5rem 1.125rem -0.5rem var(--primary-color);
}

.tracking-wrapper .nav-link.active .track-tab-subtitle,
.tracking-wrapper .nav-link.active:hover .track-tab-subtitle {
    color: var(--primary-color) !important;
}


.tracking-data-loading {
    display: flex;
    justify-content: center;
    width: 100%;
    background: #f1f1f1;
    height: 300px;
    align-items: center;
    border-radius: 12px;
    flex-direction: column;
    gap: 20px;
}

.tracking-data-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

.track-tabs .nav-item {
    outline: none !important;
    pointer-events: none;
}

.tracking-wrapper .nav-tabs .nav-link:focus,
.tracking-wrapper .nav-tabs .nav-link:hover {
    border: 0 !important;
    outline: none !important;
}

.nav-link.completed .track-tab-media {
    overflow: visible;
}

.tracking-wrapper .nav-link.completed .track-tab-media::after {
    position: absolute;
    content: "\2714";
    top: -0.175rem;
    right: -0.175rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #00683b;
    color: #ffffff;
    font-size: .625rem;
    font-weight: 600;
    line-height: 1.15rem;
}

.track-tab-subtitle {
    font-size: .85rem;
}

@media screen and (max-width: 590px) {
    .track-tabs .nav-item {
        width: 100%;
        padding: 20px;
    }

    .tracking-wrapper .tracking-page-head {
        flex-direction: column;
        justify-content: center;
    }

    .tracking-wrapper .nav {
        flex-direction: column;
        gap: 20px;
        padding-bottom: 20px;
    }

    .tracking-header {
        border-radius: 0 !important;
    }

    .tracking-header svg {
        width: 48px;
        height: 48px;
    }

    .tracking-header h4 {
        font-size: 26px;
        padding-top: 10px;
    }

    .tracking-header .text-end {
        width: 100%
    }

    .tracking-stats {
        grid-template-columns: 2fr 2fr !important;
    }

    .tracking-timeline {
        padding: 25px !important;
    }

    .tracking-stats .stat-card svg {
        width: 36px;
        height: 36px;
    }
}
.tracking-timeline {
    position: relative;
    padding: 2rem 0;
}

.tracking-header {
    background: var(--Main-primary_color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: var(--Main-primary_text_color);
}

.tracking-header h4{
    color: var(--Main-primary_text_color);

}

.tracking-header .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.tracking-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #201e1e;
    text-decoration: none;
    background: rgb(255 255 255);
    padding: 0.5rem 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tracking-link:hover {
    transform: translateX(5px);
}

.timeline-item {
    position: relative;
    padding-left: 3.5rem;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1.125rem;
    top: 2rem;
    bottom: -0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, #e0e0e0 0%, #f5f5f5 100%);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-item.status-delivered .timeline-marker {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.timeline-item.status-transit .timeline-marker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.timeline-item.status-pickup .timeline-marker {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.timeline-item.status-inforeceived .timeline-marker {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.timeline-item.status-outfordelivery .timeline-marker {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.timeline-item.status-exception .timeline-marker {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-description {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #a0aec0;
}

.timeline-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.timeline-meta-item i {
    font-size: 1rem;
}

.tracking-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #343232;
}


.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: #718096;
}

@media (max-width: 768px) {
    .timeline-item {
        padding-left: 2.5rem;
    }

    .timeline-marker {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }

    .timeline-item::before {
        left: 0.875rem;
    }

    .tracking-stats {
        grid-template-columns: 1fr;
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #a0aec0;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.tracking-wrapper .order-summary-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

 .tracking-wrapper .order-summary-header {
    background: var(--Main-primary_color);
    color: var(--Main-primary_text_color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.tracking-wrapper .order-summary-header h5 {
    color: var(--Main-primary_text_color);

}


 .tracking-wrapper .order-products-list {
    padding: 1rem;
}

 .tracking-wrapper .product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

  .tracking-wrapper .product-item:last-child {
    border-bottom: none;
}

  .tracking-wrapper .product-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
}

  .tracking-wrapper .product-image {
    flex-shrink: 0;
}

 .tracking-wrapper .product-image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

  .tracking-wrapper .product-details {
    flex: 1;
    max-width: 100%;
}

  .tracking-wrapper .product-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 16px !important;
    margin-bottom: 0.5rem;
}

  .tracking-wrapper .product-variations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

  .tracking-wrapper .variation-item {
    font-size: 0.8rem;
    color: #718096;
    background: #f7fafc;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: capitalize;
}

 .tracking-wrapper  .product-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #a0aec0;

}

  .tracking-wrapper .product-meta {
    border-top: 1px solid #ededed !important;
    padding-top: .75rem !important;
    margin-top: .75rem !important;
}

 .tracking-wrapper .product-qty {
    font-weight: 500;
}

 .tracking-wrapper .product-i-price {
    color: #4a5568;
}

 .tracking-wrapper .product-total {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    min-width: 100px;
    text-align: right;
}

.tracking-wrapper  .order-summary-footer {
    background: #f8f9fa;
    padding: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

 .tracking-wrapper .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #4a5568;
}

 .tracking-wrapper .summary-row span:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

  .tracking-wrapper .summary-row.summary-total {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #cbd5e0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
}

  .tracking-wrapper .summary-row .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

 .tracking-wrapper .order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

  .tracking-wrapper .info-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

  .tracking-wrapper .info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tracking-wrapper  .info-card-wide {
    grid-column: span 2;
}

 .tracking-wrapper .info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--Main-primary_color);
    color: var(--Main-primary_text_color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

 .tracking-wrapper .info-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

 .tracking-wrapper .info-label {
    font-size: 0.8rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

 .tracking-wrapper .info-value {
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 600;
}

@media (max-width: 768px) {
   .tracking-wrapper   .product-total {
        align-self: flex-end;
        min-width: auto;
        position: absolute;
        right: 20px;
    }

    .tracking-wrapper  .order-info-grid {
        grid-template-columns: 1fr;
    }

     .tracking-wrapper .info-card-wide {
        grid-column: span 1;
    }

    .tracking-wrapper  .order-summary-header h5 {
        font-size: 1rem;

    }

    .tracking-wrapper  .order-summary-card {
        border-radius: 0;
    }

}