.order-heading {
    margin-bottom: 20px;
}

.order-search {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 24px;
}

.order-search label {
    flex: 1;
}

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.order-guide {
    display: grid;
    gap: 28px;
}

.order-location {
    min-width: 0;
}

.location-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.location-heading h2,
.draft-panel h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-weight: 500;
}

.location-heading span {
    color: #6c756f;
    font-size: .82rem;
}

.family-heading {
    margin: 18px 0 8px;
    color: #5d6862;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.location-heading + .family-heading {
    margin-top: 4px;
}

.order-grid + .family-heading {
    margin-top: 22px;
}

.order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.order-card {
    min-height: 96px;
    padding: 14px;
    background: #fff;
    border: 1px solid #deddd7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.order-card.has-quantity {
    background: #f3f8f2;
    border-color: #9eb59e;
    box-shadow: inset 4px 0 0 #6f936f;
}

.order-card.has-quantity .quantity-input {
    background: #fff;
}

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

.order-item-copy strong,
.order-item-copy small {
    display: block;
}

.order-item-copy small {
    margin-top: 5px;
    color: #6c756f;
}

.extended-result {
    display: inline-block;
    margin-top: 7px;
    border-radius: 999px;
    padding: .2rem .45rem;
    background: #e4e8f4;
    color: #3c4f81;
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.quantity-control {
    display: grid;
    grid-template-columns: 36px 54px 36px;
    flex: 0 0 auto;
}

.quantity-control button,
.quantity-control input {
    height: 40px;
    border-radius: 0;
    padding: 0;
    text-align: center;
}

.quantity-control button:first-child {
    border-radius: 7px 0 0 7px;
}

.quantity-control button:last-child {
    border-radius: 0 7px 7px 0;
}

.quantity-control input {
    border-left: 0;
    border-right: 0;
    -moz-appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.draft-panel {
    position: sticky;
    top: 18px;
    padding: 20px;
    background: #fff;
    border: 1px solid #deddd7;
    border-radius: 12px;
}

.draft-panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eceae4;
}

.draft-panel-heading .eyebrow {
    margin-bottom: 4px;
}

.draft-panel-heading > strong {
    font-size: .82rem;
    color: #617069;
    white-space: nowrap;
}

.draft-summary {
    max-height: 50vh;
    overflow-y: auto;
    margin: 8px 0 16px;
}

.draft-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eceae4;
}

.draft-line strong,
.draft-line small {
    display: block;
}

.draft-line small,
.draft-empty,
.draft-disclaimer {
    color: #6c756f;
}

.remove-line {
    border: 0;
    padding: .25rem;
    color: #9a3f2c;
    font-size: .72rem;
}

.save-draft {
    width: 100%;
}

.draft-disclaimer {
    display: block;
    margin-top: 10px;
    text-align: center;
}

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

    .draft-panel {
        position: static;
        grid-row: 1;
    }

    .draft-summary {
        max-height: 240px;
    }
}

@media (max-width: 640px) {
    .order-search {
        align-items: stretch;
        flex-direction: column;
    }

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

    .order-card {
        min-height: 88px;
    }
}
