/* Карточка товара (tpl/catalog/product.tpl): количество и цена в одной строке,
   кнопки «Получить КП» и «Добавить в корзину» в одной строке, пояснение под «Получить КП». */

/* --- Количество + цена --- */
#ci-top .product-kp__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 40px;
    margin-bottom: 25px;
}

/* блок количества — сеткой: у flex с переносом (main.css, css.css) «естественная» ширина
   считается как подпись + кнопки в одну строку, и цена уезжала вправо или на новую строку */
#ci-top .product-kp__row .button_col {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    margin-bottom: 0;
}

#ci-top .product-kp__row .button_col > span {
    grid-column: 1 / -1;
    width: auto;
    margin-right: 0;
}

#ci-top .product-kp__row input[type="number"].qty-input {
    width: 90px;
}

/* цена — текстом, без рамки и фона */
#ci-top .product-kp__price {
    color: #333;
    font: 30px/34px 'Open Sans Bold', sans-serif;
    white-space: nowrap;
}

/* --- Кнопки --- */
#ci-top .product-kp__btns {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

#ci-top .product-kp__col {
    flex: 1 1 0;
    min-width: 0;
}

#ci-top .product-kp__col .goods__btn_new {
    width: 100%;
    margin-bottom: 0;
}

#ci-top .product-kp__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 16px;
    border: 1px solid #99c45a;
    border-radius: 10px;
    background: #fff;
    color: #99c45a;
    font: 24px/1.2 'Open Sans', sans-serif;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

#ci-top .product-kp__btn svg {
    flex-shrink: 0;
}

#ci-top .product-kp__btn:hover,
#ci-top .product-kp__btn:focus-visible {
    background: #99c45a;
    color: #fff;
}

#ci-top .product-kp__btn:active {
    opacity: .85;
}

/* пояснение под «Получить КП» */
#ci-top .product-kp__note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0 0;
    color: #8a8a8a;
    font-size: 13px;
    line-height: 1.3;
}

#ci-top .product-kp__note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- Мобильные --- */
@media (max-width: 767px) {
    #ci-top .product-kp__row {
        flex-wrap: nowrap;
        gap: 10px 16px;
    }

    #ci-top .product-kp__row input[type="number"].qty-input {
        width: 64px;
    }

    #ci-top .product-kp__price {
        font-size: 24px;
        line-height: 34px;
    }

    #ci-top .product-kp__btns {
        flex-direction: column;
        gap: 14px;
    }

    #ci-top .product-kp__col {
        width: 100%;
    }

    #ci-top .product-kp__btn {
        min-height: 52px;
        font-size: 20px;
    }
}
