/* SW Snacks basket product photos — no checkout behaviour changes */
.sw-basket-product-heading{display:flex;align-items:center;gap:10px;min-width:0;line-height:1.25}
.sw-basket-picture{width:64px;height:64px;flex:0 0 64px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line,#e4e9e5);border-radius:10px;overflow:hidden}
.sw-basket-product-photo{width:100%;height:100%;object-fit:contain;display:block}
.sw-basket-icon-fallback{display:inline-flex;align-items:center;justify-content:center}
.sw-basket-icon-fallback[hidden],.sw-basket-product-photo[hidden]{display:none!important}
.sw-basket-icon-fallback .snack-icon{max-width:52px;max-height:52px;object-fit:contain}
.sw-basket-product-name{min-width:0;overflow-wrap:anywhere}
@media(max-width:550px){.sw-basket-picture{width:56px;height:56px;flex-basis:56px}}

/* SW Snacks: order confirmation product photographs */
.sw-order-product-info{display:inline-flex;align-items:center;gap:10px;min-width:0;max-width:100%}
.sw-order-picture{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;flex:0 0 48px;overflow:hidden;border-radius:9px;background:#fff}
.sw-order-product-photo{display:block;max-width:100%;width:48px;height:48px;object-fit:contain}
.sw-order-product-photo[hidden],.sw-order-icon-fallback[hidden]{display:none!important}
.sw-order-product-label{min-width:0;overflow-wrap:anywhere}
.sw-order-icon-fallback{display:inline-flex;align-items:center;justify-content:center}

/* SW Snacks photograph sizing safeguard */
.checkout-card .sw-basket-picture,
.checkout-card .sw-order-picture {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.checkout-card .sw-basket-picture {
    width: 64px;
    height: 64px;
}

.checkout-card .sw-order-picture {
    width: 48px;
    height: 48px;
}

.checkout-card .sw-basket-picture img.sw-basket-product-photo,
.checkout-card .sw-order-picture img.sw-order-product-photo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media(max-width:550px) {
    .checkout-card .sw-basket-picture {
        width: 56px;
        height: 56px;
    }
}
