/* arbor-fix.css 2026-09-30: мобильная карточка (компактный возраст, липкая панель покупки), плавающие кнопки.
   Только <768px. Десктоп не затрагивается. Откат: убрать <link> из шаблона 2 и chunk 6 (см. отчёт). */
.arbor-sticky-buy { display: none; }

@media (max-width: 767.98px) {
  /* --- 6. Возраст: свёрнут до выбранного значения (список открывается тапом) --- */
  .product__in-wrap-label:not(.is-open) .product__in-label:not(:has(input:checked)) { display: none; }
  .product__in-wrap-label .product__in-label { min-height: 40px; align-items: center; }
  .product__in-wrap-label .product__in-item_label { margin-bottom: 0; }
  .product__in-wrap-label { margin-bottom: 1rem; }
  .product__in-wrap-label:not(.is-open) .product__in-label:has(input:checked) {
    border: 1px solid #2abb9c; border-radius: .3rem; padding: .35rem .6rem; background: #fff; position: relative;
  }
  .product__in-wrap-label:not(.is-open) .product__in-label:has(input:checked) .radio__desc::after {
    content: "выбрать другой  \25BE"; position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
    font-size: .8rem; color: #2abb9c; white-space: nowrap;
  }
  .product__in-wrap-label.is-open .product__in-label { padding: .35rem .6rem; }

  /* --- 6. Липкая нижняя панель «цена · В корзину» --- */
  .arbor-sticky-buy {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9100;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -2px 12px rgba(0, 0, 0, .18);
    transform: translateY(110%); transition: transform .2s ease; visibility: hidden;
  }
  .arbor-sticky-buy.is-visible { transform: none; visibility: visible; }
  .arbor-sticky-buy__info { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  .arbor-sticky-buy__price { font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
  .arbor-sticky-buy__age { font-size: .75rem; color: #6c7a89; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .arbor-sticky-buy__btn { flex: 0 0 auto; min-width: 150px; min-height: 44px; }
  body.arbor-sticky-on { padding-bottom: var(--arbor-bar-h, 64px); }

  /* при видимой панели поднимаем плавающие элементы над ней */
  body.arbor-sticky-on .cookie-notice { bottom: calc(var(--arbor-bar-h, 64px) + 8px); }
  body.arbor-sticky-on .woot-widget-bubble { bottom: calc(var(--arbor-bar-h, 64px) + 12px) !important; }
  body.arbor-sticky-on #arbor-call-btn { bottom: calc(var(--arbor-bar-h, 64px) + 12px + 72px) !important; }

  /* --- 7. Плавающие кнопки звонка/чата: обе справа столбиком, левый край (там «Купить») свободен --- */
  body #arbor-call-btn { left: auto !important; right: 28px; bottom: 96px; width: 48px; height: 48px; }
  body #arbor-call-btn svg { width: 24px; height: 24px; }
}
