/*
 * AUTOERA MOBILE PRODUCT EXACT
 * Работает только внутри form.aenp-product.
 */

@media (max-width:768px) {
    form.aenp-product .aepe-hide,
    .aepe-floating-duplicate {
        display:none !important;
        visibility:hidden !important;
        opacity:0 !important;
        pointer-events:none !important;
    }

    /*
     * Настоящий input[type=image] остаётся в DOM и выполняет штатное
     * добавление Shop-Script, но визуально скрывается.
     */
    form.aenp-product
    .aenp-cart-wrap
    .cpt_product_add2cart_button
    input[name^="add2cart"][type="image"] {
        position:absolute !important;
        left:-10000px !important;
        width:1px !important;
        height:1px !important;
        opacity:0 !important;
        pointer-events:none !important;
    }

    /*
     * Одна видимая синяя кнопка Pirkt.
     */
    form.aenp-product .aepe-buy-button {
        display:block !important;
        width:100% !important;
        min-height:58px !important;
        margin:18px 0 8px !important;
        padding:13px 20px !important;

        border:0 !important;
        border-radius:12px !important;
        background:linear-gradient(180deg,#49a9ef 0%,#0874cf 100%) !important;
        box-shadow:0 7px 18px rgba(0,103,200,.22) !important;

        color:#fff !important;
        font-size:22px !important;
        line-height:1.15 !important;
        font-weight:800 !important;
        text-align:center !important;
        text-decoration:none !important;
        text-transform:none !important;

        cursor:pointer !important;
        box-sizing:border-box !important;
        -webkit-appearance:none !important;
        appearance:none !important;
    }

    /*
     * Восстанавливаем штатные кнопки количества после старого ошибочного
     * патча, который превращал кнопку "-" в Pirkt.
     */
    form.aenp-product
    .aenp-cart-wrap
    .cpt_product_add2cart_button
    input.minus,
    form.aenp-product
    .aenp-cart-wrap
    .cpt_product_add2cart_button
    input.plus {
        display:inline-block !important;
        visibility:visible !important;
        opacity:1 !important;
        pointer-events:auto !important;
        position:static !important;
        z-index:auto !important;
        width:auto !important;
        min-width:52px !important;
        height:48px !important;
        min-height:48px !important;
        margin:0 !important;
        padding:0 16px !important;
        border:1px solid #d7dce3 !important;
        border-radius:9px !important;
        background:#f0f1f3 !important;
        box-shadow:none !important;
        color:#111 !important;
        font-size:24px !important;
        line-height:48px !important;
        font-weight:500 !important;
        text-align:center !important;
    }
}
