.order-tracking {
    max-width: 95%;
    margin: 0 auto;
    padding: 20px;
}

.order-tracking-form {
    display: flex;
    margin-bottom: 20px;
}

.order-tracking-form .form-group{
    width: 100%;
    display: flex;
}

.order-tracking-form input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px 0 0 6px;
}
 
.order-tracking-form button 
 {
    padding: 8px 16px;
    border: none;
    background: #28a745;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    margin-left: 20px;
}

.order-tracking-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 30px;
    gap: 10px;
}

.order-tracking-timeline .step {
    flex: 1;
    text-align: center;
    position: relative;
     z-index: 1;
}
.order-tracking-timeline .step::after {
    content: '';
    position: absolute;
    top: 25px;
    left: calc(50% + 5px);
    width: 100%;
    height: 2px;
    background: #ccc;
    transform: translateY(-50%);
    z-index: 0;
}

.order-tracking-timeline .step:last-child::after {
    display: none;
}

.order-tracking-timeline .step .label{
    color: #222;
}
.order-tracking-timeline .step .date{
    font-size: 12px;
}

.order-tracking-timeline .step.done::after {
    background: #28a745;
}
/* SVG nằm gọn trong vòng tròn, không bị tràn */
.order-tracking-timeline .icon svg {
    width: 24px;
    height: 24px;
    fill: #ccc;
    transition: fill 0.3s ease;
}
.order-tracking-timeline .icon {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2; /* cao hơn đường nối */
}

.order-tracking-timeline .step.done .icon {
    border-color: #28a745;
}
 


/* Khi bước đã hoàn thành (done) thì đổi màu svg */
.order-tracking-timeline .step.done .icon svg {
    fill: #28a745;
}
.order-tracking-timeline .step .icon svg {
    fill: #222;
}
/* css danh sách mã hàng  */

.order-items {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.order-items h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.order-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #f9f9f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.order-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
    color: #222; 
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden; 
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-overflow: ellipsis;
    white-space: normal;
}

.item-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}

.item-subtotal {
    font-size: 15px;
    color: #000;
    font-weight: 500;
}

.order-total {
    margin-top: 30px;
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    border-top: 2px dashed #ccc;
    padding-top: 16px;
}
@media screen and (max-width: 600px) {
    .order-tracking {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}
    /* .order-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    } */

    .order-item img {
        margin-bottom: 10px;
    }

    .order-total {
        text-align: center;
    }
}
