/*
 * Public chat base layer.
 *
 * These declarations establish the shared structure and fallbacks. The
 * conversation-first layer below intentionally overrides selected properties;
 * keeping the layers ordered preserves desktop, mobile, and reduced-motion
 * cascade behavior.
 */

.atacsys-chat {
  --chat-ink: #10151b;
  --chat-surface: #10151b;
  --chat-paper: #151d25;
  --chat-panel: #202a33;
  --chat-text: #f5f8fa;
  --chat-muted: #b6c1c9;
  --chat-line: #3a4752;
  --chat-accent: #8fd3ff;
  --chat-accent-ink: #10151b;
  --chat-signal: #f2b84b;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  color: var(--chat-text);
  font:
    14px/1.45 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
}

html[data-theme="light"] .atacsys-chat {
  --chat-surface: #10151b;
  --chat-paper: #e2e7ea;
  --chat-panel: #d6dfe3;
  --chat-text: #10151b;
  --chat-muted: #4e5b66;
  --chat-line: #aebac1;
  --chat-signal: #c9785a;
}

.atacsys-chat-panel[hidden],
.atacsys-chat-journey[hidden],
.atacsys-chat-human-offer[hidden] {
  display: none !important;
}
.atacsys-chat * {
  box-sizing: border-box;
}
.atacsys-chat button,
.atacsys-chat input,
.atacsys-chat textarea {
  font: inherit;
}
.atacsys-chat-toggle {
  border: 1px solid var(--chat-accent);
  border-radius: 999px;
  background: var(--chat-surface);
  color: white;
  padding: 13px 18px;
  font-weight: 800;
  box-shadow: 0 14px 34px #0b0f1360;
  cursor: pointer;
}
.atacsys-chat-toggle::before {
  content: "●";
  color: var(--chat-accent);
  margin-right: 8px;
}
.atacsys-chat-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: min(408px, calc(100vw - 24px));
  max-height: min(720px, calc(100vh - 104px));
  overflow: auto;
  border: 1px solid var(--chat-line);
  border-radius: 16px;
  background: var(--chat-paper);
  box-shadow: 0 26px 80px #0b0f1366;
}
.atacsys-chat-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 16px;
  background: var(--chat-surface);
  color: white;
  border-bottom: 1px solid #34414b;
}
.atacsys-chat-head div {
  display: grid;
  gap: 2px;
}
.atacsys-chat-head strong {
  font-size: 17px;
}
.atacsys-chat-eyebrow {
  color: var(--chat-accent);
  font:
    750 9px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.13em;
}
.atacsys-chat-disclosure {
  color: #c5d1d8;
  font-size: 11px;
}
.atacsys-chat-close {
  border: 0;
  background: transparent;
  color: white;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.atacsys-chat-messages {
  display: grid;
  gap: 9px;
  padding: 14px 14px 8px;
  max-height: 286px;
  overflow: auto;
}
.atacsys-chat-message {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.atacsys-chat-message.assistant {
  justify-self: start;
  border: 1px solid var(--chat-line);
  border-left: 3px solid var(--chat-accent);
  background: var(--chat-panel);
  color: var(--chat-text);
}
.atacsys-chat-message.user {
  justify-self: end;
  background: var(--chat-surface);
  color: white;
}
.atacsys-chat-journey {
  margin: 5px 14px 12px;
  padding: 12px;
  border: 1px solid var(--chat-accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--chat-accent) 12%, var(--chat-paper));
}
.atacsys-chat-journey-stage {
  display: block;
  color: var(--chat-muted);
  font:
    750 9px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.12em;
}
.atacsys-chat-journey-title {
  display: block;
  margin-top: 5px;
  font-size: 15px;
}
.atacsys-chat-journey-summary,
.atacsys-chat-journey-question {
  margin: 7px 0 0;
  color: var(--chat-muted);
  font-size: 12px;
}
.atacsys-chat-journey-question {
  color: var(--chat-text);
}
.atacsys-chat-journey-action {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--chat-accent);
  color: var(--chat-accent-ink);
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
}
.atacsys-chat-quick {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 14px 12px;
}
.atacsys-chat-quick button {
  flex: 0 0 auto;
  border: 1px solid var(--chat-line);
  border-radius: 999px;
  background: transparent;
  color: var(--chat-text);
  padding: 7px 10px;
  cursor: pointer;
}
.atacsys-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px 7px;
  border-top: 1px solid var(--chat-line);
}
.atacsys-chat textarea,
.atacsys-chat input {
  width: 100%;
  border: 1px solid var(--chat-line);
  border-radius: 8px;
  background: var(--chat-paper);
  color: var(--chat-text);
  padding: 9px;
  resize: vertical;
}
.atacsys-chat-send,
.atacsys-chat-lead-send {
  border: 0;
  border-radius: 999px;
  background: var(--chat-accent);
  color: var(--chat-accent-ink);
  padding: 9px 13px;
  font-weight: 850;
  cursor: pointer;
}
.atacsys-chat-send:disabled,
.atacsys-chat-lead-send:disabled {
  opacity: 0.55;
  cursor: wait;
}
.atacsys-chat-privacy {
  display: block;
  padding: 0 14px 10px;
  color: var(--chat-muted);
  font-size: 11px;
}
.atacsys-chat-human {
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  border: 1px solid var(--chat-line);
  border-radius: 999px;
  background: transparent;
  color: var(--chat-text);
  padding: 9px;
  font-weight: 800;
  cursor: pointer;
}
.atacsys-chat-human.suggested {
  border-color: var(--chat-accent);
  background: var(--chat-surface);
  color: white;
}
.atacsys-chat-lead {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-top: 1px solid var(--chat-line);
  background: var(--chat-panel);
}
.atacsys-chat-lead-explanation {
  margin: 0;
  color: var(--chat-muted);
  font-size: 12px;
}
.atacsys-chat-lead label {
  display: grid;
  gap: 4px;
  color: var(--chat-text);
  font-size: 12px;
  font-weight: 750;
}
.atacsys-chat-consent {
  display: block !important;
  font-weight: 500 !important;
}
.atacsys-chat-consent input {
  width: auto;
  vertical-align: middle;
}
.atacsys-chat-trap {
  display: none !important;
}
.atacsys-chat-status {
  min-height: 0;
  margin: 0;
  padding: 0 14px 7px;
  color: var(--chat-muted);
  font-size: 12px;
}
.atacsys-chat-lead .atacsys-chat-status {
  padding: 0;
}
.atacsys-chat button:focus-visible,
.atacsys-chat input:focus-visible {
  outline: 3px solid var(--chat-accent);
  outline-offset: 2px;
}
.atacsys-chat textarea:focus-visible {
  outline: none;
}

@media (max-width: 600px) {
  .atacsys-chat {
    right: 12px;
    bottom: 12px;
  }
  .atacsys-chat-panel {
    position: fixed;
    inset: 12px;
    width: auto;
    max-height: none;
  }
  .atacsys-chat-messages {
    max-height: calc(100vh - 480px);
    min-height: 180px;
  }
  .atacsys-chat-toggle {
    padding: 12px 14px;
  }
}

/* Mobile chat must use the visible viewport, not the layout viewport behind Safari chrome. */
@media (max-width: 600px) {
  .atacsys-chat-panel {
    inset: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    width: auto;
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .atacsys-chat-messages {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .atacsys-chat-quick {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .atacsys-chat-form {
    margin-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atacsys-chat * {
    scroll-behavior: auto !important;
  }
}

/*
 * Conversation-first presentation layer.
 *
 * This layer intentionally stays separate from the base rules above. It only
 * overrides the properties needed by the current public manager while
 * inheriting the remaining fallback, accessibility, and form declarations.
 * Do not merge the layers without a computed-style regression test.
 */
.atacsys-chat {
  --chat-surface: #111920;
  --chat-paper: #162029;
  --chat-panel: #202d37;
  --chat-text: #f4f7f9;
  --chat-muted: #b8c4cb;
  --chat-line: #41515d;
  --chat-close: #ff453a;
}
html[data-theme="light"] .atacsys-chat {
  --chat-surface: #1b242b;
  --chat-paper: #26313a;
  --chat-panel: #303c45;
  --chat-text: #f4f7f9;
  --chat-muted: #c0cbd0;
  --chat-line: #53616a;
}
.atacsys-chat-toggle {
  position: relative;
  width: 46px;
  min-width: 46px;
  min-height: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 0;
  border-color: rgba(143, 211, 255, 0.82);
  border-radius: 999px;
  background-color: #10151b;
  box-shadow: none;
  color: #f4f7f9;
  font-size: 14px;
  font-weight: 780;
  letter-spacing: -0.015em;
  transition:
    width 240ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.atacsys-chat-toggle::before {
  display: none;
}
.atacsys-chat-toggle::after {
  /* The locked mark remains the background; this only pulses its existing
     Ice Blue diagonal, using the same geometry as the canonical asset. */
  content: "";
  position: absolute;
  z-index: 0;
  left: 9px;
  top: 50%;
  width: 28px;
  height: 28px;
  pointer-events: none;
  background: #8fd3ff;
  clip-path: polygon(61.719% 31.055%, 63.867% 34.18%, 39.453% 75.586%, 35.547% 75.586%);
  opacity: 0;
  transform: translateY(-50%);
  animation: atacsys-chat-stripe-flash 4.2s ease-in-out infinite;
}
.atacsys-chat-toggle-label {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-width: max-content;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 150ms ease,
    transform 240ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .atacsys-chat-toggle:hover,
  .atacsys-chat-toggle:focus-visible {
    width: 171px;
    justify-content: flex-start;
    /* Reserve the scaled 28 px mark and its gap before the text. */
    padding-left: 45px;
    border-color: #8fd3ff;
    background-color: #18232c;
    box-shadow: 0 16px 36px #0b0f1370;
  }
  .atacsys-chat-toggle:hover .atacsys-chat-toggle-label,
  .atacsys-chat-toggle:focus-visible .atacsys-chat-toggle-label {
    opacity: 1;
    transform: translateX(0);
  }
}
html[data-theme="light"] .atacsys-chat-toggle {
  border-color: rgba(16, 21, 27, 0.3);
  background-color: #26313a;
}
@media (hover: hover) and (pointer: fine) {
html[data-theme="light"] .atacsys-chat-toggle:hover,
  html[data-theme="light"] .atacsys-chat-toggle:focus-visible {
    border-color: #10151b;
    background-color: #10151b;
  }
}
/* The launcher mark belongs to the button surface itself. This avoids any
   dependency on a nested image, page-wide image rules or hover state. */
.atacsys-chat-toggle {
  background-color: #10151b;
  background-image: url("/assets/brand/atacsys-mark-dark.svg") !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
}
@media (hover: hover) and (pointer: fine) {
  .atacsys-chat-toggle:hover,
  .atacsys-chat-toggle:focus-visible {
    background-position: 9px center;
  }
}
.atacsys-chat-panel {
  width: min(438px, calc(100vw - 24px));
  height: min(660px, calc(100vh - 96px));
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: var(--chat-line);
  border-radius: 22px;
  background: var(--chat-paper);
}
.atacsys-chat-head {
  position: static;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom-color: rgba(143, 211, 255, 0.18);
  background: var(--chat-surface);
}
.atacsys-chat-brand {
  position: relative;
  isolation: isolate;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform-origin: 50% 50%;
  transform-box: border-box;
}
.atacsys-chat-mark {
  position: relative;
  z-index: 0;
  width: 34px;
  height: 34px;
  object-fit: contain;
}
/* Shared atacsys-stripe-flash cadence, isolated so the chat filter never overrides page marks. */
@keyframes atacsys-chat-stripe-flash {
  0%,
  100% {
    opacity: 0.08;
    filter: brightness(1) saturate(1) drop-shadow(0 1px 1px rgba(15, 27, 38, 0.26));
  }
  50% {
    opacity: 1;
    filter: brightness(1.75) saturate(1.2) drop-shadow(0 0 6px rgba(143, 211, 255, 0.78));
  }
}
.atacsys-chat-brand::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background: #8fd3ff;
  clip-path: polygon(61.719% 31.055%, 63.867% 34.18%, 39.453% 75.586%, 35.547% 75.586%);
  opacity: 0;
  transform: translateZ(0);
  animation: atacsys-chat-stripe-flash 4.2s ease-in-out infinite;
}
.atacsys-chat-brand::after {
  inset: 5px;
}
@keyframes atacsys-chat-working-sway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-30deg);
  }
  75% {
    transform: rotate(30deg);
  }
}
/* The mark moves only while the assistant is preparing a reply; its centre remains fixed. */
.atacsys-chat.is-working .atacsys-chat-brand {
  animation: atacsys-chat-working-sway 1.9s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .atacsys-chat-toggle::after,
  .atacsys-chat-brand::after {
    animation: none !important;
    opacity: 0 !important;
  }
  .atacsys-chat.is-working .atacsys-chat-brand {
    animation: none !important;
  }
}
.atacsys-chat-head div {
  min-width: 0;
  gap: 1px;
}
.atacsys-chat-head strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.atacsys-chat-eyebrow {
  color: #8fd3ff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.atacsys-chat-disclosure {
  overflow: hidden;
  color: #aebbc3;
  font-size: 11px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atacsys-chat-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--chat-close);
  font-size: 23px;
}
.atacsys-chat-close:hover,
.atacsys-chat-close:focus-visible {
  border-color: rgba(255, 69, 58, 0.52);
  background: rgba(255, 69, 58, 0.1);
  color: #ff6b63;
}
.atacsys-chat-messages {
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  gap: 18px;
  max-height: none;
  padding: 22px 20px 16px;
  background: var(--chat-paper);
}
.atacsys-chat-message {
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 540;
  line-height: 1.58;
}
.atacsys-chat-message.assistant {
  border: 0;
  background: transparent;
  color: #e8eef0;
}
.atacsys-chat-message.human {
  padding: 10px 12px;
  border: 1px solid rgba(143, 211, 255, 0.5);
  border-radius: 14px 14px 14px 5px;
  background: rgba(143, 211, 255, 0.1);
  color: #f4f7f9;
  font-size: 14px;
  font-weight: 650;
}
.atacsys-chat-message.user {
  max-width: 78%;
  justify-self: end;
  padding: 9px 13px;
  border: 1px solid rgba(226, 231, 234, 0.14);
  border-radius: 17px 17px 6px 17px;
  background: #39444c;
  color: #f5f8fa;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}
.atacsys-chat-journey {
  margin: 0 20px 12px;
  padding: 11px 0 11px 12px;
  border: 0;
  border-left: 3px solid #8fd3ff;
  border-radius: 0;
  background: transparent;
}
.atacsys-chat-journey-stage {
  color: #8fd3ff;
  font-size: 8px;
}
.atacsys-chat-journey-title {
  margin-top: 3px;
  color: #f4f7f9;
  font-size: 14px;
}
.atacsys-chat-journey-summary,
.atacsys-chat-journey-question {
  margin-top: 4px;
  color: #aebbc3;
  font-size: 12px;
  line-height: 1.45;
}
.atacsys-chat-journey-question {
  color: #e8eef0;
}
.atacsys-chat-journey-action {
  width: auto;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 11px;
}
.atacsys-chat-quick {
  flex: 0 0 auto;
  gap: 8px;
  padding: 5px 18px 12px;
  background: var(--chat-paper);
  scrollbar-width: none;
}
.atacsys-chat-quick::-webkit-scrollbar {
  display: none;
}
.atacsys-chat-quick.is-collapsed {
  display: none;
}
.atacsys-chat-quick button {
  min-height: 34px;
  padding: 0 11px;
  border-color: rgba(226, 231, 234, 0.2);
  background: var(--chat-panel);
  color: #e3ebee;
  font-size: 11px;
  font-weight: 700;
}
.atacsys-chat-quick button:hover,
.atacsys-chat-quick button:focus-visible {
  border-color: rgba(143, 211, 255, 0.72);
  color: #f4f7f9;
}
.atacsys-chat-form {
  flex: 0 0 auto;
  grid-template-columns: 36px minmax(0, 1fr) 40px;
  gap: 8px;
  padding: 8px;
  margin: 0 18px;
  border: 1px solid rgba(226, 231, 234, 0.26);
  border-radius: 22px;
  background: #111920;
}
.atacsys-chat textarea {
  min-height: 36px;
  height: 36px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  color: #f4f7f9;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  resize: none;
}
.atacsys-chat textarea::placeholder {
  color: #9eacb4;
  opacity: 1;
}
.atacsys-chat-form:focus-within {
  border-color: rgba(226, 231, 234, 0.42);
  box-shadow: none;
}
.atacsys-chat-quick-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #e8eef0;
  background: #26313a;
  font-size: 23px;
  font-weight: 350;
  line-height: 1;
  cursor: pointer;
}
.atacsys-chat-quick-toggle:hover,
.atacsys-chat-quick-toggle:focus-visible {
  color: #10151b;
  background: #8fd3ff;
}
.atacsys-chat-send {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #8fd3ff;
  border-radius: 50%;
  color: #8fd3ff;
  background: transparent;
}
.atacsys-chat-send svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.atacsys-chat-send:hover,
.atacsys-chat-send:focus-visible {
  color: #10151b;
  background: #8fd3ff;
}
.atacsys-chat-send.is-busy {
  opacity: 0.55;
}
.atacsys-chat-privacy {
  padding: 7px 20px 10px;
  color: #8f9da5;
  background: var(--chat-paper);
  font-size: 9px;
  font-weight: 520;
  line-height: 1.36;
}
.atacsys-chat-human-offer {
  display: grid;
  gap: 6px;
  margin: 0 20px 14px;
  padding: 12px;
  border: 1px solid rgba(143, 211, 255, 0.46);
  border-radius: 12px;
  background: color-mix(in srgb, #8fd3ff 8%, var(--chat-paper));
}
.atacsys-chat-human-offer strong {
  color: #f4f7f9;
  font-size: 13px;
}
.atacsys-chat-human-offer p {
  margin: 0;
  color: var(--chat-muted);
  font-size: 11px;
  line-height: 1.45;
}
.atacsys-chat-human-offer-action {
  justify-self: start;
  min-height: 34px;
  margin-top: 3px;
  padding: 0 12px;
  border: 1px solid rgba(143, 211, 255, 0.72);
  border-radius: 999px;
  color: #10151b;
  background: #8fd3ff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.atacsys-chat-human-offer-action:hover,
.atacsys-chat-human-offer-action:focus-visible {
  background: #b8e7ff;
}
.atacsys-chat-live-human {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--chat-line);
  background: var(--chat-panel);
}
.atacsys-chat-live-human[hidden] {
  display: none !important;
}

/* On cold light pages the manager stays calm and readable, not near-black. */
html[data-theme="light"] .atacsys-chat-panel,
html[data-theme="light"] .atacsys-chat-head,
html[data-theme="light"] .atacsys-chat-messages,
html[data-theme="light"] .atacsys-chat-quick,
html[data-theme="light"] .atacsys-chat-privacy {
  background: #26313a;
}
html[data-theme="light"] .atacsys-chat-panel {
  border-color: #53616a;
}
html[data-theme="light"] .atacsys-chat-head {
  border-bottom-color: rgba(143, 211, 255, 0.28);
}
html[data-theme="light"] .atacsys-chat-form {
  border-color: rgba(244, 247, 249, 0.28);
  background: #1b242b;
}
html[data-theme="light"] .atacsys-chat-quick button,
html[data-theme="light"] .atacsys-chat-live-human {
  background: #303c45;
}
html[data-theme="light"] .atacsys-chat-privacy {
  color: #c0cbd0;
}

@media (max-width: 600px) {
  .atacsys-chat {
    right: 10px;
    bottom: 10px;
  }
  /* Safari zooms a focused control below 16px. Keep the full panel tied to
     the visible viewport while the keyboard is open; the composer stays one
     fixed row and extra text scrolls inside it. */
  .atacsys-chat-panel {
    top: max(8px, env(safe-area-inset-top));
    right: 8px;
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + var(--atacsys-chat-keyboard-offset, 0px));
    left: 8px;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    border-radius: 20px;
    transition:
      top 180ms ease,
      right 180ms ease,
      bottom 180ms ease,
      left 180ms ease,
      border-radius 180ms ease;
  }
  .atacsys-chat-head {
    padding: 14px;
  }
  .atacsys-chat-messages {
    padding: 20px 16px 14px;
  }
  .atacsys-chat-message {
    font-size: 15px;
  }
  .atacsys-chat-quick {
    padding-inline: 14px;
  }
  .atacsys-chat-form {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
    align-items: center;
    margin-inline: 14px;
    overflow: hidden;
  }
  .atacsys-chat-form > textarea {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding-block: 8px;
    overflow-y: auto;
    field-sizing: fixed;
    font-size: 16px;
    line-height: 1.35;
  }
  .atacsys-chat-privacy {
    padding-inline: 16px;
  }
  .atacsys-chat-human-offer {
    margin-inline: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .atacsys-chat-toggle,
  .atacsys-chat-toggle-label,
  .atacsys-chat-panel {
    transition: none;
  }
}
