:root {
    --card: #f8f9fb;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .04);
    --accent: #2563eb;
    --pending-bg: #fff7ed;
    --pending-fg: #b45309;
    --received-bg: #ecfdf5;
    --received-fg: #047857;
}

.order-card {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 0 16px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
    max-width: 760px;
    margin: 12px auto;
}


.order-card__image {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.order-card__header {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.order-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.order-card__status {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    border-radius: 999px;
    padding: 6px 10px;
    line-height: 1;
    border: 1px solid transparent;
}

.order-card__status[data-status="pending"] {
    background: var(--pending-bg);
    color: var(--pending-fg);
    border-color: rgba(180, 83, 9, .2);
}

.order-card__status[data-status="received"] {
    background: var(--received-bg);
    color: var(--received-fg);
    border-color: rgba(16, 185, 129, .25);
}

.order-card__meta {
    /* display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 50px;
    text-align: left;
    margin: 0;
    padding: 0;
}

.order-card__meta dt {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 2px 0;
}

.order-card__meta dd {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.order-card__cta {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
}

@media (max-width: 560px) {
    .order-card {
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            "image header"
            "image meta"
            "image cta";
        align-items: start;
        /* gap: 12px 50px; */
        padding: 12px;
    }

    .order-card__image {
        width: 72px;
        height: 72px;
    }

    .order-card__meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .order-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .order-card__image {
        margin: 0 auto;
    }

    .order-card__header {
        justify-content: center;
    }

    .order-card__cta {
        justify-self: center;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --card: #001bff33;
        --muted: #9ca3af;
        --border: #0023f95c;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    }
}