/* ── Expected Delivery Vehicle ──────────────────────────────
   Figma: in the basket, 3144:31228 (words and button beside the
   photo); mobile 3144:31392 (the photo between them).
   ─────────────────────────────────────────────────────────── */

.basket-vehicle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    gap: 16px 24px;
    padding: 28px;
    border-radius: 12px;
    background: var(--color-white);
    box-shadow: 0 0 12px rgb(0 0 0 / 0.12);
}

.basket-vehicle__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: rgb(0 0 0 / 0.6);
    line-height: 20px;
}

.basket-vehicle__text strong {
    color: var(--color-text);
    font-weight: 500;
}

.basket-vehicle__title {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.basket-vehicle__photo {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 225px;
    height: 150px;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 0 12px rgb(0 0 0 / 0.12);
}

.basket-vehicle__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.basket-vehicle__button {
    grid-column: 1;
    align-self: end;
}

/* No photo: the words and button fill the card */
.basket-vehicle:not(:has(.basket-vehicle__photo)) {
    grid-template-columns: minmax(0, 1fr);
}

/* ── Smaller screens: the words column gets too narrow for the
   button's label, so the button goes under the words and photo ── */
@media (max-width: 1366px) {
    .basket-vehicle__photo {
        grid-row: 1;
    }

    .basket-vehicle__button {
        grid-column: 1 / -1;
    }
}

/* ── Mobile: words, photo, button ───────────────────────────── */
@media (max-width: 767px) {
    .basket-vehicle {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        gap: 14px;
        padding: 20px;
        box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
    }

    .basket-vehicle__text {
        gap: 14px;
    }

    .basket-vehicle__title {
        font-size: 18px;
        font-weight: 500;
        line-height: 23px;
    }

    .basket-vehicle__photo {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        height: 203px;
    }

    .basket-vehicle__button {
        grid-column: auto;
    }
}
