.track-section{
    min-height: 75vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding-block: 4rem;
}

.track-card{
    max-width: 520px;

    width: 100%;

    background: white;

    padding: 2rem;

    border-radius: 22px;

    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.tracked-order-card{
    padding: 1rem 0;

    border-bottom: 1px solid #eee;

    margin-bottom: 1rem;
}

.order-status{
    font-weight: bold;
}

.status-badge{
    padding: 0.45rem 0.9rem;

    border-radius: 999px;

    font-size: 0.85rem;

    font-weight: 600;

    text-transform: capitalize;

    white-space: nowrap;
}

.status-confirmed{
    background: #dcfce7;

    color: #15803d;
}

.status-pending{
    background: #fef3c7;

    color: #b45309;
}

.status-cancelled{
    background: #fee2e2;

    color: #dc2626;
}

.status-failed{
    background: #fee2e2;

    color: #dc2626;
}

.status-delivered{
    background: #dbeafe;

    color: #2563eb;
}


.payment-paid{
    color: #15803d;

    font-weight: 600;
}

.payment-failed{
    color: #dc2626;

    font-weight: 600;
}

.payment-pending{
    color: #d97706;

    font-weight: 600;
}


.tracked-products{
    margin-top: 1rem;
}

.tracked-product{
    display: flex;

    align-items: center;

    gap: 1rem;

    margin-bottom: 1rem;
}

.tracked-product img{
    width: 65px;

    height: 65px;

    object-fit: cover;

    border-radius: 10px;
}

.tracked-product h4{
    font-size: 1rem;

    margin-bottom: 0.3rem;
}

.track-card h1{
    margin-bottom: 2rem;

    text-align: center;
}

.track-group{
    display: flex;

    flex-direction: column;

    gap: 0.5rem;

    margin-bottom: 1.2rem;
}

.track-group input{
    padding: 0.9rem 1rem;

    border: 1px solid #ddd;

    border-radius: 10px;
}

.track-error{
    color: #dc2626;

    margin-top: 1rem;
}

.track-result{
    margin-top: 2rem;

    padding-top: 2rem;

    border-top: 1px solid #eee;
}

@media(max-width:768px){

    .track-section{
        padding-block: 2rem;
        
    }

    .tracked-product div{
    flex: 1;

    min-width: 0;
}
    .tracked-product h4{
    font-size: 0.95rem;

    margin-bottom: 0.3rem;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

    text-overflow: ellipsis;

    line-height: 1.4;
}

    .track-card{
        padding: 1.5rem;
    }
}