.lanotti-chat {
  position: fixed;
  z-index: 9997;
  right: clamp(14px, 2vw, 30px);
  bottom: clamp(14px, 2vw, 30px);
  color: #1b1917;
  font-family: var(--la-sans, Arial, sans-serif);
}

.lanotti-chat [hidden] { display: none !important; }
.lanotti-chat.has-cookie-offset { bottom: clamp(14px, 2vw, 30px); }
.search-is-open .lanotti-chat,
.menu-is-open .lanotti-chat { display: none; }

.lanotti-chat__trigger {
  position: relative;
  display: flex;
  min-height: 54px;
  padding: 6px 17px 6px 6px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
  background: #6f202a;
  box-shadow: 0 16px 42px rgba(65,26,29,.28);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.lanotti-chat__trigger:hover,
.lanotti-chat__trigger:focus-visible { background: #54171f; box-shadow: 0 20px 52px rgba(65,26,29,.35); transform: translateY(-2px); }
.lanotti-chat__trigger:focus-visible,
.lanotti-chat__header button:focus-visible,
.lanotti-chat__composer button:focus-visible { outline: 3px solid rgba(111,32,42,.24); outline-offset: 3px; }
.lanotti-chat__trigger-icon { display: grid; width: 42px; height: 42px; border-radius: 50%; color: #6f202a; background: #fff8f0; font-family: var(--la-serif, Georgia, serif); font-size: 23px; font-weight: 400; place-items: center; }
.lanotti-chat__trigger-icon { font-family: var(--la-sans, Arial, sans-serif); font-size: 12px; font-weight: 800; letter-spacing: -.03em; box-shadow: inset 0 0 0 1px rgba(111,32,42,.1); }
.lanotti-chat__badge { position: absolute; top: -5px; right: -2px; display: grid; min-width: 22px; height: 22px; padding: 0 6px; border: 2px solid #fff; border-radius: 20px; color: #fff; background: #1b1917; font-size: 10px; letter-spacing: 0; place-items: center; }

.lanotti-chat__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: grid;
  width: min(390px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 120px));
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(45,32,26,.11);
  border-radius: 22px;
  background: #fffdf9;
  box-shadow: 0 30px 90px rgba(37,24,20,.24);
  overflow: hidden;
  transform-origin: right bottom;
  animation: lanotti-chat-in .24s ease both;
}

@keyframes lanotti-chat-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.lanotti-chat__header { display: flex; min-height: 84px; padding: 18px 18px 17px 21px; align-items: center; justify-content: space-between; color: #fff; background: radial-gradient(circle at 100% 0, rgba(255,255,255,.13), transparent 47%), #6f202a; }
.lanotti-chat__header { background: radial-gradient(circle at 88% 10%, rgba(210,164,131,.24), transparent 38%), linear-gradient(135deg, #241c1a 0%, #6f202a 100%); }
.lanotti-chat__header > div { position: relative; padding-left: 17px; }
.lanotti-chat__header p { margin: 0 0 3px; font-family: var(--la-serif, Georgia, serif); font-size: 22px; letter-spacing: .04em; line-height: 1; }
.lanotti-chat__header small { color: rgba(255,255,255,.72); font-size: 10px; letter-spacing: .04em; }
.lanotti-chat__online { position: absolute; top: 7px; left: 0; width: 8px; height: 8px; border: 2px solid rgba(255,255,255,.35); border-radius: 50%; background: #8dd6a8; box-sizing: content-box; }
.lanotti-chat__header button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.11); cursor: pointer; font-size: 25px; font-weight: 300; line-height: 1; }

.lanotti-chat__messages { display: flex; min-height: 0; padding: 22px 18px; flex-direction: column; gap: 11px; background: linear-gradient(180deg, #f7f0e8 0%, #fffaf4 100%); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(111,32,42,.22) transparent; }
.lanotti-chat__message { display: flex; max-width: 84%; flex-direction: column; gap: 4px; animation: lanotti-message-in .22s ease both; }
@keyframes lanotti-message-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.lanotti-chat__message > div { padding: 12px 14px; border-radius: 15px; font-size: 13px; line-height: 1.52; white-space: pre-wrap; overflow-wrap: anywhere; }
.lanotti-chat__message time { padding-inline: 5px; color: #8b8178; font-size: 9px; }
.lanotti-chat__message--manager { align-self: flex-start; }
.lanotti-chat__message--manager > div { border-bottom-left-radius: 4px; background: #fff; box-shadow: 0 5px 18px rgba(60,40,27,.07); }
.lanotti-chat__message--bot > div { position: relative; border: 1px solid rgba(111,32,42,.08); background: linear-gradient(145deg, #fff 0%, #fff8f0 100%); }
.lanotti-chat__message--bot > div::before { display: block; margin-bottom: 5px; color: #7c2731; content: "LANOTTI · ПОМОЩНИК"; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.lanotti-chat__message--client { align-self: flex-end; align-items: flex-end; }
.lanotti-chat__message--client > div { border-bottom-right-radius: 4px; color: #fff; background: #6f202a; }
.lanotti-chat__welcome { margin-bottom: 4px; }

.lanotti-chat__quick { display: flex; width: 100%; margin: 2px 0 5px; flex-wrap: wrap; gap: 7px; animation: lanotti-message-in .22s ease both; }
.lanotti-chat__quick-button { display: inline-flex; min-height: 38px; padding: 8px 12px; align-items: center; justify-content: center; border: 1px solid rgba(111,32,42,.22); border-radius: 999px; color: #5f1b24; background: rgba(255,255,255,.9); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; transition: color .2s ease, background .2s ease, transform .2s ease; }
.lanotti-chat__quick-button:hover,
.lanotti-chat__quick-button:focus-visible { color: #fff; background: #6f202a; outline: none; transform: translateY(-1px); }
.lanotti-chat__quick-button--link::after { margin-left: 6px; content: "↗"; font-size: 12px; }

.lanotti-chat__products { display: grid; width: 100%; gap: 8px; animation: lanotti-message-in .22s ease both; }
.lanotti-chat__product { display: grid; min-height: 74px; padding: 8px; grid-template-columns: 58px 1fr; align-items: center; gap: 11px; border: 1px solid rgba(48,32,26,.1); border-radius: 14px; color: #1b1917; background: rgba(255,255,255,.92); box-shadow: 0 7px 22px rgba(60,40,27,.06); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.lanotti-chat__product:hover { border-color: rgba(111,32,42,.35); transform: translateY(-1px); }
.lanotti-chat__product img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: #eee6dd; }
.lanotti-chat__product span { display: grid; min-width: 0; gap: 5px; }
.lanotti-chat__product strong { font-family: var(--la-serif, Georgia, serif); font-size: 12px; font-weight: 400; line-height: 1.25; }
.lanotti-chat__product small { color: #7c2731; font-size: 10px; font-weight: 700; }

.lanotti-chat__form { position: relative; padding: 14px 14px 12px; border-top: 1px solid rgba(45,32,26,.09); background: #fff; }
.lanotti-chat__name { margin-bottom: 10px; }
.lanotti-chat__name label { display: block; margin: 0 0 5px 3px; color: #746c64; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lanotti-chat__name input { width: 100%; height: 39px; padding: 0 12px; border: 1px solid #ded5cc; border-radius: 10px; background: #fffdfa; font-size: 12px; }
.lanotti-chat__name input:focus,
.lanotti-chat__composer textarea:focus { border-color: #6f202a; outline: none; box-shadow: 0 0 0 3px rgba(111,32,42,.08); }
.lanotti-chat__composer { display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: end; }
.lanotti-chat__composer textarea { width: 100%; min-height: 44px; max-height: 112px; padding: 12px 13px; resize: none; border: 1px solid #ded5cc; border-radius: 12px; background: #fffdfa; font: inherit; font-size: 12px; line-height: 1.5; overflow-y: auto; }
.lanotti-chat__composer button { display: grid; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; color: #fff; background: #1b1917; cursor: pointer; font-size: 21px; place-items: center; transition: background .2s ease, transform .2s ease; }
.lanotti-chat__composer button:hover { background: #6f202a; transform: translateY(-1px); }
.lanotti-chat__form.is-sending .lanotti-chat__composer button { cursor: wait; opacity: .55; }
.lanotti-chat__status { min-height: 13px; margin-top: 7px; padding-inline: 3px; color: #8b8178; font-size: 9px; line-height: 1.4; }
.lanotti-chat__status.is-error { color: #a11e2f; }
.lanotti-chat__privacy { display: grid; margin: 7px 3px 0; grid-template-columns: 14px 1fr; align-items: start; gap: 6px; color: #837870; font-size: 8px; line-height: 1.45; }
.lanotti-chat__privacy input { width: 13px; height: 13px; margin: 0; accent-color: #6f202a; }
.lanotti-chat__privacy a { color: #736860; border-bottom: 1px solid rgba(115,104,96,.35); }
.lanotti-chat__privacy[aria-hidden="true"] { display: none !important; }
.lanotti-chat__trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

@media (max-width: 560px) {
  .lanotti-chat { right: 10px; bottom: 10px; }
  .lanotti-chat.has-cookie-offset { bottom: 132px; }
  .lanotti-chat__panel { bottom: 66px; width: min(390px, calc(100vw - 28px)); height: min(640px, calc(100dvh - 88px)); border-radius: 19px; }
  .lanotti-chat__trigger { min-height: 54px; padding: 6px 14px 6px 6px; }
  .lanotti-chat__trigger-icon { width: 42px; height: 42px; }
  .lanotti-chat__trigger-label { display: block; max-width: 128px; font-size: 9px; line-height: 1.25; }
  .lanotti-chat__badge { right: -5px; }
}

@media (prefers-reduced-motion: reduce) {
  .lanotti-chat__panel,
  .lanotti-chat__message { animation: none; }
  .lanotti-chat__trigger,
  .lanotti-chat__composer button { transition: none; }
}

/* 5.11.1 — accessible chat text without losing the compact premium layout */
.lanotti-chat__trigger,
.lanotti-chat__trigger-label { font-size: 12px; }
.lanotti-chat__header small,
.lanotti-chat__message time,
.lanotti-chat__product small,
.lanotti-chat__name label,
.lanotti-chat__status,
.lanotti-chat__privacy { font-size: 11px; }
.lanotti-chat__message > div { font-size: 14px; }
.lanotti-chat__message--bot > div::before { font-size: 10px; }
.lanotti-chat__product strong { font-size: 14px; }
.lanotti-chat__name input,
.lanotti-chat__composer textarea { font-size: 14px; }

@media (max-width: 560px) {
  .lanotti-chat__panel { right: -2px; width: min(400px, calc(100vw - 16px)); }
  .lanotti-chat__trigger-label { max-width: 150px; font-size: 11px; }
  .lanotti-chat__messages { padding: 18px 14px; }
  .lanotti-chat__form { padding: 13px 12px 11px; }
  .lanotti-chat__name input,
  .lanotti-chat__composer textarea { font-size: 16px; }
}

/* 5.11.7 — readable consultant interface */
.lanotti-chat__trigger, .lanotti-chat__trigger-label { font-size: 13px; line-height: 1.35; }
.lanotti-chat__header small, .lanotti-chat__message time,
.lanotti-chat__product small, .lanotti-chat__name label,
.lanotti-chat__status, .lanotti-chat__privacy { font-size: 12px; line-height: 1.45; }
.lanotti-chat__message > div, .lanotti-chat__product strong { font-size: 15px; }
.lanotti-chat__name input, .lanotti-chat__composer textarea { font-size: 16px; }

/* 5.12.0 — deterministic Telegram sales assistant */
.lanotti-chat__trigger-icon { color: #6f202a; background: linear-gradient(145deg, #fffaf4, #eaded1); font-family: var(--la-serif, Georgia, serif); font-size: 24px; font-weight: 400; box-shadow: inset 0 0 0 1px rgba(111,32,42,.16); }
.lanotti-chat__quick-button { font-size: 14px; }

/* 5.13.2 — round LANOTTI cat mark in the assistant launcher */
.lanotti-chat__trigger-icon {
  position: relative;
  flex: 0 0 42px;
  overflow: hidden;
  background: #fff;
}
.lanotti-chat__trigger-icon img {
	position: absolute;
	top: -1px;
	left: calc(50% - 3px);
	width: 166px !important;
	max-width: none !important;
	height: auto !important;
	transform: translateX(-50%);
}

@media (max-width: 560px) {
  .lanotti-chat__quick { gap: 8px; }
  .lanotti-chat__panel { position: fixed; right: 8px; bottom: 76px; left: 8px; width: auto; max-width: none; }
  .lanotti-chat__quick-button { min-height: 44px !important; padding: 10px 14px !important; font-size: 14px; }
}

/* 5.21.1 — keep the mobile category picker unobstructed */
@media (max-width: 820px) {
  body:has(.shop-category-picker__mobile[open]) .lanotti-chat__trigger {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
  }
}
