/* Product-detail express checkout: use the native provider buttons. */
#productDetailPageBuyProductForm .buy-widget-container .btn.btn-buy { height: 55px !important; min-height: 55px !important; }
.buy-widget > .row:has(> .tw-product-express-paypal),
#swag-amazon-pay-product-detail-wrapper {
    display: flex; justify-content: flex-end; gap: 0;
    width: calc(100% + 8px); margin: 10px -4px 0 !important; padding: 0;
}
.buy-widget .tw-product-express-paypal,
#swag-amazon-pay-product-detail-wrapper > .col-8 {
    flex: 0 0 var(--tw-express-width, calc(100% - 198px));
    width: var(--tw-express-width, calc(100% - 198px));
    max-width: none; padding: 0; margin: 0;
}
.tw-product-express-paypal { min-height: 44px; }
.tw-product-express-paypal.is-disabled::after { height: 44px; }
#swag-amazon-pay-product-detail-wrapper .swag-amazon-pay-wrapper.product-detail {
    width: 100%; max-width: none; padding: 0; margin: 0;
}
/* Amazon's native layout reserves 65% for the button and 35% for its caption. */
#swag-amazon-pay-product-detail-wrapper .swag-amazon-pay-button-container.product-detail {
    box-sizing: border-box; width: 100% !important; max-width: none;
    height: 67.6923px !important; margin: 0; padding: 0;
}
@media (max-width: 575.98px) {
    .tw-pro-buybox-shell .buy-widget-container { grid-template-columns: 1fr; }
    .tw-pro-buybox-shell .buy-widget-container > fieldset { width: 186px; }
    .buy-widget .tw-product-express-paypal,
    #swag-amazon-pay-product-detail-wrapper > .col-8 { flex-basis: var(--tw-express-width, 100%); width: var(--tw-express-width, 100%); }
}

/* Match the two native express buttons in the side cart. */
.cart-offcanvas .swag-amazon-pay-wrapper.offcanvas-cart { height: auto; }
.cart-offcanvas .swag-amazon-pay-button-container.offcanvas-cart {
    width: 100% !important; height: 67.6923px !important;
}
