.carousel-nav {
    position: relative;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 4px 4px 0;
    border-bottom: 1px solid #dfe3e8;
}

.carousel-nav[hidden] {
    display: none;
}

.carousel-nav .btn {
    flex-shrink: 0;
    padding: 10px 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: #68758a;
    font-weight: 600;
}

.carousel-nav .btn:hover {
    background: #f5f6f8;
    color: #303d50;
}

.carousel-nav .btn.active {
    border-bottom-color: #e51e2a;
    background: #fff2f3;
    color: #bc1823;
}

.carousel-nav .btn:focus-visible,
#recent .tracking-recent-chip:focus-visible {
    outline: 2px solid #e51e2a;
    outline-offset: -2px;
    box-shadow: none;
}

#recent-searches {
    color: #68758a;
    font-size: 12px;
}

#recent .tracking-recent-chip {
    padding: 4px 10px;
    border: 1px solid #e6e9ed;
    border-radius: 999px;
    background: #f5f6f8;
    color: #627086;
    font-size: 12px;
}

#recent .tracking-recent-chip:hover {
    border-color: #cbd2dc;
    background: #e9edf2;
    color: #303d50;
}

#recent-searches #clear {
    padding: 2px 6px;
    font-size: 12px;
}

.tracking-parcel-slide {
    width: 100%;
    min-width: 0;
    margin-right: 16px;
    box-sizing: border-box;
}

#tracking-info.flickity-enabled {
    margin-bottom: 40px;
}

#tracking-info .flickity-prev-next-button.previous {
    left: 8px;
}

#tracking-info .flickity-prev-next-button.next {
    right: 8px;
}

.tracking-map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #e51e2a;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
    font-size: 12px;
    font-weight: 700;
}

.tracking-label {
    color: #68758a;
}

.tracking-search {
    height: 46px;
    border: 1px solid #dce1e7;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 2px 7px rgba(31, 45, 67, .04);
}

.tracking-search .form-control,
.tracking-search .input-group-text {
    border: 0;
    background: #fff;
}

.tracking-card {
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(31, 45, 67, .03);
}

.tracking-waybill {
    color: #f21926;
    font-family: Consolas, Monaco, monospace;
    font-size: 24px;
    font-weight: 700;
}

.tracking-status-title {
    font-size: 20px;
    font-weight: 700;
}

.tracking-summary-bottom {
    background: #fbfcfd;
}

.tracking-summary-top {
    min-height: 94px;
}

.tracking-order-block {
    flex: 0 0 300px;
}

.tracking-route-label {
    color: #68758a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .45px;
}

@media (max-width: 767.98px) {
    .tracking-order-block {
        flex-basis: 100%;
        border-right: 0 !important;
        border-bottom: 1px solid #e6e9ed;
        padding-bottom: 12px;
    }
}

.tracking-panel-title {
    font-size: 16px;
    font-weight: 700;
}

.tracking-map {
    position: relative;
    height: 408px;
    z-index: 0;
    overflow: hidden;
    background-color: #edf2f1;
}

.tracking-legend-start {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #e51e2a;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.tracking-legend-end {
    color: #3388cc;
    font-size: 20px;
}

.tracking-timeline {
    max-height: 650px;
    overflow-y: auto;
    padding: 13px 16px 18px;
}

.tracking-date {
    padding: 3px 9px 6px;
    color: #627086;
    border-bottom: 1px solid #e6e9ed;
    font-size: 11px;
    font-weight: 600;
}

.tracking-event {
    display: grid;
    grid-template-columns: 66px 34px minmax(0, 1fr);
    column-gap: 8px;
    align-items: center;
    min-height: 52px;
    font-size: 12px;
}

.tracking-event> :nth-child(3) {
    min-width: 0;
    padding: 12px 0;
}

.tracking-event-time {
    text-align: right;
    font-weight: 700;
}

.tracking-event-marker {
    position: relative;
    z-index: 0;
    width: 12px;
    align-self: stretch;
    margin: 0 auto;
}

.tracking-event-marker::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 12px;
    height: 12px;
    content: '';
    background: #ee1f2c;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.tracking-event-marker::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    content: '';
    background: #ee1f2c;
    transform: translateX(-50%);
}

.tracking-event-first .tracking-event-marker::after {
    top: 50%;
}

.tracking-event-last .tracking-event-marker::after {
    bottom: 50%;
}

.tracking-event-title {
    color: #ee1f2c;
    font-size: 14px;
    font-weight: 700;
}

.tracking-event-description {
    margin-top: 4px;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .tracking-map {
        height: 320px;
    }

    .tracking-event {
        grid-template-columns: 46px 32px minmax(0, 1fr);
        padding: 7px 0;
    }

    .tracking-event-marker::after {
        top: -7px;
        bottom: -7px;
    }

    .tracking-event-first .tracking-event-marker::after {
        top: 50%;
    }

    .tracking-event-last .tracking-event-marker::after {
        bottom: 50%;
    }
}
