/* ================================================================
   ACCOUNT LISTS — «Переглянуті товари» і «Мої відгуки»  (biomentor / myshop)
   ================================================================ */

/* ── Переглянуті: сітка тих самих карток, що в магазині ── */
.lk__viewed-grid.fp-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
@media (max-width: 1280px) { .lk__viewed-grid.fp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .lk__viewed-grid.fp-grid { gap: 20px 12px; } }

/* ── Порожній стан ── */
.lk__list-empty {
  text-align: center;
  padding: 64px 20px;
  border: 1px solid #E8E0D4;
  border-radius: 4px;
  background: #fff;
}
.lk__list-empty p {
  font-family: 'Golos Text', sans-serif;
  font-size: 15px;
  color: #6B6560;
  margin: 0 0 20px;
}

/* ── Мої відгуки ── */
.lk-reviews { display: flex; flex-direction: column; gap: 16px; }

.lk-review {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #E8E0D4;
  border-radius: 4px;
}
.lk-review__thumb {
  display: block;
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 4px;
  overflow: hidden;
  background: #F5F0E8;
}
.lk-review .lk-review__img {          /* 2 класи: перебиваємо .woocommerce-page img { height:auto } */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lk-review__body { min-width: 0; }
.lk-review__product {
  font-family: 'Golos Text', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  text-decoration: none;
}
.lk-review__product:hover { text-decoration: underline; }

.lk-review__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 6px 0 10px;
  font-family: 'Golos Text', sans-serif;
  font-size: 12px;
  color: #9B9589;
}
.lk-review__stars { letter-spacing: 2px; font-size: 14px; line-height: 1; }
.lk-review__stars .on  { color: #C8A84B; }
.lk-review__stars .off { color: #DDD6CC; }

.lk-review__badge {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.lk-review__badge.is-approved { background: #E6F0E9; color: #2D7A4F; }
.lk-review__badge.is-pending  { background: #FFF6DD; color: #8A6D1A; }

.lk-review__text {
  margin: 0;
  font-family: 'Golos Text', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #3A3530;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .lk-review { grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; }
  .lk-review__thumb { width: 64px; height: 64px; }
}

/* ── Структура (дерево партнерів) ── */
.bm-tree-sum { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; }
.bm-tree-sum__num {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 170px; padding: 14px 18px;
  background: #F5F0E8; border-left: 3px solid #1A1A1A;
  font-family: 'Golos Text', sans-serif;
}
.bm-tree-sum__num strong { font-size: 26px; font-weight: 600; color: #1A1A1A; line-height: 1.1; }
.bm-tree-sum__num span   { font-size: 12px; color: #6B6560; }
.bm-tree-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.bm-tree-chip {
  padding: 4px 12px; border: 1px solid #E8E0D4; border-radius: 20px;
  font-family: 'Golos Text', sans-serif; font-size: 12px; color: #3A3530; background: #fff;
}
.bm-tree-chip b { margin-left: 4px; color: #1A1A1A; }
.bm-tree-note  { margin: 0 0 16px; font-family: 'Golos Text', sans-serif; font-size: 12px; color: #9B9589; }
.bm-tree-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.bm-tree-level {
  min-width: 260px; padding: 11px 14px;
  font: 400 14px 'Golos Text', sans-serif; color: #1A1A1A;
  border: 1px solid #E8E0D4; border-radius: 4px; background: #fff; cursor: pointer;
}
.bm-tree-level:focus { outline: none; border-color: #1A1A1A; }
.bm-tree__vals { font: 400 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: #6B6560; white-space: nowrap; }
.bm-tree-search {
  flex: 1 1 260px; width: 100%; max-width: 420px; margin: 0; padding: 11px 14px;
  font: 400 14px 'Golos Text', sans-serif; color: #1A1A1A;
  border: 1px solid #E8E0D4; border-radius: 4px; background: #fff;
}
.bm-tree-search:focus { outline: none; border-color: #1A1A1A; }
.bm-tree-empty { font-family: 'Golos Text', sans-serif; font-size: 14px; color: #6B6560; }

.bm-tree__list { list-style: none; margin: 0; padding: 0; }
.bm-tree__list .bm-tree__list { margin-left: 14px; padding-left: 14px; border-left: 1px solid #E8E0D4; }
.bm-tree__item[hidden] { display: none; }
.bm-tree__row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding: 9px 10px; margin: 2px 0;
  font-family: 'Golos Text', sans-serif; font-size: 14px; color: #1A1A1A;
  border-radius: 4px; cursor: default;
}
summary.bm-tree__row { cursor: pointer; list-style: none; }
summary.bm-tree__row::-webkit-details-marker { display: none; }
summary.bm-tree__row::before {
  content: '+'; flex: 0 0 auto; width: 18px; height: 18px; line-height: 16px; text-align: center;
  border: 1px solid #1A1A1A; border-radius: 3px; font-size: 14px; font-weight: 600; align-self: center;
}
details[open] > summary.bm-tree__row::before { content: '–'; }
.bm-tree__row--leaf { padding-left: 38px; }
summary.bm-tree__row:hover { background: #F5F0E8; }
.bm-tree__name { font-weight: 600; }
.bm-tree__no   { font-size: 12px; color: #9B9589; }
.bm-tree__lvl  { padding: 1px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.bm-tree__lvl--on  { background: #E6F0E9; color: #2D7A4F; }
.bm-tree__lvl--off { background: #F0EEEA; color: #6B6560; }
.bm-tree__meta { flex-basis: 100%; padding-left: 30px; font-size: 12px; color: #6B6560; }
.bm-tree__row--leaf .bm-tree__meta { padding-left: 0; }

@media (max-width: 640px) {
  .bm-tree__list .bm-tree__list { margin-left: 8px; padding-left: 8px; }
  .bm-tree__row { font-size: 13px; padding: 8px 4px; }
}
