/* IrisYarn — редизайн главной ЛК. Блоки .iris-lk рендерятся через top_detail_content (header.php).
   Шрифт наследуется от темы сайта (Alegreya подключается темой — не трогаем).
   Палитра: фиолет #B055C0 / малиновый CTA #D4356C. */

/* ---- слот блоков скрыт: JS переносит .iris-lk в контентную колонку (noscript — показывает на месте) ---- */
#iris-lk-slot{display:none;}

/* ---- отступ сверху всей раскладке кабинета (обе колонки) на главной ЛК ---- */
body.lk-index .container.cabinte-page{padding-top:15px;}

/* ---- прячем вендорные блоки и заголовок ТОЛЬКО на главной ЛК ---- */
body.lk-index .page-top-info,
body.lk-index .personal__main-block--private,
body.lk-index .personal__main-block--account,
body.lk-index .personal__main-block--custom_f73u,
body.lk-index .personal__main-block--links{display:none !important;}

/* ================= наши блоки ================= */
.iris-lk{
  --ir-purple:#B055C0; --ir-purple-d:#8A2C9C; --ir-tint:#F4E7F7; --ir-tint-lite:#FBF3FD;
  --ir-cta:#D4356C; --ir-border:#ececec;
  color:#222; margin:0 0 22px;
}
.iris-lk--shop{margin-top:22px;}   /* отступ после активных заказов */
.iris-lk *{box-sizing:border-box;}
.iris-lk a{text-decoration:none !important; color:inherit;}
.iris-b-svg{width:1em;height:1em;display:block;}

/* профиль */
.iris-b-profile{display:flex;align-items:center;gap:13px;padding:12px 16px;margin:0 0 20px;
  background:#fff;border:1px solid var(--ir-border);border-radius:16px;}
.iris-b-avatar{flex:0 0 auto;width:52px;height:52px;border-radius:50%;background:var(--ir-tint);
  color:var(--ir-purple-d);display:flex;align-items:center;justify-content:center;font-size:21px;font-weight:500;}
.iris-b-profile__name{font-size:23px;font-weight:500;line-height:1;}
.iris-b-profile__go{margin-left:auto;display:flex;align-items:center;gap:5px;color:#555;font-size:18px;font-weight:500;white-space:nowrap;}
.iris-b-profile__go .fa{color:#c2a5cc;font-size:20px;}

/* заголовок секции */
.iris-b-sec{display:flex;align-items:center;gap:9px;margin:0 2px 12px;}
.iris-b-sec__ic{font-size:22px;color:var(--ir-purple);}
.iris-b-sec__t{font-size:21px;font-weight:500;}

/* весь блок «Бонусы и выгода» — выделен контейнером */
.iris-b-bonus{background:var(--ir-tint-lite);border:1px solid #ecd6f3;border-radius:20px;
  padding:14px 13px 15px;margin:0 0 22px;}
.iris-b-bonus .iris-b-sec{margin-bottom:13px;}

/* плитки */
.iris-b-tiles{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:10px;}
.iris-b-tile{background:#fff;border:1px solid var(--ir-border);border-radius:14px;padding:13px;
  display:flex;flex-direction:column;gap:10px;}
.iris-b-tile__top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-height:44px;}
.iris-b-ic{flex:0 0 auto;width:44px;height:44px;border-radius:12px;background:var(--ir-tint);color:var(--ir-purple);
  display:flex;align-items:center;justify-content:center;font-size:22px;}
.iris-b-num{font-size:27px;font-weight:700;color:var(--ir-purple-d);line-height:1.05;}
.iris-b-tile__name{font-size:17px;font-weight:500;line-height:1.15;margin-top:auto;}

/* «Заказы и товары» */
.iris-b-grouplabel{font-size:14px;letter-spacing:.04em;color:#9a9a9a;margin:0 2px 10px;}
.iris-b-shoptiles{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:10px;margin-bottom:10px;}
.iris-b-tile--shop{background:var(--ir-tint-lite);border-color:#ecd6f3;}
.iris-b-tile--shop .iris-b-tile__name{color:var(--ir-purple-d);}
.iris-b-tile--shop .iris-b-ic .iris-b-svg{width:26px;height:26px;}

.iris-b-list{background:#fff;border:1px solid var(--ir-border);border-radius:16px;overflow:hidden;}
.iris-b-row{display:flex;align-items:center;gap:14px;padding:15px 14px;border-bottom:1px solid #eee;}
.iris-b-row:last-child{border-bottom:0;}
.iris-b-row__ic{font-size:24px;color:var(--ir-purple);width:28px;text-align:center;}
.iris-b-row__name{flex:1 1 auto;min-width:0;font-size:19px;font-weight:500;}
.iris-b-row__cnt{font-size:19px;font-weight:500;color:#333;}
.iris-b-row__chev{font-size:22px;color:#c9c9c9;}

/* десктоп: плитки бонусов в ряд + карточки заказов уже (не на всю ширину колонки) */
@media (min-width:768px){
  .iris-b-tiles{grid-template-columns:repeat(4,1fr);}
  body.lk-index .personal__main-block--orders .swiper-slide{width:340px !important;}
}

/* ================= вендорные блоки: активные заказы + оцените товары (только главная ЛК) ================= */
/* пустой блок «Баннеры» убираем — из-за него контент был ниже левого меню */
body.lk-index .personal__main-block--banners{display:none !important;}

/* заголовки секций — крупнее, с иконкой и в палитре */
body.lk-index .main-block__title{font-size:21px !important;font-weight:500 !important;cursor:pointer;}
body.lk-index .main-block__title-inner{display:flex;align-items:center;gap:8px;}
body.lk-index .main-block__title-inner > *{margin:0 !important;}      /* убираем auto-отступ — стрелка ближе к счётчику */
body.lk-index .main-block__link{margin-left:2px !important;}
body.lk-index .personal__main-block--orders .main-block__title-inner::before,
body.lk-index .personal__main-block--votes .main-block__title-inner::before{
  font-family:'FontAwesome';font-weight:400;font-size:22px;line-height:1;color:#B055C0;
}
body.lk-index .personal__main-block--orders .main-block__title-inner::before{content:"\f187";}
body.lk-index .personal__main-block--votes .main-block__title-inner::before{content:"\f005";}
body.lk-index .main-block__title-count{color:#8a8a8a !important;}

/* карточки активных заказов — нутро пересобрано в JS (.iris-order), выровнено по левому краю */
/* карточки по высоте контента, а не растянуты на весь слайдер (убираем пустоту) */
body.lk-index .personal__main-block--orders .swiper-wrapper{align-items:flex-start !important;}
body.lk-index .orders__order,
body.lk-index .orders__order__inner{height:auto !important;}
body.lk-index .iris-order{display:flex;flex-direction:column;gap:5px;}
body.lk-index .iris-order__title{font-size:18px;font-weight:700;color:#222;line-height:1.25;}
body.lk-index .iris-order__unpaid{font-size:15px;font-weight:500;color:#e0483d;}
body.lk-index .iris-order__status{font-size:16px;color:#8a8a8a;line-height:1.3;}
body.lk-index .iris-order__status.iris-green{color:#1a9e5a;}
/* вязальный прогресс-бар (диагональные стежки) — на всю ширину карточки */
body.lk-index .iris-order .iris-knitbar{margin-top:9px;}
body.lk-index .iris-knitbar{height:10px;border-radius:6px;overflow:hidden;
  background:repeating-linear-gradient(-45deg,#e7e0ea 0 4px,#f1ecf3 4px 8px);}
body.lk-index .iris-knitbar i{display:block;height:100%;border-radius:6px;min-width:16px;
  background:repeating-linear-gradient(-45deg,#B055C0 0 4px,#C97FD6 4px 8px);}
/* меньше пустоты под активными заказами */
body.lk-index .personal__main-block--orders{margin-bottom:0 !important;}
body.lk-index .orders--slider__wrap{margin-bottom:0 !important;}
