
.backorder-tracking {
    padding: 55px 20px 75px;
    background: #faf8f6;
    min-height: 70vh;
}

.tracking-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.tracking-header {
    text-align: center;
    margin-bottom: 35px;
}

.tracking-eyebrow {
    display: inline-block;
    color: #a36b36;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.tracking-header h1 {
    color: #292522;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin: 0 0 12px;
}

.tracking-header p {
    color: #77716c;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.tracking-form,
.tracking-result {
    background: #fff;
    border: 1px solid #eee8e2;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 25px rgba(40, 30, 20, 0.045);
}

.tracking-form {
    max-width: 580px;
    margin: 0 auto;
}

.tracking-field {
    margin-bottom: 20px;
}

.tracking-field label {
    display: block;
    color: #39332e;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.tracking-field input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #ddd5cd;
    border-radius: 8px;
    background: #fff;
    color: #292522;
    font: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tracking-field input:focus {
    border-color: #a36b36;
    box-shadow: 0 0 0 3px rgba(163, 107, 54, 0.12);
}

.tracking-button {
    width: 100%;
    min-height: 49px;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background: #700f2d;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.tracking-button:hover {
    background: #520b21;
    transform: translateY(-1px);
}

.tracking-result {
    margin-top: 30px;
}

.result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eee8e2;
}

.result-heading h2 {
    margin: 0;
    color: #292522;
    font-size: 1.35rem;
    overflow-wrap: anywhere;
}

.status-label {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 30px;
    background: #f2eee9;
    color: #66584b;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.status-awaiting-stock {
    background: #fff3d8;
    color: #8a5a00;
}

.status-stock-ordered {
    background: #e9f0ff;
    color: #315a9b;
}

.status-stock-received,
.status-ready-for-payment {
    background: #e7f4ec;
    color: #24633d;
}

.status-paid {
    background: #e1f2e8;
    color: #17633a;
}

.status-cancelled {
    background: #fce9e9;
    color: #a12e2e;
}

.tracking-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 23px 0;
    border-bottom: 1px solid #eee8e2;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    min-width: 0;
}

.summary-item span {
    color: #888078;
    font-size: 0.78rem;
}

.summary-item strong {
    color: #302a26;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.tracking-section {
    padding: 24px 0;
    border-bottom: 1px solid #eee8e2;
}

.tracking-section:last-of-type {
    border-bottom: none;
}

.tracking-section h3 {
    color: #302a26;
    font-size: 1rem;
    margin: 0 0 17px;
}

.backorder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1ede9;
}

.backorder-item:last-child {
    border-bottom: none;
}

.backorder-item > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.backorder-item strong {
    color: #302a26;
    font-size: 0.9rem;
}

.backorder-item span {
    color: #888078;
    font-size: 0.8rem;
}

.item-allocation {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.item-allocation strong {
    color: #700f2d;
}

.backorder-history {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-entry {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.history-dot {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: #a36b36;
    flex-shrink: 0;
}

.history-entry strong {
    color: #302a26;
    font-size: 0.88rem;
}

.history-entry p {
    margin: 5px 0;
    color: #77716c;
    font-size: 0.83rem;
    line-height: 1.6;
}

.history-entry small {
    color: #99918a;
    font-size: 0.75rem;
}

.tracking-notice {
    margin-top: 22px;
    padding: 17px;
    border-radius: 9px;
    background: #fff6e5;
    border: 1px solid #f0dfbb;
    color: #75551d;
    font-size: 0.87rem;
    line-height: 1.7;
}

.success-notice {
    background: #eaf6ee;
    border-color: #cce8d5;
    color: #24633d;
}

.cancelled-notice {
    background: #fff0f0;
    border-color: #f0cccc;
    color: #963b3b;
}

@media (max-width: 600px) {
    .backorder-tracking {
        padding: 35px 14px 50px;
    }

    .tracking-form,
    .tracking-result {
        padding: 20px 16px;
    }

    .tracking-summary {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .result-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .backorder-item {
        align-items: flex-start;
    }
}
