/* Theme Name: Kadence Child
 * Author: Webbright.ru
 * Template: kadence
 * Version: 1.0.0
 */

.term-description p {
	font-size: 14px;
    padding: 0;
    margin: 0;
    line-height: 20px;
}

.term-description h1, .term-description h2, .term-description h3, .term-description h4, .term-description h5,  
.term-description h1 strong, .term-description h2 strong, .term-description h3 strong, .term-description h4 strong, .term-description h5 strong
{
	    font-size: 20px !important;
}
.term-description {
	    margin-top: 40px;
}
.flare-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;     
}

.flare-button .additional-button-buy {
  background-color: rgb(255, 123, 0)!important;
  border-color: rgb(255, 123, 0);
  color: #ffffff !important;
}

.flare-button {
  display: flex;
  flex-wrap: wrap;          
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.flare-button .additional-button,
.flare-button .additional-button-buy {
  flex: 0 1 auto;
}

@media (max-width: 1024px) {
  .flare-button {
    justify-content: space-between;
  }

  .flare-button .additional-button,
  .flare-button .additional-button-buy {
    flex: 1 1 calc(50% - 5px); 
    text-align: center;
  }
}

@media (max-width: 540px) {
  .flare-button {
    justify-content: center;
  }

  .flare-button .additional-button,
  .flare-button .additional-button-buy {
    flex: 1 1 100%;
  }
}
.wpfFilterWrapper {
  border: 0;
  background: #ffffff;
  padding: 14px 16px 10px;
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.wpfFilterWrapper .wpfFilterTitle {
  position: relative;
  padding-right: 18px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}

.wpfFilterWrapper .wpfFilterTitle::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgb(255,123,0);
  border-bottom: 2px solid rgb(255,123,0);
  transform: translateY(-50%) rotate(45deg);
  transition: transform .2s ease;
}

.wpfFilterWrapper.wpf-closed .wpfFilterTitle::after {
  transform: translateY(-50%) rotate(-135deg);
}

.wpfFilterWrapper .wpfFilterContent {
  padding-top: 8px;
  max-height: 9999px;
  overflow: hidden;
  transition: max-height .25s ease;
}

.wpfFilterWrapper.wpf-closed .wpfFilterContent {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.wpfFilterVerScroll {
  background: #ffffff;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgb(255,123,0) #ffffff;
}

.wpfFilterVerScroll::-webkit-scrollbar {
  width: 4px;
}

.wpfFilterVerScroll::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 999px;
}

.wpfFilterVerScroll::-webkit-scrollbar-thumb {
  background: rgb(255,123,0);
  border-radius: 999px;
}
.wpfFilterWrapper {
  border: 0;
  background: #ffffff;
  padding: 18px 20px 14px;
  margin-bottom: 18px;
  border-radius: 14px;
}

.wpfFilterWrapper .wpfFilterTitle {
  font-size: 15px;
  line-height: 1.4;
}

/* === LSI-плитки категорий без чекбоксов === */

/* 1. Контейнер фильтра — убираем скролл-бокс и фон */
.lsi-strip .wpfFilterVerScroll {
  max-height: none;
  overflow: visible;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* 2. Список делаем сеткой, как на 4-м скрине */
.lsi-strip .wpfCheckboxHier ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}

/* 3. Прячем стандартные чекбоксы, но оставляем логику фильтра */
.lsi-strip .wpfCheckboxHier input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* 4. Плитка: картинка слева, текст справа */
.lsi-strip .wpfCheckboxHier label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

/* 5. Картинка категории слева */
.lsi-strip .wpfCheckboxHier .wpfFilterImage {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lsi-strip .wpfCheckboxHier .wpfFilterImage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 6. Название категории справа */
.lsi-strip .wpfCheckboxHier label span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #222222;
}

/* 7. Ховер и активное состояние (когда чекбокс выбран) */
.lsi-strip .wpfCheckboxHier label:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.lsi-strip .wpfCheckboxHier input[type="checkbox"]:checked + label {
  background: #fff7e6;
  box-shadow:
    0 0 0 1px #ff8a00,
    0 8px 18px rgba(0, 0, 0, 0.08);
}

/* 8. Адаптив: на планшете по 2 в ряд, на мобиле по 1 */
@media (max-width: 1024px) {
  .lsi-strip .wpfCheckboxHier ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .lsi-strip .wpfCheckboxHier ul {
    grid-template-columns: 1fr;
  }
}
/* прячем чекбоксы только в LSI-блоке */
.wpfFilterWrapper .wpfCheckbox label {
display: none!important;
}
/* Сетка под плитки */
.lsi-strip-filter .wpfButtonsFilter ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Плитка: картинка + текст по центру по вертикали */
.lsi-strip-filter .wpfButtonsFilter li.wpfTermWrapper {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 14px 18px !important;
  margin: 0 !important;

  background: #ffffff !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);

  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

/* Картинка слева */
.lsi-strip-filter .wpfButtonsFilter .wpfFilterImage {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lsi-strip-filter .wpfButtonsFilter .wpfFilterImage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Текст справа, без подчеркиваний, без отступа под кружок */
.lsi-strip-filter .wpfButtonsFilter .wpfValue {
  position: relative;
  padding-left: 0 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #222222;
  text-decoration: none;
}

/* Убираем нарисованный кружок плагина */
.lsi-strip-filter .wpfButtonsFilter .wpfValue::before,
.lsi-strip-filter .wpfButtonsFilter .wpfValue::after {
  display: none !important;
}

/* Прячем реальный input чекбокса */
.lsi-strip-filter .wpfButtonsFilter li.wpfTermWrapper input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}

/* Ховер и выбранная плитка */
.lsi-strip-filter .wpfButtonsFilter li.wpfTermWrapper:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.lsi-strip-filter .wpfButtonsFilter li.wpfTermWrapper.wpfChecked {
  background: #fff7e6 !important;
  box-shadow:
    0 0 0 1px #ff8a00,
    0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Адаптив */
@media (max-width: 1024px) {
  .lsi-strip-filter .wpfButtonsFilter ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .lsi-strip-filter .wpfButtonsFilter ul {
    grid-template-columns: 1fr;
  }
}
/* Подсветка выбранной LSI-плитки (та, где включён чекбокс) */
.lsi-strip .wpfCheckboxHier input[type="checkbox"]:checked + label {
  background: #fff7e6;
  box-shadow:
    0 0 0 1px #ff8a00,
    0 8px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* чтобы текст тоже отличался */
.lsi-strip .wpfCheckboxHier input[type="checkbox"]:checked + label span {
  color: #ff8a00;
}
/* Подсветка выбранной плитки в режиме кнопок */
/* Подсветка выбранной LSI-плитки (режим «кнопки» Woobewoo) */
.lsi-strip-filter .wpfButtonsFilter .wpfTermChecked {
  background: #fff7e6 !important;
  box-shadow:
    0 0 0 1px #ff8a00,
    0 8px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Цвет текста у выбранной плитки */
.lsi-strip-filter .wpfButtonsFilter .wpfTermChecked .wpfValue {
  color: #ff8a00;
}
