.eventory-help {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0;
}
.eventory-help * { box-sizing: border-box; }
.eventory-help [hidden] { display: none !important; }
.eventory-help__launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 112px;
  height: 56px;
  padding: 0 16px 0 9px;
  border: 1px solid #d8e2e5;
  border-radius: 28px;
  background: #fff;
  color: #17252c;
  box-shadow: 0 8px 28px rgba(24, 27, 44, .14);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.eventory-help__launcher i { display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#137a8e;color:#fff;font-size:17px; }
.eventory-help__launcher:hover { transform: translateY(-2px); border-color: #84bdc7; color: #17252c; box-shadow: 0 12px 32px rgba(24, 27, 44, .2); }
.eventory-help__launcher:focus-visible { color: #17252c; }
.eventory-help__panel {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(390px, calc(100vw - 32px));
  height: min(590px, calc(100dvh - 110px));
  min-height: 320px;
  overflow: hidden;
  border: 1px solid #dfe4ea;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(23, 29, 48, .16), 0 2px 8px rgba(23, 29, 48, .06);
  color: #202438;
  animation: eventory-help-in .2s ease-out;
}
@keyframes eventory-help-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.eventory-help__header {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  min-height: 76px;
  padding: 16px 20px;
  border-bottom: 1px solid #e9edf2;
  background: #f1f8f6;
}
.eventory-help__panel:not(.has-messages) { height: auto; min-height: 0; }
.eventory-help__panel:not(.has-messages) .eventory-help__conversation { flex: none; }
.eventory-help__identity { display: flex; align-items: center; gap: 11px; }
.eventory-help__identity strong { display: block; color: #222039; font-size: 15px; line-height: 1.35; }
.eventory-help__identity small { display: block; margin-top: 2px; color: #687486; font-size: 12px; line-height: 1.4; }
.eventory-help__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #137a8e; color: #fff; font-size: 17px; }
.eventory-help__close { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: #637082; cursor: pointer; }
.eventory-help__close:hover { background: #f2f5f8; color: #24203f; }
.eventory-help__conversation { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 18px 14px; background: #f8faf9; scrollbar-color: #c7d1db transparent; scrollbar-width: thin; }
.eventory-help__bubble {
  max-width: 92%;
  width: fit-content;
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid #e7ebef;
  border-radius: 18px;
  background: #fff;
  color: #283142;
  box-shadow: 0 1px 2px rgba(19, 29, 48, .04);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.eventory-help__bubble--user { margin-left: auto; border-color: #127D83; border-radius: 18px 18px 4px 18px; background: #127D83; color: #fff; }
.eventory-help__bubble--assistant { margin-right: auto; border-radius: 18px 18px 18px 4px; }
.eventory-help__bubble strong { display: block; margin-bottom: 4px; font-size: 13px; }
.eventory-help__bubble-text { margin: 0; white-space: pre-wrap; }
.eventory-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.eventory-help__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
}
.eventory-help__btn:hover { text-decoration: none; }
.eventory-help__btn--primary {
  background: #111C25;
  border-color: #111C25;
  color: #fff;
}
.eventory-help__btn--primary:hover { background: #2A3A48; border-color: #2A3A48; color: #fff; }
.eventory-help__btn--secondary {
  background: #fff;
  border-color: #d5dde4;
  color: #111C25;
}
.eventory-help__btn--secondary:hover { border-color: #127D83; color: #127D83; }
.eventory-help__btn--telegram {
  background: #127D83;
  border-color: #127D83;
  color: #fff;
}
.eventory-help__btn--telegram:hover { background: #0e656a; border-color: #0e656a; color: #fff; }
.eventory-help__cta-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
  padding-top: 12px;
}
.eventory-help__cta-row .eventory-help__btn { width: 100%; }
.eventory-help__eyebrow { margin: 0 0 12px; color: #617487; font-size: 11px; font-weight: 800; letter-spacing: 0; }
.eventory-help__topics { display: grid; gap: 8px; margin: 0 0 14px; }
.eventory-help__topic {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 53px;
  padding: 11px 14px;
  border: 1px solid #e3e9e9;
  border-radius: 15px;
  background: #fff;
  color: #242d3d;
  box-shadow: 0 1px 2px rgba(19, 29, 48, .03);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.eventory-help__topic > i:first-child { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: #eaf5f4; color: #137a8e; font-size: 13px; }
.eventory-help__topic span { flex: 1; }
.eventory-help__topic .eventory-help__chevron { flex: none; width: 9px; color: #a3aeba; font-size: 10px; }
.eventory-help__topic:hover { border-color: #9dc8d7; background: #fafdfe; color: #242d3d; transform: translateY(-1px); }
.eventory-help__bottom { flex: none; padding: 14px 18px 16px; border-top: 1px solid #e7ebef; background: #fff; }
.eventory-help__search { display: flex; align-items: center; min-height: 48px; border: 1px solid #d9e0e7; border-radius: 14px; background: #f7f9fb; }
.eventory-help__search:focus-within { border-color: #1989ab; background: #fff; box-shadow: 0 0 0 3px rgba(25, 137, 171, .12); }
.eventory-help__search-icon { margin-left: 13px; color: #8a96a4; font-size: 13px; }
.eventory-help__search input { flex: 1; min-width: 0; height: 44px; padding: 0 10px; border: 0; outline: 0; background: transparent; color: #202438; font-family: inherit; font-size: 13px; }
.eventory-help__search input::placeholder { color: #7b8795; }
.eventory-help__search button { display: grid; place-items: center; flex: none; width: 38px; height: 38px; margin-right: 4px; border: 0; border-radius: 11px; background: #137a8e; color: #fff; cursor: pointer; }
.eventory-help__search button:hover { background: #0d5868; color: #fff; }
.eventory-help__search button:disabled { opacity: .55; cursor: wait; }
.eventory-help button:focus-visible, .eventory-help a:focus-visible { outline: 2px solid #127D83; outline-offset: 2px; }
@media (max-width: 420px) {
  .eventory-help__cta-row { grid-template-columns: 1fr; }
}
body.eventory-help-open .scroll-top { display: none !important; }
.scroll-top { right: 24px; bottom: 88px; z-index: 1001; }
@media (max-width: 575px) {
  .eventory-help { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .eventory-help__panel { bottom: 63px; width: calc(100vw - 24px); height: min(570px, calc(100dvh - 100px)); }
  .eventory-help__launcher { height: 49px; }
  .scroll-top { right: 12px; bottom: max(73px, calc(env(safe-area-inset-bottom) + 73px)); }
}
/* Event detail sticky ticket bar: lift floating controls above the CTA */
@media (max-width: 991.98px) {
  body:has(.mobile-ticket-bar) .eventory-help {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px) + 12px);
  }
  body:has(.mobile-ticket-bar) .eventory-help__panel {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px) + 63px);
  }
  body:has(.mobile-ticket-bar) .scroll-top {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px) + 72px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .eventory-help__launcher, .eventory-help__topic { transition: none; }
  .eventory-help__panel { animation: none; }
}
