/* WEBNOVA assistant — compact, accessible and mobile-first. */
.floating-actions {
  position: fixed;
  z-index: 45;
  right: 24px;
  bottom: 23px;
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
}

.floating-actions .floating-wa {
  position: static;
  flex: 0 0 auto;
  z-index: auto;
}

.assistant-launcher {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 16px 7px 9px;
  border: 1px solid rgba(223, 212, 255, .32);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #7254dc, #5031a5 65%, #2f637a);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3), 0 0 24px rgba(127, 88, 235, .25);
  cursor: pointer;
  font: 700 11px/1.2 var(--sans, system-ui, sans-serif);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.assistant-launcher:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 13px 32px rgba(0, 0, 0, .35), 0 0 28px rgba(127, 88, 235, .32);
}

.assistant-launcher:focus-visible,
.assistant-dialog button:focus-visible,
.assistant-dialog a:focus-visible,
.assistant-dialog textarea:focus-visible {
  outline: 3px solid #71e2dc;
  outline-offset: 3px;
}

.assistant-launcher-icon,
.assistant-header-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #f6f2ff;
  background: rgba(255, 255, 255, .12);
}

.assistant-launcher-icon svg,
.assistant-header-mark svg {
  width: 22px;
  height: 22px;
}

.assistant-dialog {
  position: fixed;
  inset: auto 24px 88px auto;
  width: min(414px, calc(100vw - 32px));
  height: min(650px, calc(100dvh - 112px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 96px);
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  color: #f4f3fb;
  background: transparent;
}

.assistant-dialog::backdrop {
  background: rgba(3, 5, 13, .48);
  backdrop-filter: blur(3px);
}

.assistant-window {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(190, 173, 255, .3);
  border-radius: 22px;
  background: linear-gradient(150deg, #171a31, #0f1222 70%, #111625);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5), 0 0 34px rgba(113, 82, 213, .15);
  color-scheme: dark;
  font-family: var(--sans, system-ui, sans-serif);
}

.assistant-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(105deg, rgba(111, 80, 203, .22), rgba(53, 164, 160, .08));
}

.assistant-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.assistant-header-mark {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-color: rgba(179, 153, 255, .35);
  background: linear-gradient(145deg, rgba(139, 102, 255, .43), rgba(66, 197, 188, .14));
}

.assistant-header-mark svg {
  width: 25px;
  height: 25px;
}

.assistant-heading-copy {
  min-width: 0;
}

.assistant-heading-copy h2 {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.assistant-heading-copy p {
  margin: 3px 0 0;
  color: #b8bfd2;
  font-size: 10px;
  line-height: 1.4;
}

.assistant-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.assistant-icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  color: #d8d8e7;
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
  font: 500 19px/1 var(--sans, system-ui, sans-serif);
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.assistant-icon-button:hover {
  border-color: rgba(185, 164, 255, .35);
  color: #fff;
  background: rgba(146, 116, 238, .17);
}

.assistant-icon-button:disabled {
  cursor: wait;
  opacity: .5;
}

.assistant-scroll-area {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.assistant-conversation-view {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.assistant-thread {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 16px 14px 12px;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.assistant-message {
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 15px;
  color: #e8e9f1;
  background: rgba(255, 255, 255, .055);
  animation: assistant-message-in .18s ease-out both;
}

.assistant-message--assistant {
  align-self: flex-start;
  border-start-start-radius: 5px;
}

.assistant-message--user {
  align-self: flex-end;
  border-color: rgba(143, 114, 234, .28);
  border-start-end-radius: 5px;
  color: #fff;
  background: linear-gradient(130deg, rgba(104, 73, 190, .43), rgba(71, 73, 146, .35));
}

.assistant-message-text {
  margin: 0;
  color: inherit;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.assistant-message--typing .assistant-message-text {
  color: #b2b8cc;
  font-style: italic;
}

.assistant-quick-actions {
  flex: 0 0 auto;
  padding: 0 14px 14px;
}

.assistant-quick-title {
  margin: 0 0 8px;
  color: #969db5;
  font-size: 10px;
  font-weight: 650;
}

.assistant-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.assistant-chip {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(179, 154, 255, .22);
  border-radius: 999px;
  color: #e8e2ff;
  background: rgba(124, 93, 214, .11);
  cursor: pointer;
  font: 600 10px/1.35 var(--sans, system-ui, sans-serif);
  text-align: start;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.assistant-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(187, 165, 255, .55);
  background: rgba(124, 93, 214, .22);
}

.assistant-footer {
  flex: 0 0 auto;
  padding: 10px 13px 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(7, 9, 18, .42);
}

.assistant-privacy-note {
  margin: 0 2px 8px;
  color: #8991a8;
  font-size: 9px;
  line-height: 1.45;
}

.assistant-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.assistant-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  max-height: 110px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 13px;
  color: #f8f7fc;
  background: rgba(255, 255, 255, .06);
  font: 400 12px/1.55 var(--sans, system-ui, sans-serif);
}

.assistant-input::placeholder,
.assistant-summary-text::placeholder {
  color: #8990a5;
}

.assistant-input:disabled {
  opacity: .65;
}

.assistant-send-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(231, 222, 255, .28);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #7858de, #5134aa);
  box-shadow: 0 6px 18px rgba(84, 58, 166, .25);
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}

.assistant-send-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.assistant-send-button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.assistant-send-button svg {
  width: 18px;
  height: 18px;
}

.assistant-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.assistant-summary-button,
.assistant-summary-back {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  color: #c7c9d8;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  font: 650 10px/1.35 var(--sans, system-ui, sans-serif);
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.assistant-summary-button:hover:not(:disabled),
.assistant-summary-back:hover {
  border-color: rgba(185, 164, 255, .35);
  color: #fff;
  background: rgba(135, 105, 222, .12);
}

.assistant-summary-button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.assistant-status {
  min-height: 14px;
  margin: 7px 2px 0;
  color: #939bb1;
  font-size: 9px;
  line-height: 1.45;
}

.assistant-status[data-state="error"] {
  color: #ffb7bb;
}

.assistant-status[data-state="notice"] {
  color: #e1cc8e;
}

.assistant-summary-view {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 18px 16px;
}

.assistant-summary-view[hidden],
.assistant-conversation-view[hidden],
.assistant-footer[hidden],
.assistant-quick-actions[hidden] {
  display: none !important;
}

.assistant-summary-copy h3 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
}

.assistant-summary-copy p {
  margin: 6px 0 0;
  color: #aab1c5;
  font-size: 11px;
  line-height: 1.65;
}

.assistant-summary-label {
  margin: 0 0 -7px;
  color: #d4d5e0;
  font-size: 10px;
  font-weight: 700;
}

.assistant-summary-text {
  width: 100%;
  min-height: 150px;
  flex: 1;
  resize: vertical;
  padding: 12px;
  border: 1px solid rgba(177, 155, 247, .25);
  border-radius: 13px;
  color: #f3f1fb;
  background: rgba(255, 255, 255, .055);
  font: 400 12px/1.7 var(--sans, system-ui, sans-serif);
}

.assistant-summary-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.assistant-whatsapp-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(154, 236, 211, .32);
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(130deg, #16745f, #105847);
  font: 700 10px/1.3 var(--sans, system-ui, sans-serif);
  text-decoration: none;
  transition: filter .18s ease, transform .18s ease;
}

.assistant-whatsapp-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.assistant-whatsapp-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: .45;
}

.assistant-whatsapp-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.assistant-dialog button,
.assistant-dialog a {
  -webkit-tap-highlight-color: transparent;
}

.assistant-dialog [hidden] {
  display: none !important;
}

@keyframes assistant-message-in {
  from {opacity: 0; transform: translateY(4px)}
  to {opacity: 1; transform: translateY(0)}
}

@media (max-width: 740px) {
  .floating-actions {
    right: 14px;
    bottom: 14px;
    gap: 8px;
  }
  .assistant-launcher {
    width: 48px;
    min-height: 48px;
    padding: 6px;
  }
  .assistant-launcher-label {
    display: none;
  }
  .assistant-launcher-icon {
    width: 34px;
    height: 34px;
  }
  .assistant-dialog {
    inset: auto 12px 78px auto;
    width: calc(100vw - 24px);
    height: min(640px, calc(100dvh - 96px));
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 86px);
  }
  .assistant-window {
    border-radius: 19px;
  }
  .assistant-thread {
    padding: 13px 12px 10px;
  }
  .assistant-footer {
    padding-inline: 11px;
  }
}

@media (max-width: 360px) {
  .floating-actions {
    right: 10px;
    bottom: 10px;
    gap: 6px;
  }
  .assistant-dialog {
    inset-inline: 8px;
    right: 8px;
    bottom: 70px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    height: min(610px, calc(100dvh - 82px));
    max-height: calc(100dvh - 76px);
  }
  .assistant-header {
    padding-inline: 11px;
  }
  .assistant-footer-actions {
    gap: 7px;
  }
  .assistant-summary-button {
    font-size: 9px;
  }
}

@media (max-height: 560px) {
  .assistant-dialog {
    height: calc(100dvh - 105px);
    max-height: calc(100dvh - 92px);
  }
  .assistant-header {
    min-height: 60px;
    padding-block: 8px;
  }
  .assistant-thread {
    padding-block: 10px 7px;
  }
  .assistant-footer {
    padding-block: 7px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-launcher,
  .assistant-dialog button,
  .assistant-dialog a,
  .assistant-message {
    animation: none;
    transition: none;
  }
  .assistant-thread {
    scroll-behavior: auto;
  }
}


.assistant-handoff {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid rgba(127, 232, 206, .38);
  border-radius: 999px;
  color: #e8fff8;
  background: linear-gradient(135deg, rgba(28, 132, 103, .96), rgba(18, 82, 78, .96));
  box-shadow: 0 8px 20px rgba(13, 91, 72, .2);
  font: 700 11px/1.4 var(--sans, system-ui, sans-serif);
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.assistant-handoff:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 10px 24px rgba(13, 91, 72, .3);
}

.assistant-examples {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
}

.assistant-examples-title,
.assistant-examples-note {
  margin: 0;
}

.assistant-examples-title {
  color: #e9e6fb;
  font-size: 11px;
  font-weight: 700;
}

.assistant-examples-note {
  color: #a9afc3;
  font-size: 9px;
  line-height: 1.5;
}

.assistant-examples-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  grid-auto-rows: max-content;
}

.assistant-example-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  height: auto;
  align-self: start;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(190, 173, 255, .2);
  border-radius: 13px;
  background: rgba(255, 255, 255, .045);
}

.assistant-example-open {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px 12px 0 0;
  color: inherit;
  background: transparent;
  line-height: 0;
  text-align: start;
  cursor: zoom-in;
  touch-action: manipulation;
}

.assistant-example-open:focus-visible {
  outline: 2px solid #bda7ff;
  outline-offset: 2px;
}

.assistant-example-open img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
  transition: filter .16s ease;
}

.assistant-example-open:hover img {
  filter: brightness(1.04);
}

.assistant-example-zoom {
  position: absolute;
  inset-inline-end: 8px;
  inset-block-end: 8px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 50%;
  color: #fff;
  background: rgba(16, 19, 40, .78);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .24);
  font: 500 19px/1 var(--sans, system-ui, sans-serif);
}

.assistant-example-card figcaption {
  padding: 6px 7px 7px;
  color: #d4d6e4;
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.assistant-image-viewer {
  width: fit-content;
  max-width: min(86vw, 584px);
  max-height: 84vh;
  box-sizing: border-box;
  margin: auto;
  padding: 42px 12px 12px;
  overflow: hidden;
  border: 1px solid rgba(190, 173, 255, .42);
  border-radius: 18px;
  color: #f5f3ff;
  background: rgba(16, 19, 40, .98);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .58);
}

.assistant-image-viewer[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.assistant-image-viewer::backdrop {
  background: rgba(5, 7, 18, .82);
  backdrop-filter: blur(4px);
}

.assistant-image-viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(calc(86vw - 24px), 560px);
  max-height: calc(84vh - 86px);
  object-fit: contain;
  border-radius: 11px;
}

.assistant-image-viewer__close {
  position: absolute;
  inset-block-start: 7px;
  inset-inline-end: 7px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(190, 173, 255, .34);
  border-radius: 50%;
  color: #f5f3ff;
  background: rgba(255, 255, 255, .08);
  font: 400 22px/1 var(--sans, system-ui, sans-serif);
  cursor: pointer;
}

.assistant-image-viewer__close:focus-visible {
  outline: 2px solid #bda7ff;
  outline-offset: 2px;
}

.assistant-image-viewer__caption {
  max-width: calc(86vw - 24px);
  margin: 0;
  color: #c5c9d8;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 740px) {
  .floating-actions .floating-wa {
    display: grid;
    width: 48px;
    height: 48px;
    min-height: 48px;
    flex: 0 0 48px;
    place-items: center;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(219, 255, 244, .34);
    border-radius: 50%;
    background: linear-gradient(145deg, #21866b, #125f50);
    box-shadow: 0 9px 24px rgba(0, 0, 0, .34), 0 0 17px rgba(44, 189, 148, .16);
  }

  .floating-actions .floating-wa span {
    display: none;
  }

  .floating-actions .floating-wa svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }
}
