/* ============================================================
   Track Order — matches checkout / auth design language
   ============================================================ */

.to {
    --to-ink: #111;
    --to-muted: #6b6b6b;
    --to-line: #e6e6e6;
    --to-soft: #f6f6f6;
    --to-bg: #f3f3f3;
    --to-card: #fff;
    --to-radius: 16px;
    --to-accent: var(--primary, #e62e04);
    --to-success: #16a34a;
    --to-danger: #dc2626;
    --to-ease: cubic-bezier(0.22, 1, 0.36, 1);
    font-family: 'Hind Siliguri', sans-serif;
    background: var(--to-bg);
    padding: 28px 0 72px;
    min-height: calc(100vh - 120px);
}

.to__shell {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 0 20px;
}

.to__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.to__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--to-ink);
    text-decoration: none !important;
    border: 1px solid var(--to-line);
    background: #fff;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s var(--to-ease);
}

.to__back:hover {
    background: #fff;
    color: var(--to-ink);
    transform: translateX(-2px);
}

.to__title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    color: var(--to-ink);
    letter-spacing: -0.02em;
}

.to__lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--to-muted);
    max-width: 640px;
}

.to-card {
    background: var(--to-card);
    border: 1px solid var(--to-line);
    border-radius: var(--to-radius);
    padding: 22px 20px;
    margin-top: 16px;
    box-shadow: none;
}

.to-search {
    padding: 24px 22px;
}

/* Status hero */
.to-status {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 320px);
    gap: 20px;
    align-items: center;
    margin-top: 18px;
    padding: 22px 24px;
    border-radius: var(--to-radius);
    background: linear-gradient(135deg, #fff 0%, #fff8f6 100%);
    border: 1px solid color-mix(in srgb, var(--to-accent) 14%, #fff);
    box-shadow: none;
}

.to-status__eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--to-muted);
    margin-bottom: 6px;
}

.to-status__title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    color: var(--to-ink);
    letter-spacing: -0.02em;
}

.to-status__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 14px;
    color: var(--to-muted);
}

.to-status__meta strong {
    color: var(--to-ink);
    font-weight: 700;
}

.to-status__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.to-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--to-ink);
    background: #fff;
    border: 1px solid var(--to-line);
    animation: to-chip-in 0.45s var(--to-ease) both;
}

.to-chip:nth-child(1) { animation-delay: 0.08s; }
.to-chip:nth-child(2) { animation-delay: 0.14s; }
.to-chip:nth-child(3) { animation-delay: 0.2s; }

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

.to-status__progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--to-muted);
}

.to-status__progress-label strong {
    color: var(--to-accent);
    font-size: 15px;
}

.to-status__progress {
    height: 10px;
    border-radius: 999px;
    background: #ececec;
    overflow: hidden;
}

.to-status__progress-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--to-accent), color-mix(in srgb, var(--to-accent) 70%, #ff8a65));
    position: relative;
    overflow: hidden;
    transition: width 0.15s linear;
}

.to-status__progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: translateX(-100%);
    animation: to-bar-shimmer 2.2s ease-in-out infinite;
}

@keyframes to-bar-shimmer {
    0% { transform: translateX(-100%); }
    60%, 100% { transform: translateX(100%); }
}

.to-status__milestones {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.to-milestone {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--to-muted);
    background: #fff;
    border: 1px solid var(--to-line);
    animation: to-chip-in 0.4s var(--to-ease) both;
}

.to-milestone.is-done {
    color: var(--to-success);
    background: color-mix(in srgb, var(--to-success) 10%, #fff);
    border-color: color-mix(in srgb, var(--to-success) 25%, #fff);
}

.to-milestone.is-active {
    color: #fff;
    background: var(--to-accent);
    border-color: var(--to-accent);
    animation: to-milestone-pulse 1.6s ease-in-out infinite;
}

@keyframes to-milestone-pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--to-accent) 35%, transparent); }
    50% { box-shadow: 0 0 0 6px transparent; }
}

/* Two-column layout */
.to-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 18px;
}

.to-layout__main,
.to-layout__side {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.to-layout__main .to-result,
.to-layout__side .to-side-panel {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.to-layout__main .to-result {
    margin-top: 0;
}

.to-result__title {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--to-line);
    font-size: 16px;
    font-weight: 700;
    color: var(--to-ink);
}

.to-block {
    padding: 16px 0;
    border-bottom: 1px solid var(--to-line);
}

.to-block:first-child {
    padding-top: 0;
}

.to-block--total {
    border-bottom: 0;
    padding-bottom: 0;
    animation: to-rise 0.5s var(--to-ease) 0.16s both;
}

.to-side-panel__actions {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    animation: to-rise 0.5s var(--to-ease) 0.22s both;
}

.to-block__title {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--to-muted);
}

.to-block__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--to-ink);
}

.to-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--to-muted);
}

.to-total-row strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--to-accent);
    letter-spacing: -0.02em;
}

.to-layout__side .to-cod-note {
    margin-top: 10px;
    text-align: left;
}

.to-side-panel {
    gap: 0;
}

.to-block--items {
    animation: to-rise 0.5s var(--to-ease) 0.08s both;
}

.to-block--ship {
    animation: to-rise 0.5s var(--to-ease) both;
}

.to-side-panel__fill {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    animation: to-rise 0.5s var(--to-ease) 0.22s both;
}

.to-side-hint {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--to-soft);
    border: 1px solid var(--to-line);
    font-size: 13px;
    line-height: 1.5;
    color: var(--to-muted);
}

.to-layout__main .to-result {
    margin-top: 0;
}

.to-layout__side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.to-layout__side .to-summary,
.to-layout__side .to-products,
.to-layout__side .to-login-banner {
    margin-top: 0;
}

/* Products sidebar */
.to-products__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--to-line);
}

.to-products__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--to-ink);
}

.to-products__count {
    font-size: 12px;
    font-weight: 700;
    color: var(--to-accent);
    background: color-mix(in srgb, var(--to-accent) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--to-accent) 18%, #fff);
    padding: 4px 10px;
    border-radius: 999px;
}

.to-products__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.to-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: var(--to-soft);
    border: 1px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s var(--to-ease), box-shadow 0.2s ease;
}

.to-product:hover {
    border-color: color-mix(in srgb, var(--to-accent) 20%, #fff);
    transform: translateY(-1px);
    box-shadow: none;
}

.to-product__thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--to-line);
}

.to-product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s var(--to-ease);
}

.to-product:hover .to-product__thumb img {
    transform: scale(1.06);
}

.to-product__name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--to-ink);
    text-decoration: none;
}

.to-product__name:hover {
    color: var(--to-accent);
}

.to-product__meta {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--to-muted);
}

.to-product__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.to-product__qty {
    font-size: 12px;
    color: var(--to-muted);
}

.to-product__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--to-accent);
}

.to-card:first-of-type {
    margin-top: 0;
}

.to-rise {
    animation: to-rise 0.55s var(--to-ease) both;
}

@keyframes to-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search form */
.to-search__label {
    display: block;
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--to-ink);
}

.to-search__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.to-search__input-wrap {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--to-line);
    background: var(--to-soft);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.to-search__input-wrap:focus-within {
    background: #fff;
    border-color: color-mix(in srgb, var(--to-accent) 35%, #fff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--to-accent) 10%, transparent);
}

.to-search__icon {
    flex-shrink: 0;
    color: var(--to-muted);
}

.to-search__input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 14px;
    color: var(--to-ink);
    height: 48px;
    padding: 0;
}

.to-search__input::placeholder {
    color: #a3a3a3;
}

.to-search__btn {
    flex: 0 0 auto;
    min-width: 140px;
    height: 50px;
    border: 0;
    border-radius: 12px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--to-accent);
    box-shadow: none;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s var(--to-ease);
}

.to-search__btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #fff;
}

.to-search__btn:active {
    transform: translateY(0);
}

/* Carrier strip */
.to-carrier {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff5f2 0%, #fff 100%);
    border: 1px solid color-mix(in srgb, var(--to-accent) 12%, #fff);
}

.to-carrier__logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: none;
    flex-shrink: 0;
}

.to-carrier__name {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: var(--to-ink);
}

.to-carrier__moto {
    font-size: 13px;
    color: var(--to-muted);
}

/* Route */
.to-route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 4px 0 4px;
    border-bottom: 1px solid var(--to-line);
}

.to-route__label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--to-muted);
}

.to-route__addr {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--to-ink);
}

.to-route__to {
    text-align: right;
}

.to-route__mid {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 18px;
    min-width: 72px;
}

.to-route__line {
    position: relative;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--to-line) 0,
        var(--to-line) 6px,
        transparent 6px,
        transparent 12px
    );
    overflow: hidden;
}

.to-route__line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--to-accent), transparent);
    animation: to-route-flow 2.4s linear infinite;
    opacity: 0.55;
}

.to-route__plane {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    color: var(--to-accent);
    animation: to-route-move 2.4s linear infinite;
}

@keyframes to-route-flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes to-route-move {
    0% { left: 0; opacity: 0.4; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0.4; }
}

/* Timeline */
.to-timeline {
    margin-top: 0;
    min-width: 0;
}

.to .connector-line {
    min-height: 38px;
}

.to-timeline .order-tracking-timeline {
    position: relative;
}

.to-timeline .tracking-timeline-completed h6,
.to-timeline .tracking-timeline-running h6,
.to-timeline .tracking-timeline-cancelled h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--to-ink);
    margin-bottom: 4px;
}

.to-timeline .tracking-timeline-completed .rounded-circle.bg-success,
.to-timeline .tracking-timeline-running .rounded-circle.bg-gray {
    width: 14px !important;
    height: 14px !important;
    background: var(--to-success) !important;
    border-color: var(--to-success) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--to-success) 18%, transparent);
}

.to-timeline .tracking-timeline-cancelled .rounded-circle.bg-danger {
    width: 14px !important;
    height: 14px !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--to-danger) 18%, transparent);
}

.to-timeline .rounded-circle.bg-gray.border-gray-300 {
    width: 12px !important;
    height: 12px !important;
    background: #fff !important;
    border-color: #d4d4d4 !important;
}

.to-timeline .connector-line.line-solid.bg-success {
    background: var(--to-success) !important;
    border: 0 !important;
    width: 2px;
}

.to-timeline .connector-line.line-solid.bg-danger {
    background: var(--to-danger) !important;
}

.to-timeline .connector-line.line-dashed {
    border-left: 2px dashed #d4d4d4;
    background: transparent !important;
}

.to-timeline .order-tracking-pulse-ring {
    border-color: var(--to-accent) !important;
    animation: to-pulse 1.6s var(--to-ease) infinite;
}

@keyframes to-pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.85;
    }
    100% {
        transform: scale(1.75);
        opacity: 0;
    }
}

.to-timeline .tracking-timeline-running .rounded-circle.bg-gray.border-gray-500 {
    background: #fff !important;
    border-color: var(--to-accent) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--to-accent) 15%, transparent);
}

.to-timeline .fs-12.text-muted {
    color: var(--to-muted) !important;
}

.to-timeline .badge.bg-orange {
    background: color-mix(in srgb, var(--to-accent) 12%, #fff) !important;
    color: var(--to-accent) !important;
    border: 1px solid color-mix(in srgb, var(--to-accent) 25%, #fff);
    font-weight: 700;
}

.to-timeline > .d-flex,
.to-timeline .order-tracking-timeline > .d-flex {
    animation: to-step-in 0.45s var(--to-ease) both;
}

.to-timeline .order-tracking-timeline > .d-flex:nth-child(1) { animation-delay: 0.05s; }
.to-timeline .order-tracking-timeline > .d-flex:nth-child(2) { animation-delay: 0.1s; }
.to-timeline .order-tracking-timeline > .d-flex:nth-child(3) { animation-delay: 0.15s; }
.to-timeline .order-tracking-timeline > .d-flex:nth-child(4) { animation-delay: 0.2s; }
.to-timeline .order-tracking-timeline > .d-flex:nth-child(5) { animation-delay: 0.25s; }
.to-timeline .order-tracking-timeline > .d-flex:nth-child(6) { animation-delay: 0.3s; }
.to-timeline .order-tracking-timeline > .d-flex:nth-child(7) { animation-delay: 0.35s; }

@keyframes to-step-in {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Summary */
.to-summary__head {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--to-ink);
}

.to-summary__grid {
    display: grid;
    gap: 8px;
}

.to-summary__row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    color: var(--to-ink);
}

.to-summary__label {
    color: var(--to-muted);
}

.to-summary__total {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--to-line);
    font-size: 15px;
    font-weight: 700;
}

.to-summary__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.to-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    border: 0;
    transition: filter 0.2s ease, transform 0.2s var(--to-ease);
}

.to-btn--primary {
    background: var(--to-accent);
    color: #fff !important;
    box-shadow: none;
}

.to-btn--soft {
    background: color-mix(in srgb, var(--to-accent) 10%, #fff);
    color: var(--to-accent) !important;
    border: 1px solid color-mix(in srgb, var(--to-accent) 20%, #fff);
}

.to-btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.to-cod-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--to-soft);
    border: 1px solid var(--to-line);
    font-size: 14px;
    color: var(--to-ink);
    text-align: center;
}

/* Empty state — full width */
.to-empty-wrap {
    margin-top: 18px;
}

.to-empty-wrap .to-empty {
    margin-top: 0;
    padding: 36px 24px 28px;
    text-align: center;
}

.to-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.to-step-card {
    padding: 20px 18px;
    border-radius: var(--to-radius);
    background: #fff;
    border: 1px solid var(--to-line);
    box-shadow: none;
    transition: transform 0.25s var(--to-ease);
}

.to-step-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.to-step-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 800;
    color: var(--to-accent);
    background: color-mix(in srgb, var(--to-accent) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--to-accent) 18%, #fff);
}

.to-step-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--to-ink);
}

.to-step-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--to-muted);
}

.to-empty__icon-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}

.to-empty__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--to-accent) 20%, #fff);
    animation: to-empty-pulse 2s ease-out infinite;
}

.to-empty__pulse:nth-child(2) {
    animation-delay: 0.6s;
}

@keyframes to-empty-pulse {
    0% {
        transform: scale(0.75);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

.to-empty__icon {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--to-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--to-accent);
}

.to-empty__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--to-ink);
}

.to-empty__text {
    margin: 0;
    font-size: 14px;
    color: var(--to-muted);
    line-height: 1.5;
}

.to-alert {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.to-login-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    background: var(--to-ink);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: opacity 0.2s ease, transform 0.2s var(--to-ease);
}

.to-login-banner:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #fff !important;
}

@media (min-width: 900px) {
    .to-search__row {
        flex-wrap: nowrap;
    }

    .to-search__btn {
        min-width: 180px;
    }
}

@media (max-width: 991.98px) {
    .to-layout {
        grid-template-columns: 1fr;
    }

    .to-status {
        grid-template-columns: 1fr;
    }

    .to-layout__main .to-result,
    .to-layout__side .to-side-panel {
        height: auto;
    }

    .to-status__milestones {
        gap: 5px;
    }
}

@media (max-width: 767.98px) {
    .to-steps {
        grid-template-columns: 1fr;
    }

    .to__title {
        font-size: 24px;
    }

    .to-status__title {
        font-size: 22px;
    }

    .to__shell {
        padding: 0 14px;
    }
}

@media (min-width: 640px) {
    .to-summary__body {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .to-summary__actions {
        margin-top: 0;
        width: 100%;
    }
}

@media (max-width: 639.98px) {
    .to-route {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .to-route__mid {
        padding-top: 0;
        order: 2;
    }

    .to-route__to {
        text-align: left;
    }

    .to-search__btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .to-rise,
    .to-timeline > .d-flex,
    .to-timeline .order-tracking-timeline > .d-flex,
    .to-route__line::after,
    .to-route__plane,
    .to-empty__pulse,
    .to-timeline .order-tracking-pulse-ring {
        animation: none !important;
    }
}
