.ontech-live-chat {
  --olc-blue: #1689f8;
  --olc-blue-dark: #0873db;
  --olc-ink: #172233;
  position: relative;
  z-index: 3;
  font-family: Manrope, Arial, sans-serif;
}

.ontech-live-chat [hidden] { display: none !important; }

.ontech-live-chat__trigger {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 6px 17px 6px 7px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--olc-blue), var(--olc-blue-dark));
  box-shadow: 0 12px 34px rgba(5, 94, 183, .38);
  cursor: pointer;
  font: 700 13px/1.1 Manrope, Arial, sans-serif;
  transition: transform .18s ease, box-shadow .18s ease;
}

.ontech-live-chat__trigger:hover,
.ontech-live-chat__trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 17px 38px rgba(5, 94, 183, .48);
  outline: none;
}

.ontech-live-chat__trigger-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}

.ontech-live-chat__trigger svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ontech-live-chat__icon-close,
.ontech-live-chat.is-open .ontech-live-chat__icon-open { display: none; }
.ontech-live-chat.is-open .ontech-live-chat__icon-close { display: block; }

.ontech-live-chat__badge {
  position: absolute;
  top: -6px;
  right: -4px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 99px;
  color: #fff;
  background: #ff4b55;
  font-size: 11px;
  line-height: 1;
}

.ontech-live-chat__panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  display: grid;
  width: min(380px, calc(100vw - 28px));
  height: min(610px, calc(100vh - 140px));
  min-height: 440px;
  grid-template-rows: auto minmax(170px, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(15, 39, 67, .12);
  border-radius: 20px;
  color: var(--olc-ink);
  background: #f5f7fa;
  box-shadow: 0 24px 70px rgba(8, 24, 43, .34);
  transform-origin: 90% 100%;
  animation: ontech-chat-in .2s ease-out both;
}

.ontech-live-chat__header {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(135deg, #1689f8 0%, #0875df 100%);
}

.ontech-live-chat__avatar {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  place-items: center;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 50%;
  color: #0d6bc4;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 42, 83, .18);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.ontech-live-chat__person { display: grid; flex: 1; gap: 3px; }
.ontech-live-chat__person strong { font-size: 14px; font-weight: 800; }
.ontech-live-chat__person small { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.86); font-size: 11px; }
.ontech-live-chat__person i { width: 7px; height: 7px; border-radius: 50%; background: #6ff3aa; box-shadow: 0 0 0 3px rgba(111,243,170,.18); }

.ontech-live-chat__close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.1);
  cursor: pointer;
  font: 300 25px/1 Arial, sans-serif;
}
.ontech-live-chat__close:hover { background: rgba(255,255,255,.2); }

.ontech-live-chat__messages {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 14px 12px;
  scrollbar-color: #c6d0db transparent;
  scrollbar-width: thin;
}

.ontech-live-chat__day {
  margin: 0 auto 14px;
  color: #8c98a5;
  font-size: 10px;
  text-align: center;
}

.ontech-live-chat__message { display: flex; margin: 0 0 9px; }
.ontech-live-chat__message--visitor { justify-content: flex-end; }
.ontech-live-chat__message > div {
  display: grid;
  max-width: 82%;
  gap: 4px;
  padding: 10px 12px 7px;
  border-radius: 15px 15px 15px 4px;
  color: #263241;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 38, 62, .08);
  font-size: 13px;
  line-height: 1.43;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ontech-live-chat__message--visitor > div {
  border-radius: 15px 15px 4px 15px;
  color: #fff;
  background: #1689f8;
}
.ontech-live-chat__message small {
  justify-self: end;
  color: #99a3ae;
  font-size: 9px;
}
.ontech-live-chat__message--visitor small { color: rgba(255,255,255,.72); }

.ontech-live-chat__profile {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid #e2e7ed;
  background: #fff;
  transition: padding .2s ease;
}
.ontech-live-chat__profile.is-compact { padding-block: 5px; }
.ontech-live-chat__profile input {
  min-width: 0;
  height: 33px;
  padding: 0 9px;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  outline: none;
  color: #273545;
  background: #f8fafc;
  font: 11px Manrope, Arial, sans-serif;
}
.ontech-live-chat__profile input:focus { border-color: #1689f8; box-shadow: 0 0 0 2px rgba(22,137,248,.1); }

.ontech-live-chat__composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 9px 10px 8px;
  border-top: 1px solid #e2e7ed;
  background: #fff;
}
.ontech-live-chat__composer textarea {
  min-height: 38px;
  max-height: 110px;
  flex: 1;
  resize: none;
  padding: 9px 2px 7px;
  border: 0;
  outline: 0;
  color: #253243;
  background: transparent;
  font: 13px/1.4 Manrope, Arial, sans-serif;
}
.ontech-live-chat__composer button {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #1689f8;
  cursor: pointer;
}
.ontech-live-chat__composer button:hover { background: #0875df; }
.ontech-live-chat__composer button:disabled { opacity: .55; cursor: wait; }
.ontech-live-chat__composer svg { width: 21px; height: 21px; fill: currentColor; }
.ontech-live-chat__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.ontech-live-chat__note {
  min-height: 23px;
  padding: 3px 12px 7px;
  color: #87929e;
  background: #fff;
  font-size: 9px;
  text-align: center;
}
.ontech-live-chat__note.is-error { color: #d33d48; }

.ontech-live-chat__teaser {
  position: absolute;
  right: 0;
  bottom: 64px;
  display: grid;
  width: 270px;
  gap: 3px;
  padding: 14px 35px 14px 16px;
  border: 1px solid #e4e9ef;
  border-radius: 15px 15px 4px 15px;
  color: #263445;
  background: #fff;
  box-shadow: 0 13px 36px rgba(9, 35, 63, .22);
  cursor: pointer;
  animation: ontech-chat-in .22s ease-out both;
}
.ontech-live-chat__teaser strong { font-size: 13px; }
.ontech-live-chat__teaser span { color: #627082; font-size: 11px; line-height: 1.4; }
.ontech-live-chat__teaser-close { position: absolute; top: 7px; right: 7px; border: 0; color: #84909d; background: transparent; cursor: pointer; font-size: 20px; }

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

@media (max-width: 620px) {
  .ontech-live-chat__trigger { min-height: 46px; padding: 5px; }
  .ontech-live-chat__trigger-icon { width: 36px; height: 36px; }
  .ontech-live-chat__trigger-label { display: none; }
  .ontech-live-chat__panel {
    position: fixed;
    right: 8px;
    bottom: 68px;
    left: 8px;
    width: auto;
    height: min(620px, calc(100dvh - 84px));
    min-height: 390px;
    border-radius: 18px;
  }
  .ontech-live-chat__teaser { right: 0; width: min(270px, calc(100vw - 30px)); }
  .ontech-live-chat__profile { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ontech-live-chat__panel,
  .ontech-live-chat__teaser { animation: none; }
}

