.product-detail__buy-buttons .form__buttons > button[type="submit"],
.product-detail__buy-buttons .pay-button-buy-now {
  min-height: 52px;
  text-transform: uppercase;
  border-radius: 999px !important;
}

.product-detail__buy-buttons .pay-button-buy-now {
  margin-bottom: 0 !important;
}

.product-detail__buy-buttons .shopline-payment-button-wrapper.bb-payment-enhanced {
  display: grid !important;
  grid-template-columns:
    minmax(150px, 1.4fr)
    repeat(var(--bb-express-columns, 2), minmax(90px, 1fr));
  gap: 8px 12px;
  align-items: center;
  width: 100%;
}

.product-detail__buy-buttons
  .shopline-payment-button-wrapper.bb-payment-enhanced
  > .pay-button-buy-now,
.product-detail__buy-buttons
  .shopline-payment-button-wrapper.bb-payment-enhanced
  > .payment-enhancer__content {
  grid-column: 1 / -1;
  width: 100% !important;
}

.product-detail__buy-buttons
  .shopline-payment-button-wrapper.bb-payment-enhanced
  > .pay-button-buy-now {
  order: 1;
}

.product-detail__buy-buttons
  .shopline-payment-button-wrapper.bb-payment-enhanced
  > .payment-enhancer__content {
  order: 2;
}

.product-detail__buy-buttons .payment-express-title {
  order: 3;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding-inline-start: 15px;
  font-size: 10px;
  line-height: 1.25;
}

.product-detail__buy-buttons
  .shopline-payment-button-wrapper.bb-payment-enhanced
  > .pay-button-common-item-express {
  order: 4;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 999px !important;
}

.product-detail__buy-buttons
  .shopline-payment-button-wrapper.bb-payment-enhanced
  > .pay-button-common-item-express
  iframe {
  width: 100% !important;
  min-width: 0 !important;
  border-radius: 999px !important;
}

.product-detail__buy-buttons
  .shopline-payment-button-wrapper.bb-payment-enhanced[data-bb-express-count="0"]
  .payment-express-title {
  display: none;
}

@media (max-width: 479px) {
  .product-detail__buy-buttons .shopline-payment-button-wrapper.bb-payment-enhanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail__buy-buttons .payment-express-title {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 2px 0 0;
  }

  .product-detail__buy-buttons
    .shopline-payment-button-wrapper.bb-payment-enhanced[data-bb-express-count="1"]
    > .pay-button-common-item-express,
  .product-detail__buy-buttons
    .shopline-payment-button-wrapper.bb-payment-enhanced
    > .pay-button-common-item-express.bb-payment-express-last-odd {
    grid-column: 1 / -1;
  }
}
