/* =========================================================
   DANA — Ukrainian product-card corrections
   Подключать ПОСЛЕ style_product.css и dana-product-card-x2.css
   ========================================================= */

@media (max-width: 991px) {
  /* Старый style_product.css превращает каждый .count_item в grid.
     Для современной CTA-группы украинской карточки это правило отключаем. */
  html body #msProduct_ua .count_item.dana-count-item-x2 {
    display: block !important;
    position: static !important;
    float: none !important;
    clear: both !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
  }

  /* Одна кнопка = одна полная строка. */
  html body #msProduct_ua .dana-product-cta-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: 10px !important;
    position: static !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Сбрасываем старые отступы Bootstrap и style_product.css. */
  html body #msProduct_ua .dana-product-cta-panel > *,
  html body #msProduct_ua .dana-product-cta-panel .btn_buy,
  html body #msProduct_ua .dana-product-cta-panel .dana-oneclick-wrap {
    grid-area: auto !important;
    display: block !important;
    float: none !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html body #msProduct_ua .dana-product-cta-panel button,
  html body #msProduct_ua .dana-product-cta-panel .btn,
  html body #msProduct_ua .dana-product-cta-panel .btn_product,
  html body #msProduct_ua .dana-product-main-buy-btn,
  html body #msProduct_ua .dana-product-calc-btn,
  html body #msProduct_ua .dana-oneclick-open-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}
