/* =========================================================
CHIBABI — CART CSS V10 — NO BACK LINK
+ SOLD OUT → СКОРО В ПРОДАЖЕ

ПОЛНАЯ ВЕРСИЯ
========================================================= */

:root{
  --ch-green:#4A5831;
  --ch-line:rgba(74,88,49,.28);
  --ch-error-bg:rgba(74,88,49,.07);
  --ch-radius:5px;
}

/* ---------------------------------------------------------
1. Убираем остатки старых экспериментальных элементов
--------------------------------------------------------- */
.ch-checkout-submit-after-total,
.ch-checkout-submit-btn{
  display:none!important;
}

.t706__cartpage .ch-original-submit-hidden{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
}

/* ---------------------------------------------------------
2. НЕ ломаем grid HEADER V15.
Просто задаём элементам фиксированные зоны.
--------------------------------------------------------- */
html body.t706__body_cartpageshowed .t706__cartpage-content,
html body.ch-cart-open .t706__cartpage-content{
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  grid-template-areas:
    "title back"
    "products products"
    "totals totals"
    "info info"
    "form form"
    "open open"!important;

  align-items:start!important;
  justify-items:stretch!important;

  column-gap:26px!important;
  row-gap:18px!important;

  width:min(760px,calc(100% - 48px))!important;
  max-width:760px!important;
  margin:0 auto!important;
  padding:34px 0 56px!important;
}

/* Заголовок HEADER V15 */
html body.t706__body_cartpageshowed .t706__cartpage-content:before,
html body.ch-cart-open .t706__cartpage-content:before{
  grid-area:title!important;
}

/* Назад в магазин */
html body.t706__body_cartpageshowed .t706__cartpage-content > .ch-cart-back,
html body.t706__body_cartpageshowed .t706__cartpage-content > .ch-cart-shop-link,
html body.ch-cart-open .t706__cartpage-content > .ch-cart-back,
html body.ch-cart-open .t706__cartpage-content > .ch-cart-shop-link{
  grid-area:back!important;
}

/* ТОВАРЫ */
html body.t706__body_cartpageshowed .t706__cartpage-products,
html body.ch-cart-open .t706__cartpage-products{
  grid-area:products!important;
  align-self:start!important;
  width:100%!important;
  margin-top:0!important;
}

/* ИТОГО */
html body.t706__body_cartpageshowed .t706__cartpage-totals,
html body.ch-cart-open .t706__cartpage-totals{
  grid-area:totals!important;
  align-self:start!important;
  width:100%!important;
  margin-top:0!important;
}

/* АВТОРИЗАЦИЯ / служебная информация */
html body.t706__body_cartpageshowed .t706__cartpage-info,
html body.ch-cart-open .t706__cartpage-info{
  grid-area:info!important;
  align-self:start!important;
  width:100%!important;
  max-width:none!important;
  margin:0 0 18px!important;
  float:none!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
}

/* САМА ФОРМА */
html body.t706__body_cartpageshowed .t706__cartpage-form,
html body.ch-cart-open .t706__cartpage-form{
  grid-area:form!important;
  align-self:start!important;
  width:100%!important;
  max-width:none!important;
  margin-top:0!important;
  float:none!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
}

/* Служебная кнопка Tilda */
html body.t706__body_cartpageshowed .t706__cartpage-open-form-wrap,
html body.ch-cart-open .t706__cartpage-open-form-wrap{
  grid-area:open!important;
  align-self:start!important;
  width:100%!important;
  margin-top:0!important;
}

/* ---------------------------------------------------------
3. Тексты корзины — зелёные
--------------------------------------------------------- */
html body .t706__cartpage,
html body .t706__cartpage *{
  color:var(--ch-green)!important;
}

/* Белый текст на зелёных кнопках */
html body .t706__cartpage .t-submit,
html body .t706__cartpage .t-submit *,
html body .t706__cartpage-open-form,
html body .t706__cartpage-open-form *{
  color:#fff!important;
}

/* ИТОГО — зелёное */
html body .t706__cartpage-totals,
html body .t706__cartpage-totals *,
html body .t706__cartwin-totalamount-wrap,
html body .t706__cartwin-totalamount-wrap *{
  color:var(--ch-green)!important;
}

/* ---------------------------------------------------------
4. Все кнопки — 5px
--------------------------------------------------------- */
html body button,
html body input[type="submit"],
html body input[type="button"],
html body input[type="reset"],
html body #allrecords .t-btn,
html body #allrecords .t-btnflex,
html body #allrecords .t-submit,
html body #allrecords .t-form__submit,
html body #allrecords .t706__submit,
html body #allrecords .t706__cartpage-open-form,
html body #allrecords .t706__cartpage-open-form-btn,
html body #allrecords .ch-pill,
html body #allrecords .ch-wishlist-to-cart,
html body #allrecords .cb-footer__submit,
html.cb13-product body .cb13-buy,
html body .t706 button,
html body a.t-btn,
html body a[class*="button"],
html body a[class*="btn"]{
  border-radius:5px!important;
}

html body .t706__cartpage .t-submit,
html body .t706__cartpage-open-form,
html body .ch-pill,
html body .ch-wishlist-to-cart{
  border-radius:5px!important;
}

/* ---------------------------------------------------------
5. Ошибки — зелёные
--------------------------------------------------------- */
html body .t706 .t-form__errorbox-wrapper,
html body .t706 .js-errorbox-all{
  color:var(--ch-green)!important;
  background:var(--ch-error-bg)!important;
  border:1px solid var(--ch-line)!important;
  border-radius:5px!important;
  box-shadow:none!important;
}

html body .t706 .t-form__errorbox-text,
html body .t706 .t-form__errorbox-item,
html body .t706 .t-input-error,
html body .t706 .js-rule-error{
  color:var(--ch-green)!important;
  background:transparent!important;
}

html body .t706 .js-error-control-box .t-input,
html body .t706 .js-error-control-box input,
html body .t706 .js-error-control-box textarea,
html body .t706 .js-error-control-box select,
html body .t706 .js-error-control-box .t-checkbox__control{
  border-color:var(--ch-green)!important;
  outline-color:var(--ch-green)!important;
  box-shadow:none!important;
}

/* ---------------------------------------------------------
6. Нативный плавающий кабинет Tilda
--------------------------------------------------------- */
.tlk-userbar,
[class*="tlk-userbar"],
[class*="members-userbar"],
[class*="member-userbar"]{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}


/* ---------------------------------------------------------
8. Убираем визуально лишний блок авторизации
--------------------------------------------------------- */
html body.t706__body_cartpageshowed
.t706__cartpage-info [class*="login"],
html body.t706__body_cartpageshowed
.t706__cartpage-info [class*="user"],
html body.ch-cart-open
.t706__cartpage-info [class*="login"],
html body.ch-cart-open
.t706__cartpage-info [class*="user"]{
  display:none!important;
}

html body.t706__body_cartpageshowed .t706__cartpage-info:empty,
html body.ch-cart-open .t706__cartpage-info:empty{
  display:none!important;
}

html body.t706__body_cartpageshowed .t706__cartpage-products,
html body.t706__body_cartpageshowed .t706__cartpage-totals,
html body.t706__body_cartpageshowed .t706__cartpage-info,
html body.t706__body_cartpageshowed .t706__cartpage-form,
html body.t706__body_cartpageshowed .t706__cartpage-open-form-wrap,
html body.ch-cart-open .t706__cartpage-products,
html body.ch-cart-open .t706__cartpage-totals,
html body.ch-cart-open .t706__cartpage-info,
html body.ch-cart-open .t706__cartpage-form,
html body.ch-cart-open .t706__cartpage-open-form-wrap{
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* Контактные поля */
html body .t706__cartpage .t-input-block{
  margin-bottom:18px!important;
}

/* Итого */
html body .t706__cartpage-totals{
  text-align:right!important;
  margin-top:2px!important;
  margin-bottom:8px!important;
}

/* Кнопка оформления */
html body .t706__cartpage .t-submit,
html body .t706__cartpage-open-form{
  width:100%!important;
  max-width:none!important;
}

/* ---------------------------------------------------------
7. Планшет / телефон
--------------------------------------------------------- */
@media(max-width:900px){
  html body.t706__body_cartpageshowed .t706__cartpage-content,
  html body.ch-cart-open .t706__cartpage-content{
    grid-template-columns:1fr!important;
    grid-template-areas:
      "title"
      "back"
      "products"
      "totals"
      "info"
      "form"
      "open"!important;

    width:calc(100% - 28px)!important;
    max-width:none!important;
    margin:0 auto!important;
    padding:28px 0 44px!important;

    column-gap:0!important;
    row-gap:20px!important;
  }
}


/* =========================================================
V7 — КОМПАКТНЫЙ ВЕРХ КОРЗИНЫ
========================================================= */

html body.t706__body_cartpageshowed .t706__cartpage-content:before,
html body.ch-cart-open .t706__cartpage-content:before{
  grid-area:title!important;
  align-self:center!important;
  justify-self:start!important;

  display:block!important;
  width:auto!important;

  margin:0!important;
  padding:0!important;

  content:"Оформление заказа"!important;

  color:#4A5831!important;
  font:500 26px/1.05 "Neue Haas Unica","NeueHaasUnica","Helvetica Neue",Arial,sans-serif!important;
  letter-spacing:-.02em!important;
}


html body.t706__body_cartpageshowed .t706__cartpage-content > .ch-cart-back,
html body.t706__body_cartpageshowed .t706__cartpage-content > .ch-cart-shop-link,
html body.ch-cart-open .t706__cartpage-content > .ch-cart-back,
html body.ch-cart-open .t706__cartpage-content > .ch-cart-shop-link{
  grid-area:back!important;
  align-self:center!important;
  justify-self:start!important;

  width:auto!important;
  min-height:0!important;

  margin:0!important;
  padding:0!important;

  color:#4A5831!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;

  font:400 14px/1.2 "Neue Haas Unica","NeueHaasUnica","Helvetica Neue",Arial,sans-serif!important;
  text-decoration:none!important;
}


html body.t706__body_cartpageshowed .t706__cartpage-products,
html body.ch-cart-open .t706__cartpage-products{
  grid-area:products!important;
  margin-top:4px!important;
  padding-top:0!important;
}


html body.t706__body_cartpageshowed .t706__cartpage-totals,
html body.ch-cart-open .t706__cartpage-totals{
  grid-area:totals!important;
  margin-top:0!important;
}


/* Телефон */
@media(max-width:700px){
  html body.t706__body_cartpageshowed .t706__cartpage-content,
  html body.ch-cart-open .t706__cartpage-content{
    grid-template-columns:1fr!important;
    grid-template-areas:
      "title"
      "back"
      "products"
      "totals"
      "info"
      "form"
      "open"!important;

    width:calc(100% - 28px)!important;
    max-width:none!important;
    margin:0 auto!important;
    padding:24px 0 40px!important;

    column-gap:0!important;
    row-gap:12px!important;
  }

  html body.t706__body_cartpageshowed .t706__cartpage-content:before,
  html body.ch-cart-open .t706__cartpage-content:before{
    font-size:23px!important;
  }

  html body.t706__body_cartpageshowed .t706__cartpage-products,
  html body.ch-cart-open .t706__cartpage-products{
    margin-top:6px!important;
  }
}


/* =========================================================
V8 — ОСТАВЛЯЕМ ТОЛЬКО ОДИН КРЕСТИК
========================================================= */

html body .ch-cart-close-native{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}


/* =========================================================
V9 — УБИРАЕМ НАЛОЖЕНИЕ В ВЕРХНЕЙ СТРОКЕ
========================================================= */

html body.t706__body_cartpageshowed
.t706__cartpage-content > .ch-cart-shop-link,
html body.ch-cart-open
.t706__cartpage-content > .ch-cart-shop-link{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}


html body.t706__body_cartpageshowed
.t706__cartpage-content > .ch-cart-back,
html body.ch-cart-open
.t706__cartpage-content > .ch-cart-back{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;

  grid-area:back!important;
  align-self:center!important;
  justify-self:start!important;

  width:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;

  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}


/* =========================================================
V10 — УБИРАЕМ «← КОРЗИНА»
========================================================= */

html body.t706__body_cartpageshowed
.t706__cartpage-content > .ch-cart-back,
html body.ch-cart-open
.t706__cartpage-content > .ch-cart-back{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}


/* Верхняя строка теперь только под заголовок */
html body.t706__body_cartpageshowed .t706__cartpage-content,
html body.ch-cart-open .t706__cartpage-content{
  grid-template-columns:1fr!important;

  grid-template-areas:
    "title"
    "products"
    "totals"
    "info"
    "form"
    "open"!important;
}


/* Карточки чуть ближе к заголовку */
html body.t706__body_cartpageshowed .t706__cartpage-products,
html body.ch-cart-open .t706__cartpage-products{
  margin-top:2px!important;
}


/* =========================================================
CHIBABI — НЕТ В НАЛИЧИИ → СКОРО В ПРОДАЖЕ

Меняем ТОЛЬКО системную подпись Tilda.
Сердца здесь вообще не трогаем.
========================================================= */

html body
.js-store-prod-sold-out.t-store__card__sold-out-msg{
  font-size:0!important;
  line-height:0!important;

  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
}


html body
.js-store-prod-sold-out.t-store__card__sold-out-msg::after{
  content:"Скоро в продаже"!important;

  display:block!important;

  color:#4A5831!important;
  -webkit-text-fill-color:#4A5831!important;

  font-family:
    "Neue Haas Unica",
    "NeueHaasUnica",
    "Helvetica Neue",
    Arial,
    sans-serif!important;

  font-size:11px!important;
  line-height:1.35!important;
  font-weight:500!important;

  letter-spacing:.01em!important;
  text-transform:none!important;

  opacity:.68!important;
}


@media(max-width:640px){
  html body
  .js-store-prod-sold-out.t-store__card__sold-out-msg::after{
    font-size:10px!important;
  }
}
/* =========================================================
CHIBABI — УБИРАЕМ ИЗБРАННОЕ ИЗ КАРТОЧЕК ТОВАРОВ
Внутри открытой карточки товара сердце остаётся
========================================================= */

html body #allrecords
.t-store__card
.t1002__addBtn{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* Внутри страницы товара сердце оставляем */
html.cb13-product body
.t-store__prod-popup
.t1002__addBtn,
html.cb13-product body
.cb13-heart.t1002__addBtn{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}