/* =========================================
   Electrical Bro - Delhivery Tracking
   ========================================= */

.eb-tracking-card {
    max-width: 900px;
    margin: 35px auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    color: #202020;
    box-sizing: border-box;
}


/* Header */

.eb-tracking-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.eb-tracking-label {
    color: #777777;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.eb-tracking-header h2 {
    margin: 0;
    padding: 0;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    color: #171717;
}

.eb-courier-badge {
    padding: 8px 14px;
    border-radius: 20px;
    background: #f5f5f5;
    color: #333333;
    font-size: 13px;
    font-weight: 700;
}


/* AWB */

.eb-awb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    font-size: 14px;
}

.eb-awb span {
    color: #777777;
}

.eb-awb strong {
    color: #222222;
    word-break: break-all;
}


/* =========================================
   Progress
   ========================================= */

.eb-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 15px 10px 42px;
}

.eb-progress::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 18px;
    height: 3px;
    background: #e8e8e8;
    z-index: 0;
}

.eb-progress-step {
    position: relative;
    width: 25%;
    text-align: center;
    z-index: 1;
}

.eb-progress-circle {
    width: 38px;
    height: 38px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 2px solid #dddddd;
    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #999999;
    font-size: 14px;
    font-weight: 700;
}

.eb-progress-step.completed .eb-progress-circle {
    background: #171717;
    border-color: #171717;
    color: #ffffff;
}

.eb-progress-label {
    font-size: 13px;
    font-weight: 600;
    color: #8a8a8a;
}

.eb-progress-step.completed .eb-progress-label {
    color: #202020;
}


/* =========================================
   Current status
   ========================================= */

.eb-current-status {
    padding: 24px;
    margin-bottom: 30px;
    background: #f8f8f8;
    border-radius: 14px;
}

.eb-status-small {
    margin-bottom: 7px;
    color: #777777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.eb-current-status h3 {
    margin: 0 0 8px;
    padding: 0;
    font-size: 24px;
    line-height: 1.3;
    color: #171717;
}

.eb-current-status p {
    margin: 0 0 14px;
    color: #555555;
    font-size: 14px;
}

.eb-status-meta {
    margin-top: 8px;
    color: #555555;
    font-size: 13px;
}


/* =========================================
   Shipment timeline
   ========================================= */

.eb-timeline-section {
    padding-top: 5px;
}

.eb-timeline-section h3 {
    margin: 0 0 24px;
    padding: 0;
    font-size: 21px;
    font-weight: 700;
    color: #171717;
}

.eb-timeline {
    position: relative;
}

.eb-timeline-item {
    position: relative;
    display: flex;
    gap: 18px;
    padding-bottom: 25px;
}

.eb-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 14px;
    bottom: -2px;
    width: 2px;
    background: #e6e6e6;
}

.eb-timeline-dot {
    position: relative;
    z-index: 2;

    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-top: 4px;

    border-radius: 50%;
    background: #202020;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #202020;
}

.eb-timeline-content {
    flex: 1;
    min-width: 0;
}

.eb-timeline-content strong {
    display: block;
    margin-bottom: 4px;
    color: #222222;
    font-size: 14px;
    line-height: 1.4;
}

.eb-timeline-content div {
    margin-bottom: 3px;
    color: #666666;
    font-size: 13px;
}

.eb-timeline-content small {
    color: #999999;
    font-size: 12px;
}


/* Error/message */

.eb-tracking-message {
    max-width: 900px;
    margin: 30px auto;
    padding: 18px 20px;
    background: #f8f8f8;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    color: #555555;
}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 600px) {

    .eb-tracking-card {
        margin: 18px 12px;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .eb-tracking-header h2 {
        font-size: 22px;
    }

    .eb-courier-badge {
        padding: 6px 10px;
        font-size: 11px;
    }

    .eb-awb {
        margin-bottom: 28px;
    }

    .eb-progress {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 32px;
    }

    .eb-progress::before {
        left: 10%;
        right: 10%;
        top: 15px;
    }

    .eb-progress-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .eb-progress-label {
        padding: 0 2px;
        font-size: 10px;
        line-height: 1.25;
    }

    .eb-current-status {
        padding: 18px;
    }

    .eb-current-status h3 {
        font-size: 21px;
    }

    .eb-timeline-section h3 {
        font-size: 19px;
    }
}