/* ── Variables ── */
:root {
    --to-primary: #066277;
    --to-primary-dark: #044d5e;
    --to-accent: #1fa0d8;
    --to-accent-light: #e8f6fc;
    --to-text: #1a1a2e;
    --to-text-secondary: #64748b;
    --to-border: #e2e8f0;
    --to-bg: #f8fafc;
    --to-white: #ffffff;
    --to-danger: #ef4444;
    --to-warning: #f59e0b;
    --to-success: #10b981;
    --to-radius: 16px;
    --to-radius-sm: 10px;
    --to-shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --to-shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
    --to-shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);
    --to-font: 'DM Sans', 'Nexa', -apple-system, BlinkMacSystemFont, sans-serif;
}

section.track-order {
    margin: 0;
    padding: 0 0 80px;
    font-family: var(--to-font);
}

/* ═══════════════════════════════════════
   HERO SEARCH AREA
═══════════════════════════════════════ */
.to-hero {
    position: relative;
    padding: 52px 0 56px;
    margin: 0px -74px;
    overflow: hidden;
}

.to-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #044d5e 0%, #066277 35%, #0a7d96 70%, #1fa0d8 100%);
    z-index: 0;
}

.to-hero-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -8%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, .04);
    border-radius: 50%;
}

.to-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, .03);
    border-radius: 50%;
}

.to-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: -30px auto;
    text-align: center;
    padding: 0 20px;
}

.to-hero-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, .12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.to-hero h1 {
    font-family: var(--to-font);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.to-hero-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, .65);
    margin: 0 0 36px;
    font-weight: 400;
    line-height: 1.5;
}

/* ── Alert ── */
.to-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, .15);
    border: 1px solid rgba(239, 68, 68, .3);
    color: #fecaca;
    padding: 12px 16px;
    border-radius: var(--to-radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    text-align: left;
    backdrop-filter: blur(4px);
}

.to-alert-close {
    background: none;
    border: none;
    color: #fecaca;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
    padding: 0 4px;
    opacity: .7;
    transition: opacity .2s;
}

.to-alert-close:hover {
    opacity: 1;
}

/* ── Radio Group ── */
.to-radio-group {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 20px;
}

.to-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    font-weight: 500;
    transition: color .2s;
    margin: 0;
}

.to-radio:hover {
    color: #fff;
}

.to-radio input[type="radio"] {
    display: none;
}

.to-radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4);
    position: relative;
    transition: all .2s ease;
    flex-shrink: 0;
}

.to-radio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
}

.to-radio input[type="radio"]:checked~.to-radio-dot {
    border-color: #fff;
}

.to-radio input[type="radio"]:checked~.to-radio-dot::after {
    transform: translate(-50%, -50%) scale(1);
}

.to-radio input[type="radio"]:checked~span:last-child {
    color: #fff;
}

/* ── Search Bar ── */
.to-search-bar {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.to-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.to-search-bar input[type="text"] {
    width: 100%;
    padding: 16px 130px 16px 50px;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 60px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    font-family: var(--to-font);
    font-size: 15px;
    color: #fff;
    outline: none;
    transition: all .3s ease;
}

.to-search-bar input[type="text"]::placeholder {
    color: rgba(255, 255, 255, .45);
}

.to-search-bar input[type="text"]:focus {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .15);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
}

.to-search-bar input.to-input-error {
    border-color: #ef4444;
    animation: shake .4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

.to-btn-track {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: var(--to-primary);
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-family: var(--to-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s ease;
}

.to-btn-track:hover {
    background: var(--to-accent-light);
    transform: translateY(-50%) scale(1.02);
}

.to-btn-track:active {
    transform: translateY(-50%) scale(.98);
}

/* ── Reset Link ── */
.to-reset-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
}

.to-reset-link:hover {
    color: #fff;
    text-decoration: none;
}

/* ═══════════════════════════════════════
   TIMELINE PROGRESS
═══════════════════════════════════════ */
.to-timeline {
    margin: 48px auto 0;
    max-width: 100%;
    padding: 40px 50px;
    background: var(--to-white);
    border-radius: var(--to-radius);
    box-shadow: var(--to-shadow-md);
    border: 1px solid var(--to-border);
}

.to-timeline-track {
    position: relative;
    height: 60px;
    margin: 0 20px;
}

/* Background line */
.to-timeline-line {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
}

/* Active line */
.to-timeline-line-active {
    position: absolute;
    top: 14px;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--to-primary), var(--to-accent));
    border-radius: 4px;
    transition: width .6s ease;
}

/* Step */
.to-timeline-step {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
}

.to-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all .3s ease;
}

.to-timeline-step.active .to-step-dot {
    background: var(--to-primary);
    box-shadow: 0 0 0 2px var(--to-primary);
}

.to-timeline-step.current .to-step-dot {
    background: var(--to-accent);
    box-shadow: 0 0 0 2px var(--to-accent), 0 0 0 6px rgba(31, 160, 216, .2);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 2px var(--to-accent), 0 0 0 6px rgba(31, 160, 216, .2);
    }

    50% {
        box-shadow: 0 0 0 2px var(--to-accent), 0 0 0 12px rgba(31, 160, 216, .08);
    }
}

.to-step-label {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--to-text-secondary);
    letter-spacing: .2px;
    white-space: normal;
    word-wrap: break-word;
    max-width: 80px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    text-align: center;
}

.to-timeline-step.active .to-step-label {
    color: var(--to-primary);
    font-weight: 700;
}

/* ═══════════════════════════════════════
   STATUS SUMMARY CARD
═══════════════════════════════════════ */
.to-status-card {
    display: flex;
    align-items: stretch;
    margin: 24px auto 0;
    max-width: 800px;
    background: var(--to-primary);
    border-radius: var(--to-radius);
    overflow: hidden;
    box-shadow: var(--to-shadow-lg);
    position: relative;
}

.to-status-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, .04);
    border-radius: 50%;
}

.to-status-left,
.to-status-right {
    flex: 1;
    padding: 28px 32px;
    position: relative;
    z-index: 1;
}

.to-status-divider {
    width: 1px;
    background: rgba(255, 255, 255, .15);
    margin: 16px 0;
}

.to-status-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 10px;
}

.to-status-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.to-status-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Status Badges */
.to-badge-info {
    color: #fff;
}

.to-badge-warning {
    display: inline-block;
    background: rgba(245, 158, 11, .2);
    border: 1px solid rgba(245, 158, 11, .4);
    color: #fcd34d;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 15px;
}

.to-badge-danger {
    display: inline-block;
    background: rgba(239, 68, 68, .2);
    border: 1px solid rgba(239, 68, 68, .4);
    color: #fca5a5;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 15px;
}

/* ═══════════════════════════════════════
   TRACKING HISTORY
═══════════════════════════════════════ */
.to-history {
    margin: 24px auto 0;
    max-width: 800px;
    background: var(--to-white);
    border-radius: var(--to-radius);
    box-shadow: var(--to-shadow-sm);
    border: 1px solid var(--to-border);
    overflow: hidden;
}

.to-history-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    font-size: 14px;
    font-weight: 700;
    color: var(--to-primary);
    background: #f8fafc;
    border-bottom: 1px solid var(--to-border);
}

.to-history-list {
    padding: 8px 0;
}

.to-history-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 32px;
    gap: 20px;
    transition: background .15s ease;
}

.to-history-item:hover {
    background: #f8fafc;
}

/* Dot + connector */
.to-history-dot-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 4px;
}

.to-history-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--to-accent);
    border: 2px solid var(--to-accent-light);
    flex-shrink: 0;
}

.to-history-connector {
    width: 2px;
    flex: 1;
    min-height: 24px;
    background: var(--to-border);
    margin-top: 6px;
}

.to-history-item:last-child .to-history-connector {
    display: none;
}

.to-history-date {
    flex: 0 0 110px;
    font-size: 12px;
    font-weight: 600;
    color: var(--to-text-secondary);
    padding-top: 2px;
    line-height: 1.5;
}

.to-history-detail {
    flex: 1;
    position: relative;
}

.to-history-status {
    font-size: 14px;
    font-weight: 700;
    color: var(--to-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.to-history-msg {
    font-size: 13px;
    color: var(--to-text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

/* ── Dropdown ── */
.to-dropdown-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--to-border);
    background: var(--to-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    color: var(--to-text-secondary);
    flex-shrink: 0;
}

.to-dropdown-btn:hover {
    background: var(--to-accent-light);
    border-color: var(--to-accent);
    color: var(--to-accent);
}

.to-dropdown-list {
    display: none;
    position: absolute;
    top: 32px;
    left: 0;
    min-width: 320px;
    background: var(--to-white);
    border: 1px solid var(--to-border);
    border-radius: var(--to-radius-sm);
    box-shadow: var(--to-shadow-lg);
    padding: 8px 0;
    z-index: 10;
    list-style: none;
    margin: 0;
    animation: dropdown-in .2s ease;
}

@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.to-dropdown-list.show {
    display: block;
}

.to-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 13px;
    transition: background .15s;
    border-bottom: none;
}

.to-dropdown-item:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.to-dropdown-item:hover {
    background: #f8fafc;
}

.to-product-name {
    font-weight: 600;
    color: var(--to-text);
}

.to-product-date {
    font-size: 12px;
    color: var(--to-text-secondary);
}

/* ═══════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════ */
.to-empty-state {
    max-width: 500px;
    margin: 48px auto;
    text-align: center;
    padding: 48px 32px;
    background: var(--to-white);
    border-radius: var(--to-radius);
    border: 1px solid var(--to-border);
    box-shadow: var(--to-shadow-sm);
}

.to-empty-state svg {
    margin-bottom: 16px;
}

.to-empty-state h3 {
    font-family: var(--to-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--to-text);
    margin: 0 0 8px;
}

.to-empty-state p {
    font-size: 14px;
    color: var(--to-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
    .to-hero {
        padding: 48px 0 40px;
    }

    .to-hero h1 {
        font-size: 24px;
    }

    .to-hero-sub {
        font-size: 13px;
    }

    .to-search-bar input[type="text"] {
        padding: 14px 120px 14px 44px;
        font-size: 14px;
    }

    .to-btn-track {
        padding: 8px 18px;
        font-size: 13px;
    }

    .to-timeline {
        padding: 32px 20px;
        margin: 32px 0 0;
        border-radius: var(--to-radius-sm);
    }

    .to-timeline-track {
        margin: 0 10px;
        height: 70px;
    }

    .to-step-label {
        font-size: 9px;
        max-width: 60px;
        white-space: normal;
        line-height: 1.3;
    }

    .to-step-dot {
        width: 26px;
        height: 26px;
    }

    .to-step-dot svg {
        width: 11px;
        height: 11px;
    }

    .to-status-card {
        flex-direction: column;
        border-radius: var(--to-radius-sm);
    }

    .to-status-divider {
        width: auto;
        height: 1px;
        margin: 0 20px;
    }

    .to-status-left,
    .to-status-right {
        padding: 20px 24px;
    }

    .to-history {
        margin: 16px 0 0;
        border-radius: var(--to-radius-sm);
    }

    .to-history-item {
        padding: 14px 20px;
        gap: 14px;
    }

    .to-history-date {
        flex: 0 0 80px;
        font-size: 11px;
    }

    .to-history-status {
        font-size: 13px;
    }

    .to-dropdown-list {
        min-width: 260px;
    }

    .to-radio-group {
        gap: 20px;
    }

    .to-radio {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .to-hero h1 {
        font-size: 20px;
    }

    .to-search-bar input[type="text"] {
        padding: 12px 110px 12px 40px;
        font-size: 13px;
    }

    .to-btn-track {
        padding: 8px 14px;
        font-size: 12px;
    }

    .to-timeline {
        padding: 24px 12px;
    }

    .to-step-label {
        font-size: 8px;
    }

    .to-status-value {
        font-size: 15px;
    }

    .to-history-item {
        padding: 12px 16px;
        gap: 10px;
    }

    .to-history-date {
        flex: 0 0 65px;
        font-size: 10px;
    }
}

/* Tracking Page Responsive */

@media (max-width: 1920px) {
    .container {
        max-width: calc(100% - 100px);
    }

    .timeline .timeline-main:after {
        width: calc(100% - 280px);
        left: 150px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: calc(100% - 30px);
    }

    .timeline .timeline-main:after {
        width: calc(91% - 200px);
        left: 108px;
    }

    ul.navbar-nav li {
        margin: 0 5px 15px 0;
    }

    .timeline-second .tracking-history .tracking-details p:first-child,
    .timeline-second .tracking-history .date p:first-child {
        font-size: 14px;
    }

    .timeline-second .tracking-history:after {
        left: 204px;
    }

    .timeline .timeline-box.active:before {
        content: '';
        height: 3px;
        width: 78px;
        left: -37px !important;
        top: 11px !important;
        background: #066277 !important;
        position: absolute;
        z-index: -93 !important;
    }

    .timeline .timeline-box-online.active:before {
        content: '';
        height: 3px;
        width: 109px;
        left: -60px !important;
        top: 11px !important;
        color: #066277;
        position: absolute;
        background: #066277 !important;
        z-index: -93 !important;
    }
}

@media (max-width: 991px) {
    section.track-order form {
        margin: 40px 0 0;
    }

    .form-group.search {
        margin: 10px auto 0;
    }

    .timeline {
        padding: 15px 0px;
    }

    .timeline .timeline-main:after {
        content: '';
        height: 3px;
        width: calc(91% - 0px) !important;
        left: 45px !important;
        background: #f5f5f5;
        position: absolute;
        top: 10px;
        z-index: -999 !important;
        margin: 0 auto;
    }

    .track-history .order span,
    .track-history .order p,
    .track-history .expected p {
        font-size: 18px !important;
    }

    .date {
        min-width: 100px;
    }

    .timeline-second .tracking-history:after {
        left: 111px !important;
        height: 67px;
        margin: 110px 0 0;
        margin-left: 28px;
    }
}

@media (max-width: 916px) {
    .container {
        padding-right: 5px;
        padding-left: 5px;
    }

    .timeline-second .tracking-history .image {
        position: relative;
    }

    .timeline-second .tracking-history .image:before {
        position: absolute;
        content: '';
        left: 23px;
        top: 51px;
        height: 100px;
        width: 3px;
        z-index: -999 !important;
        background: unset;
    }
}


/* Responsive Styles for Tracking Page */

@media (max-width: 767px) {
    .timeline .timeline-main {
        display: initial !important;
    }

    section.track-order .timeline .timeline-box .circle {
        margin: 0 0 0 20px;
    }
    section.track-order .timeline .timeline-box-online .circle {
        margin: 0 0 0 20px;
    }

    .timeline .timeline-main:after {
        content: '';
        height: 95%;
        width: calc(3px - 0px) !important;
        left: 22px !important;
        background: #f5f5f5;
        position: absolute;
        z-index: -999 !important;
        top: 10px;
        margin: 0 auto;
    }

    .timeline .timeline-box.active:before {
        content: '';
        height: 3px;
        width: 60px;
        left: -7px !important;
        top: -5px !important;
        background: #066277 !important;
        position: absolute;
        z-index: -99 !important;
        transform: rotate(90deg);
    }
    .timeline .timeline-box-online.active:before {
        content: '';
        height: 3px;
        width: 60px;
        left: -7px !important;
        top: -5px !important;
        background: #066277 !important;
        position: absolute;
        z-index: -99 !important;
        transform: rotate(90deg);
    }

    .timeline .timeline-box {
        width: 100%;
        text-align: center;
        display: flex;
        align-items: center;
        margin: 0 0 20px;
        gap: 10px;
        padding: 0 10px;
    }
    .timeline .timeline-box-online {
        width: 100%;
        text-align: center;
        display: flex;
        align-items: center;
        margin: 0 0 20px;
        gap: 10px;
        padding: 0 10px;
    }

    .timeline .timeline-box .circle {
        position: relative;
    }
    .timeline .timeline-box-online .circle {
        position: relative;
    }

    .timeline .timeline-box.active .circle:after,
    .timeline .timeline-box .circle:after {
        content: '';
        position: absolute;
        height: 2px;
        width: 23px;
        z-index: -9;
    }
    .timeline .timeline-box-online.active .circle:after,
    .timeline .timeline-box-online .circle:after {
        content: '';
        position: absolute;
        height: 2px;
        width: 23px;
        z-index: -9;
    }

    .timeline .timeline-box.active .circle:after {
        background: #066277;
        top: 10px;
    }
    .timeline .timeline-box-online.active .circle:after {
        background: #066277;
        top: 10px;
    }

    .timeline .timeline-box .circle:after {
        background: #ccc;
        top: 10px;
    }
    .timeline .timeline-box-online .circle:after {
        background: #ccc;
        top: 10px;
    }

    .timeline .timeline-box p {
        padding: 0;
        font-size: 16px;
    }
    .timeline .timeline-box-online p {
        padding: 0;
        font-size: 16px;
    }

    .timeline-second .tracking-history {
        padding: 20px;
        position: relative;
    }

    .timeline-second .tracking-history:after {
        left: 144px !important;
        height: 64px;
        margin: 108px 0 0;
        margin-left: -5px;
    }

    .track-text button.btn.btn-primary {
        padding: 5px 20px;
        position: absolute;
        left: 0;
        top: 60px;
        width: fit-content;
    }

    .form-group.search a {
        position: absolute;
        left: 95px;
        top: 67px;
        float: left;
        color: #40B9EA;
        width: fit-content;
    }

    .timeline .timeline-box.active:after {
        display: none;
    }

    .timeline-second .tracking-history .image {
        position: relative;
    }

    .timeline-second .tracking-history .image:before {
        position: absolute;
        content: '';
        left: 23px;
        top: 51px;
        height: 81px;
        width: 3px;
        z-index: -999 !important;
    }
}

@media (max-width: 589px) {
    .timeline-second .tracking-history .image:before {
        height: 92px;
    }
}

@media (max-width: 575px) {
    .form-group.search input.form-control {
        padding: 20px;
        font-size: 14px;
    }

    .form-group.search {
        width: 100%;
    }

    .timeline {
        margin: 65px 0 0;
    }

    .track-history .order span,
    .track-history .order p,
    .track-history .expected p {
        font-size: 15px !important;
    }

    .timeline-second .tracking-history:after {
        left: 208px !important;
        height: 90% !important;
        min-height: 17px !important;
        position: absolute !important;
        top: -42px !important;
        margin: 99px 0 0 !important;
        margin-left: -69px !important;
    }

    .timeline-second .tracking-history .image:before,
    .timeline-second .tracking-history .image:after {
        position: absolute;
        content: '';
        left: 23px;
        top: 50px;
        height: 100%;
        width: 3px;
        min-height: 117px;
        z-index: -999 !important;
    }

    .timeline-second .tracking-history .image:last-child:before,
    .timeline-second .tracking-history:last-child .image:before,
    .timeline-second .tracking-history:last-child .image:after {
        display: none;
    }
}

@media (max-width: 513px) {
    /* No styles defined */
}

@media (max-width: 490px) {
    .timeline-second .tracking-history .image:after {
        position: absolute;
        content: '';
        left: 23px;
        top: 19px;
        height: 100%;
        width: 3px;
        min-height: 189px;
        z-index: -999 !important;
    }
}

@media (max-width: 480px) {
    .timeline-second .tracking-history .image:before {
        position: absolute;
        content: '';
        left: 23px;
        top: 51px;
        height: 170px !important;
        width: 3px;
        z-index: -999 !important;
    }

    .expected.text-white {
        padding: 10px;
    }

    .timeline-second .tracking-history:after {
        left: 209px !important;
        height: -80px !important;
        min-height: -15px !important;
        top: -45px !important;
        margin: 102px 0 0 !important;
        margin-left: -70px !important;
    }
}

@media (max-width: 467px) {
    /* Styles commented out */
}

@media (max-width: 433px) {
    .timeline-second .tracking-history:after {
        left: 212px !important;
        height: -80px !important;
        min-height: -15px !important;
        top: -46px !important;
        margin: 102px 0 0 !important;
        margin-left: -73px !important;
    }
}

@media (max-width: 375px) {
    .timeline-second .tracking-history:after {
        left: 243px !important;
        height: -80px !important;
        min-height: -15px !important;
        top: -32px !important;
        margin: 102px 0 0 !important;
        margin-left: -107px !important;
    }
}

.timeline-second .tracking-history {
    gap: 5px;
    margin: 0 0 35px;
    padding: 15px;
}

.timeline .timeline-box p {
    font-size: 14px;
}

.timeline-second .tracking-history:last-child {
    display: none;
}
