.izohome-chat {
  --izohome-accent: #f97316;
  --izohome-ink: #172033;
  --izohome-muted: #687387;
  --izohome-line: #e8ebf0;
  --izohome-surface: #ffffff;
  color: var(--izohome-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.izohome-chat *,
.izohome-chat *::before,
.izohome-chat *::after {
  box-sizing: border-box;
}

.izohome-chat button,
.izohome-chat textarea,
.izohome-chat input {
  font: inherit;
}

.izohome-chat button {
  cursor: pointer;
}

.izohome-chat svg {
  display: block;
  fill: currentColor;
  height: 22px;
  width: 22px;
}

.izohome-chat .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.izohome-chat--floating {
  bottom: 22px;
  position: fixed;
  z-index: 999999;
}

.izohome-chat--right {
  right: 22px;
}

.izohome-chat--left {
  left: 22px;
}

.izohome-chat__launcher {
  align-items: center;
  background: var(--izohome-accent);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(23, 32, 51, 0.24);
  color: #fff;
  display: flex;
  font-weight: 750;
  gap: 9px;
  min-height: 56px;
  padding: 0 20px;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.izohome-chat__launcher:hover {
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.31);
  transform: translateY(-2px);
}

.izohome-chat__launcher:focus-visible,
.izohome-chat button:focus-visible,
.izohome-chat input:focus-visible,
.izohome-chat a:focus-visible {
  outline: 3px solid #fdba74;
  outline: 3px solid color-mix(in srgb, var(--izohome-accent), white 55%);
  outline-offset: 2px;
}

.izohome-chat.is-open .izohome-chat__launcher {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.izohome-chat__panel {
  background: var(--izohome-surface);
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(23, 32, 51, 0.24);
  display: flex;
  flex-direction: column;
  height: min(680px, calc(100vh - 112px));
  overflow: hidden;
  width: min(400px, calc(100vw - 32px));
}

.izohome-chat__panel[hidden] {
  display: none;
}

.izohome-chat--floating .izohome-chat__panel {
  animation: izohome-chat-enter 180ms ease-out both;
  bottom: 0;
  position: absolute;
}

.izohome-chat--right .izohome-chat__panel {
  right: 0;
}

.izohome-chat--left .izohome-chat__panel {
  left: 0;
}

.izohome-chat--inline {
  margin: 28px auto;
  max-width: 760px;
  width: 100%;
}

.izohome-chat--inline .izohome-chat__panel {
  height: min(720px, 82vh);
  width: 100%;
}

@keyframes izohome-chat-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.izohome-chat__header {
  align-items: center;
  background: var(--izohome-accent);
  background: linear-gradient(125deg, color-mix(in srgb, var(--izohome-accent), #111827 16%), var(--izohome-accent));
  color: #fff;
  display: flex;
  gap: 12px;
  min-height: 74px;
  padding: 13px 16px;
}

.izohome-chat__avatar {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  display: flex;
  height: 45px;
  justify-content: center;
  width: 45px;
}

.izohome-chat__avatar img {
  height: 25px;
  object-fit: contain;
  width: 25px;
}

.izohome-chat__header > div:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.izohome-chat__header strong {
  font-size: 16px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.izohome-chat__header span {
  align-items: center;
  display: flex;
  font-size: 12px;
  opacity: 0.92;
}

.izohome-chat__header span i {
  background: #75f0a0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(117, 240, 160, 0.2);
  height: 7px;
  margin-right: 6px;
  width: 7px;
}

.izohome-chat__close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #fff;
  display: flex;
  height: 38px;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  width: 38px;
}

.izohome-chat__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.izohome-chat__messages {
  background: #f7f8fa;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 15px 22px;
  scroll-behavior: smooth;
}

.izohome-chat__messages.is-positioning-message {
  scroll-behavior: auto;
}

.izohome-chat__message {
  display: flex;
  margin: 0 0 11px;
}

.izohome-chat__message--user {
  justify-content: flex-end;
}

.izohome-chat__bubble {
  background: #fff;
  border: 1px solid var(--izohome-line);
  border-radius: 7px 17px 17px 17px;
  box-shadow: 0 2px 6px rgba(23, 32, 51, 0.04);
  max-width: 88%;
  padding: 10px 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.izohome-chat__message--user .izohome-chat__bubble {
  background: var(--izohome-accent);
  background: color-mix(in srgb, var(--izohome-accent), white 8%);
  border: 0;
  border-radius: 17px 7px 17px 17px;
  color: #fff;
}

.izohome-chat__bubble--rich {
  max-width: 96%;
  white-space: normal;
}

.izohome-chat__bubble--rich p,
.izohome-chat__bubble--rich ul,
.izohome-chat__bubble--rich ol,
.izohome-chat__bubble--rich h3,
.izohome-chat__bubble--rich h4 {
  margin: 0 0 9px;
}

.izohome-chat__bubble--rich > :last-child {
  margin-bottom: 0;
}

.izohome-chat__bubble--rich h3,
.izohome-chat__bubble--rich h4 {
  color: var(--izohome-ink);
  font-size: 14px;
  line-height: 1.35;
}

.izohome-chat__bubble--rich ul,
.izohome-chat__bubble--rich ol {
  padding-left: 20px;
}

.izohome-chat__bubble--rich ul {
  list-style: disc outside;
}

.izohome-chat__bubble--rich ol {
  list-style: decimal outside;
}

.izohome-chat__bubble--rich li {
  display: list-item;
}

.izohome-chat__bubble--rich li + li {
  margin-top: 5px;
}

.izohome-chat__bubble--rich a {
  color: var(--izohome-accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.izohome-chat__bubble--rich .izohome-chat__entity-link {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: inline;
  line-height: inherit;
  margin: 0 2px;
  padding: 0;
  vertical-align: baseline;
  white-space: nowrap;
}

.izohome-chat__entity-link img {
  border-radius: 0;
  display: inline-block;
  height: auto;
  margin: 0 5px 0 0;
  max-height: var(--mention-image-size, 28px);
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
  width: auto;
}

.izohome-chat__entity-link span {
  line-height: inherit;
  vertical-align: baseline;
}

.izohome-chat__table-wrap {
  margin: 2px 0 10px;
  max-width: 100%;
  overflow-x: auto;
}

.izohome-chat__table-wrap table {
  border-collapse: collapse;
  font-size: 12px;
  min-width: 100%;
}

.izohome-chat__table-wrap th,
.izohome-chat__table-wrap td {
  border: 1px solid var(--izohome-line);
  padding: 6px 7px;
  text-align: left;
  vertical-align: top;
}

.izohome-chat__table-wrap th {
  background: #f3f4f6;
  color: var(--izohome-ink);
  font-weight: 750;
  white-space: nowrap;
}

.izohome-chat__question-slider {
  background: #f7f8fa;
  border: 0;
  padding: 7px 15px 11px;
}

.izohome-chat__question-slider[hidden] {
  display: none;
}

.izohome-chat__limit-state {
  background: #fff;
  border-top: 1px solid var(--izohome-line);
  padding: 14px 15px;
  text-align: center;
}

.izohome-chat__limit-state[hidden] {
  display: none;
}

.izohome-chat__limit-state > strong {
  color: var(--izohome-ink);
  display: block;
  font-size: 14px;
}

.izohome-chat__limit-state > p {
  color: var(--izohome-muted);
  font-size: 12px;
  margin: 5px auto 10px;
  max-width: 340px;
}

.izohome-chat__limit-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
}

.izohome-chat__limit-actions a {
  color: var(--izohome-accent);
  font-size: 13px;
  font-weight: 730;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.izohome-chat__limit-actions .izohome-chat__whatsapp {
  align-items: center;
  color: #128c4a;
  display: inline-flex;
  gap: 5px;
}

.izohome-chat__whatsapp svg {
  height: 17px;
  width: 17px;
}

.izohome-chat__question-viewport {
  cursor: grab;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: auto;
  scrollbar-width: none;
  touch-action: pan-y;
  user-select: none;
}

.izohome-chat__question-viewport.is-dragging {
  cursor: grabbing;
}

.izohome-chat__question-viewport::-webkit-scrollbar {
  display: none;
}

.izohome-chat__question-track {
  display: flex;
  gap: 7px;
  width: max-content;
}

.izohome-chat__question-set {
  display: flex;
  flex: none;
  gap: 7px;
}

.izohome-chat__question {
  align-items: center;
  background: #fff;
  border: 1px solid var(--question-border-color, var(--light-darkest, hsl(0 0% 79%)));
  border-radius: var(--question-border-radius, 6px);
  color: var(--question-text-color, var(--text-heading, hsl(240 6% 10%)));
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.25;
  max-width: 280px;
  padding: 8px 10px;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.05);
  text-transform: none;
  white-space: normal;
}

.izohome-chat__question-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.izohome-chat__question:hover:not(:disabled) {
  background: #fff;
}

.izohome-chat__question:disabled,
.izohome-chat__question.is-disabled {
  cursor: wait;
  opacity: 0.55;
}

.izohome-chat__typing .izohome-chat__bubble {
  align-items: center;
  display: flex;
  gap: 4px;
  min-height: 40px;
}

.izohome-chat__typing i {
  animation: izohome-dot 1s infinite ease-in-out;
  background: #9aa2b1;
  border-radius: 50%;
  display: block;
  height: 6px;
  width: 6px;
}

.izohome-chat__typing i:nth-child(2) { animation-delay: 120ms; }
.izohome-chat__typing i:nth-child(3) { animation-delay: 240ms; }

@keyframes izohome-dot {
  0%, 55%, 100% { opacity: 0.35; transform: translateY(0); }
  25% { opacity: 1; transform: translateY(-3px); }
}

.izohome-chat__products {
  display: grid;
  gap: 9px;
  margin: 4px 0 17px;
}

.izohome-chat__product {
  background: #fff;
  border: 1px solid var(--izohome-line);
  border-radius: 15px;
  display: grid;
  gap: 10px;
  grid-template-columns: 21px 68px minmax(0, 1fr);
  padding: 11px;
  position: relative;
}

.izohome-chat__product-select {
  cursor: pointer;
  margin-top: 3px;
}

.izohome-chat__product-select input {
  opacity: 0;
  position: absolute;
}

.izohome-chat__product-select span {
  align-items: center;
  background: #fff;
  border: 1.5px solid #adb4c0;
  border-radius: 6px;
  display: flex;
  height: 19px;
  justify-content: center;
  width: 19px;
}

.izohome-chat__product-select input:checked + span {
  background: var(--izohome-accent);
  border-color: var(--izohome-accent);
}

.izohome-chat__product-select input:checked + span::after {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  height: 8px;
  transform: rotate(45deg) translate(-1px, -1px);
  width: 4px;
}

.izohome-chat__product-select input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--izohome-accent), white 60%);
  outline-offset: 2px;
}

.izohome-chat__product-image {
  align-items: center;
  background: #f5f6f8;
  border-radius: 10px;
  display: flex;
  height: 68px;
  justify-content: center;
  overflow: hidden;
  width: 68px;
}

.izohome-chat__product-image img {
  height: 100%;
  margin: 0;
  object-fit: cover;
  width: 100%;
}

.izohome-chat__product-details {
  min-width: 0;
}

.izohome-chat__product-name {
  color: var(--izohome-ink);
  display: block;
  font-size: 14px;
  font-weight: 730;
  line-height: 1.3;
  margin: 0 0 3px;
  text-decoration: none;
}

.izohome-chat__product-name:hover {
  color: var(--izohome-accent);
}

.izohome-chat__product-price {
  color: var(--izohome-ink);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

.izohome-chat__product-price del {
  color: var(--izohome-muted);
  font-weight: 450;
}

.izohome-chat__calculation {
  color: var(--izohome-muted);
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.35;
  margin-bottom: 9px;
}

.izohome-chat__calculation strong {
  color: var(--izohome-ink);
  font-size: 12px;
}

.izohome-chat__quantity {
  align-items: center;
  display: flex;
  gap: 4px;
}

.izohome-chat__quantity-button {
  align-items: center;
  background: #f3f4f6;
  border: 0;
  border-radius: 7px;
  color: var(--izohome-ink);
  display: flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.izohome-chat__quantity-button svg {
  height: 14px;
  width: 14px;
}

.izohome-chat__quantity input {
  appearance: textfield;
  background: #fff;
  border: 1px solid var(--izohome-line);
  border-radius: 7px;
  color: var(--izohome-ink);
  height: 28px;
  padding: 0 3px;
  text-align: center;
  width: 48px;
}

.izohome-chat__quantity input::-webkit-inner-spin-button,
.izohome-chat__quantity input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.izohome-chat__add-selected {
  align-items: center;
  background: var(--purchase-button, hsl(45 100% 51%));
  border: 0;
  border-radius: 11px;
  color: var(--izohome-ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 730;
  gap: 8px;
  justify-self: center;
  min-height: 43px;
  padding: 9px 14px;
  width: max-content;
}

.izohome-chat__add-selected:hover:not(:disabled) {
  background: var(--purchase-button-hover, hsl(45 100% 46%));
}

.izohome-chat__add-selected i {
  font-size: 14px;
  line-height: 1;
}

.izohome-chat__add-selected:disabled {
  cursor: default;
  opacity: 0.7;
}

.izohome-chat__add-selected.is-added {
  background: var(--color-success, hsl(122 39% 49%));
  color: #fff;
  opacity: 1;
}

.izohome-chat__add-selected.is-adding .fa-circle-notch {
  animation: izohome-cart-spin 0.85s linear infinite;
}

@keyframes izohome-cart-spin {
  to { transform: rotate(360deg); }
}

.izohome-chat__form {
  align-items: flex-end;
  background: #fff;
  border-top: 1px solid var(--izohome-line);
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 12px 13px 8px;
}

.izohome-chat__form textarea {
  background: #f5f6f8;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--izohome-ink);
  flex: 1;
  line-height: 1.4;
  max-height: 112px;
  min-height: 43px;
  outline: 0;
  overflow-y: auto;
  padding: 10px 12px;
  resize: none;
}

.izohome-chat__form textarea:focus,
.izohome-chat__form textarea:focus-visible {
  background: #fff;
  border-color: #fdba74;
  border-color: color-mix(in srgb, var(--izohome-accent), white 40%);
  box-shadow: none !important;
  outline: none !important;
}

.izohome-chat__form textarea::placeholder {
  color: #8c95a4;
}

.izohome-chat__form > button {
  align-items: center;
  background: var(--izohome-accent);
  border: 0;
  border-radius: 12px;
  color: #fff;
  display: flex;
  height: 43px;
  justify-content: center;
  padding: 0;
  width: 43px;
}

.izohome-chat__form > button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.izohome-chat.has-reached-limit .izohome-chat__form textarea,
.izohome-chat.has-reached-limit .izohome-chat__form > button {
  cursor: not-allowed;
}

.izohome-chat__disclaimer {
  background: #fff;
  color: var(--izohome-muted);
  font-size: 10px;
  line-height: 1.35;
  margin: 0;
  padding: 0 15px 10px;
  text-align: center;
}

@media (max-width: 520px) {
  .izohome-chat--floating {
    bottom: 12px;
  }

  .izohome-chat--right { right: 12px; }
  .izohome-chat--left { left: 12px; }

  .izohome-chat__launcher {
    min-height: 52px;
    padding: 0 17px;
  }

  .izohome-chat--floating .izohome-chat__panel {
    height: calc(100dvh - 24px);
    max-height: none;
    width: calc(100vw - 24px);
  }

  .izohome-chat__panel {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .izohome-chat *,
  .izohome-chat *::before,
  .izohome-chat *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
