body {
    background: #fafafa;
}

.order-tracking-container {
    max-width: 880px;
    margin: 42px auto 56px;
    padding: 0 16px;
}

.order-tracking-form-card,
.order-status-card,
.order-summary-card,
.bank-details-card,
.delivery-info-card,
.error-message-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.06);
}

.order-tracking-form-card {
    max-width: 560px;
    margin: 0 auto 30px;
    padding: 34px;
    text-align: center;
}

.order-tracking-form-card .page-title {
    margin: 0 0 8px;
    color: #151515;
    font-size: 30px;
    font-weight: 850;
    line-height: 1.15;
}

.order-tracking-form-card .text-muted {
    margin-bottom: 26px !important;
    color: #666 !important;
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #303030;
    font-size: 13px;
    font-weight: 800;
}

.order-code-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
    color: #252525;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-code-input:focus {
    border-color: #b80000;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(184, 0, 0, 0.08);
}

.btn-full-width {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 850;
}

.order-tracking-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.order-tracking-heading .card-title {
    margin: 0;
    border-bottom: 0;
}

.tracking-secondary-btn,
.error-message-card .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    color: #303030;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tracking-secondary-btn:hover,
.error-message-card .btn-primary:hover {
    border-color: #b80000;
    background: #fff7f7;
    color: #b80000;
    text-decoration: none;
}

.order-status-card,
.order-summary-card,
.bank-details-card,
.delivery-info-card {
    padding: 18px;
    margin-bottom: 22px;
}

.card-title {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
    color: #151515;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.25;
}

.order-meta-info {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid #f0d2d2;
    border-radius: 10px;
    background: #fffafa;
}

.order-meta-label {
    margin: 0 0 4px;
    color: #777;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.order-meta-value {
    margin: 0;
    color: #151515;
    font-size: 16px;
    font-weight: 850;
}

.order-code-value {
    color: #b80000;
}

.tracking-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.status-tracker {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 8px 0 12px;
}

.status-tracker::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 8%;
    right: 8%;
    height: 3px;
    border-radius: 999px;
    background: #eeeeee;
    z-index: 1;
}

.status-step {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    position: relative;
}

.status-icon {
    width: 42px;
    height: 42px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #e5e7eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 9px;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}

.status-label {
    max-width: 130px;
    color: #777;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
}

.status-step.completed .status-icon {
    background: #198754;
}

.status-step.active .status-icon {
    background: #b80000;
}

.status-step.completed .status-label,
.status-step.active .status-label {
    color: #151515;
}

.status-step.cancelled .status-icon {
    background: #b80000;
}

.status-step.cancelled .status-label {
    color: #b80000;
    font-weight: 850;
}

.shipping-info p,
.delivery-info-card p,
.bank-account p {
    margin: 8px 0;
    color: #4c4c4c;
    font-size: 14px;
    line-height: 1.55;
}

.shipping-info strong,
.delivery-info-card strong,
.bank-account strong {
    color: #151515;
}

.bank-details-card {
    border-left: 4px solid #b80000;
}

.bank-info-text {
    margin: 0 0 18px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.bank-account {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px dashed #e1e1e1;
}

.bank-account:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eeeeee;
}

.order-item:last-child {
    border-bottom: 0;
}

.order-item-info {
    display: flex;
    align-items: center;
    min-width: 0;
}

.order-item-image {
    width: 66px;
    height: 66px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #fafafa;
    object-fit: contain;
    margin-right: 14px;
    flex-shrink: 0;
}

.order-item-details {
    min-width: 0;
}

.order-item-details h3 {
    margin: 0 0 5px;
    color: #202020;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.35;
}

.order-item-details p {
    margin: 0;
    color: #777;
    font-size: 13px;
}

.order-item-price {
    color: #b80000;
    font-size: 15px;
    font-weight: 850;
    white-space: nowrap;
}

.order-totals {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
}

.total-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
}

.total-line .value {
    color: #202020;
    font-weight: 850;
}

.total-line .shipping-free {
    color: #198754;
    font-weight: 850;
}

.total-line.discount .value {
    color: #b80000;
}

.total-line.grand-total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #d8d8d8;
    color: #151515;
    font-size: 18px;
    font-weight: 850;
}

.total-line.grand-total .value {
    color: #b80000;
}

.error-message-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
    color: #7f1d1d;
    background: #fff7f7;
    border-color: #f0d2d2;
}

.error-message-card p {
    margin: 0 0 14px;
    font-weight: 750;
}

@media (max-width: 768px) {
    .order-tracking-container {
        margin: 26px auto 40px;
        padding: 0 12px;
    }

    .order-tracking-form-card {
        padding: 24px 18px;
    }

    .order-tracking-form-card .page-title {
        font-size: 25px;
    }

    .order-tracking-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .tracking-secondary-btn {
        width: 100%;
    }

    .order-status-card,
    .order-summary-card,
    .bank-details-card,
    .delivery-info-card {
        padding: 15px;
    }

    .order-meta-info {
        grid-template-columns: 1fr;
    }

    .status-tracker {
        flex-direction: column;
        align-items: stretch;
        margin-top: 2px;
    }

    .status-tracker::before {
        top: 0;
        bottom: 0;
        left: 20px;
        right: auto;
        width: 3px;
        height: 100%;
    }

    .status-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        width: 100%;
        margin-bottom: 18px;
    }

    .status-step:last-child {
        margin-bottom: 0;
    }

    .status-icon {
        margin-right: 14px;
        margin-bottom: 0;
    }

    .status-label {
        max-width: none;
        font-size: 13px;
    }

    .order-item {
        align-items: flex-start;
    }

    .order-item-image {
        width: 58px;
        height: 58px;
        margin-right: 10px;
    }

    .order-item-details h3 {
        font-size: 14px;
    }

    .order-item-price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .order-item {
        flex-direction: column;
    }

    .order-item-price {
        align-self: flex-end;
    }
}
