/* ===============================
   ROOT / PANEL
================================ */
.lc.lc--embed{
  position: relative;
  width: 100%;
  height: auto;
  color: #111;
  -webkit-text-size-adjust: 100%;
}

.lc *{ box-sizing: border-box; }

.lc__panel{
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 16px;
  overflow: visible;
}

/* ===============================
   BODY (NO INTERNAL SCROLL)
================================ */
.lc__body{
  position: relative;
  height: auto;
  overflow: visible;
  padding: 72px 16px 50px 16px;
  background: #fafafa;
}

/* ===============================
   HEADER
================================ */
.lc__header{
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 200;
  background: #2b2a28;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.lc__headLeft{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lc__avatar{
  width: 44px;
  height: 44px;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}

.lc__avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  border-radius: 50%;
}

.lc__online{
  position:absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,.06);
}

.lc__title{ min-width: 0; }

.lc__name{
  font-family: 'Medium';
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  color: #fafafa;
  text-overflow: ellipsis;
}

.lc__role{
  margin-top: 3px;
  font-size: 13px;
  color: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc__headBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: #41a0da;
  color: #fff;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}
.lc__headBtn:hover{ filter: brightness(0.98); }

/* ===============================
   MESSAGES WRAP
================================ */
.lc__messages{
  padding: 18px 16px 20px;
  max-width: 980px;
  margin: 0 auto;
}

/* ===============================
   MESSAGE
================================ */
.lc__msg{
  display:flex;
  margin: 14px 0;
  max-width: 100%;
}

.lc__msg--me{ justify-content:flex-end; }

.lc__bubble{
  max-width: 92%;
  background: #fff;
  border-radius: 0px 18px 18px 18px;
  padding: 16px 16px;
  box-shadow: 0px 3px 10px rgba(38, 36, 60, 0.07);
  font-size: 16px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.lc__msg--me .lc__bubble{
  background: #111827;
  color: #fff;
  border-radius: 18px 0px 18px 18px;
  padding: 12px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  max-width: min(78%, 360px);
}

.lc__meta{
  margin-top: 10px;
  font-size: 12px;
  opacity: .55;
}

/* typing */
.lc__typing{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 13px;
  color: rgba(17,17,17,.6);
}
.lc__dots{ display:inline-flex; gap: 4px; }
.lc__dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(17,17,17,.55);
  animation: lc-bounce 1s infinite ease-in-out;
}
.lc__dot:nth-child(2){ animation-delay: .12s; }
.lc__dot:nth-child(3){ animation-delay: .24s; }
@keyframes lc-bounce{
  0%,80%,100%{ transform: translateY(0); opacity:.35; }
  40%{ transform: translateY(-4px); opacity:.9; }
}

/* ===============================
   CARDS GRID (OFFERS)
================================ */
.lc__cards{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* ✅ на больших 3 */
  gap: 14px;
}

/* чтобы карточки точно не вылазили */
.lc__card, .lc__card *{ max-width: 100%; }

.lc__card{
  text-decoration: none;
  color: inherit;
  position: relative;
  border: 2px solid transparent;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 16px 36px rgba(0,0,0,.08);
  transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease;
  min-width: 0;
}

.lc__card:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(0,0,0,.10);
}

.lc__cardImgWrap{
  width: 100%;
  aspect-ratio: 1 / 1;          /* ✅ квадрат */
  overflow: hidden;
  background: #f1f5f9;
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0;                    /* ✅ убрали внешние отступы */
  padding: 0;                   /* ✅ убрали внутренние отступы */
}

.lc__cardImgWrap img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lc__cardText{ margin-top: 12px; min-width: 0; }

.lc__cardTitle{
  font-weight: 900;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  margin: 0;              /* ✅ убрали левые дефолтные отступы */
  padding: 0;
}

.lc__cardSub{
  margin-top: 8px;
  font-size: 15px;
  color: rgba(17,17,17,.65);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ===============================
   CHOICES
================================ */
.lc__choices{
  margin-top: 2px;
  display: grid;
  gap: 10px;
}

.lc__choiceBtn{
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 14px 46px;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
  position: relative;
  overflow-wrap: anywhere;
}

.lc__choiceBtn::before{
  content:"";
  position:absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(17,17,17,.25);
  background: #fff;
}

.lc__choiceBtn.is-selected::before{
  border-color: #ef4444;
  box-shadow: inset 0 0 0 5px #ef4444;
}

/* ===============================
   MOBILE ADAPTIVE
================================ */

@media (max-width: 480px){
  .lc__body{ padding-top: 64px; }

  .lc__header{
    height: 64px;
    padding: 10px 12px;
    gap: 10px;
  }

  .lc__avatar{ width: 40px; height: 40px; }
  .lc__name{ font-size: 15px; }
  .lc__role{ font-size: 12px; }

  .lc__headBtn{
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 10px;
  }

  .lc__messages{ padding: 14px 12px 18px; }

  .lc__bubble{
    font-size: 15px;
    padding: 14px 14px;
  }

  .lc__msg--me .lc__bubble{
    max-width: 86%;
    padding: 11px 14px;
  }

  .lc__cards{
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* ✅ на средних 2 */
    gap: 10px;
  }

  .lc__card{
    padding: 12px;
    border-radius: 16px;
  }

  .lc__cardImgWrap{
    border-radius: 12px;
  }

  .lc__cardTitle{ font-size: 16px; }
  .lc__cardSub{ font-size: 14px; }

  .lc__choiceBtn{
    font-size: 15px;
    padding: 12px 12px 12px 44px;
    border-radius: 14px;
  }
}

@media (max-width: 360px){
  .lc__cards{
    grid-template-columns: 1fr; /* ✅ на совсем мелких 1 */
  }
  .lc__cardTitle{ font-size: 16px; }
  .lc__cardSub{ font-size: 14px; }
}
/* OFFER GRID */
.lc__cards{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

/* OFFER CARD */
.lc__card{
  position:relative;
  display:block;
  background:#fff;
  border-radius:18px;
  padding:14px;
  text-decoration:none;
  color:#111;
  box-shadow:0 16px 36px rgba(0,0,0,.08);
}

.lc__cardImgWrap{
  width:100%;
  aspect-ratio:1/1;
  background:#f1f5f9;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.lc__cardImgWrap img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.lc__cardText{
  margin-top:12px;
}

.lc__cardTitle{
  font-size:18px;
  font-weight:900;
  line-height:1.15;
}

.lc__cardSub{
  margin-top:6px;
  font-size:14px;
  color:rgba(17,17,17,.65);
  font-weight:700;
}

/* BUTTON */
.lc__cardBtn{
  margin-top:14px;
  background:#111827;
  color:#fff;
  text-align:center;
  padding:12px 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:800;
  pointer-events:none;
}

/* BADGE */
.lc__badge{
  position:absolute;
  top:12px;
  right:12px;
  background:#ef4444;
  color:#fff;
  font-size:12px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}

/* RESPONSIVE */
@media(max-width:768px){
  .lc__cards{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:420px){
  .lc__cards{ grid-template-columns:1fr; }
}
