/* Выровнять весь текст по ширине */
.t-text, p, h1, h2, h3, h4, h5, h6 {
    text-align: justify !important;
}

/* Чтобы последний абзац выглядел аккуратно */
.t-text p:last-child {
    text-align: left !important;
}

/* PRELUDIYA: один контур выбранного размера в новых карточках товаров. */
#allrecords:has(.pdp-size-chart-btn) .r[data-record-type="744"] .t-product__option[data-edition-option-id="Размер"] .t-product__option-item_simple,
#allrecords:has(.pdp-size-chart-btn) .r[data-record-type="744"] .t-product__option[data-edition-option-id="Размер"] .t-product__option-item_simple.t-product__option-item_active {
  border: 0 !important;
  padding: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}


/* PRELUDIYA: один контур размеров в товарных блоках 786. */
#allrecords:has(.pdp-size-chart-btn) .r[data-record-type="786"] .t-product__option[data-edition-option-id="Размер"] .t-product__option-item_simple,
#allrecords:has(.pdp-size-chart-btn) .r[data-record-type="786"] .t-product__option[data-edition-option-id="Размер"] .t-product__option-item_simple.t-product__option-item_active {
  border: 0 !important; padding: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important;
}
#allrecords:has(.pdp-size-chart-btn) .r[data-record-type="786"] .t-product__option[data-edition-option-id="Размер"] .t-product__option-item_simple .t-product__option-title {
  display: flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box !important; min-width: 62px !important; padding: 7px 8px !important; border: 1px solid #aaa !important;
}
#allrecords:has(.pdp-size-chart-btn) .r[data-record-type="786"] .t-product__option[data-edition-option-id="Размер"] .t-product__option-item_active .t-product__option-title { border-color: #000 !important; }
#allrecords:has(.pdp-size-chart-btn) .r[data-record-type="786"] .t-product__option[data-edition-option-id="Размер"] .t-product__option-item_disabled .t-product__option-title { border-color: #bbb !important; }
#allrecords:has(.pdp-size-chart-btn) .r[data-record-type="786"] .t-product__option[data-edition-option-id="Размер"] .t-product__option-checkmark { display: none !important; }

/* PRELUDIYA: keep the size button full height when a 1 шт. stock note appears. */
#allrecords:has(.pdp-size-chart-btn) .r[data-record-type="744"] .t-product__option[data-edition-option-id="Размер"] .t-product__option-variants_simple { min-height: 44px !important; height: auto !important; align-items: flex-start !important; }
#allrecords:has(.pdp-size-chart-btn) .r[data-record-type="744"] .t-product__option[data-edition-option-id="Размер"] .t-product__option-item_simple { height: 44px !important; min-height: 44px !important; flex: 0 0 auto !important; align-items: stretch !important; justify-content: flex-start !important; }
#allrecords:has(.pdp-size-chart-btn) .r[data-record-type="744"] .t-product__option[data-edition-option-id="Размер"] .t-product__option-item_simple .t-product__option-title { display: flex !important; flex: 0 0 32px !important; height: 32px !important; min-height: 32px !important; align-items: center !important; justify-content: center !important; line-height: 1 !important; overflow: visible !important; }
#allrecords:has(.pdp-size-chart-btn) .r[data-record-type="744"] .t-product__option[data-edition-option-id="Размер"] .t-product__option-item_simple .pdp-stock-note { flex: 0 0 auto !important; line-height: 12px !important; margin-top: 0 !important; }

/* PRELUDIYA: скрыть шаблонное меню Tilda до первого кадра. */
#t-header .t-rec[data-record-type="1261"] {
  position: absolute !important;
  top: 0 !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
