Design theme "MegaShop 2.0" v. 1.12.1
Product card
Button layout: "Product card"
Selector to add the button: .c-product-cart-form .c-product-add-to-cart__controls
Selector of the "Buy" section/form in the product card: .c-product-cart-form
Method to add the button to the selector: after()
HTML template for the button:
<div class="ya-pay-separator"><span>or quickly with Yandex</span></div>
#BUTTON#
<style>
##BUTTON_ZONE# {
margin: 0;
padding: 0px;
zoom:0.8;
}
##BUTTON_ZONE# .ya-pay-separator
{
position: relative;
top: 22px;
left: 0;
display: block;
width: 100%;
height: 1px;
content: "";
background-color: #ced8e1;
}
##BUTTON_ZONE# .yandexpaycheckoutButton
{
margin-top: 45px;
text-align:center;
}
##BUTTON_ZONE# .ya-pay-separator span {
font-size: 14px;
line-height: 1.28571;
position: absolute;
z-index: 2;
display: inline-block;
padding: 0 15px;
color: #7d858c;
background: #fff;
left: calc(50% - 98px);
top: -8px;
}
</style>