/* All seven payment methods stay on a single row. */
.ph-pdp-payments .ph-pdp-payments__list {
    grid-template-columns: minmax(124px, 1.8fr) repeat(6, minmax(0, 1fr));
}
.ph-pdp-payments .ph-pdp-payment-badge--bank {
    grid-column: auto;
}
.ph-pdp-payments .ph-pdp-payment-badge img {
    max-width: 100%;
}
.ph-pdp-payments .ph-pdp-payment-badge--klarna img {
    height: 30px;
    object-fit: contain;
    width: 100%;
}
/* Limit the footer strip and Klarna to the existing payment-image height. */
.ph-footer-payments {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.ph-footer-payments > img:first-child {
    flex: 0 1 auto;
    height: auto;
    max-height: 30px;
    max-width: calc(100% - 45px - 8px);
    min-width: 0;
    width: auto;
}
.ph-footer-payments > img:last-child {
    flex: 0 0 auto;
    height: 30px;
    width: 45px;
}
@media only screen and (max-width: 639px) {
    .ph-pdp-payments .ph-pdp-payments__list {
        grid-template-columns: minmax(0, 2fr) repeat(6, minmax(0, 1fr));
    }
    .ph-pdp-payments .ph-pdp-payment-badge {
        padding: 4px;
    }
    .ph-pdp-payments .ph-pdp-payment-badge--bank > svg,
    .ph-pdp-payments .ph-pdp-payment-badge__bank-detail {
        display: none;
    }
    .ph-pdp-payments .ph-pdp-payment-badge--klarna img {
        height: 24px;
        max-height: 24px;
    }
}
