/* Hide original Elementor search on ISOTONIC page */
.elementor-2558 .elementor-element-1ce0b88 .e-search-form,
.elementor-2558 .elementor-element-1ce0b88 search.e-search {
  display: none !important;
}

.isotonic-chat {
  width: 100%;
  max-width: 560px;
  margin-top: 10px;
  box-sizing: border-box;
}
.isotonic-chat *,
.isotonic-chat *::before,
.isotonic-chat *::after {
  box-sizing: border-box;
}
.isotonic-chat__log {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.isotonic-chat__bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
}
.isotonic-chat__bubble--assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  max-width: 95%;
}
.isotonic-chat__bubble--user {
  align-self: flex-end;
  background: #ff5e17;
  color: #fff;
  max-width: 90%;
}
.isotonic-chat__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.isotonic-chat__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  padding: 0 18px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  line-height: 48px !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}
.isotonic-chat__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
}
.isotonic-chat__btn {
  flex: 0 0 auto;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  border: none !important;
  border-radius: 999px !important;
  background: #ff5e17 !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  font-family: inherit !important;
  letter-spacing: 0.02em;
  padding: 0 22px !important;
  margin: 0 !important;
  cursor: pointer;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap;
  box-shadow: none !important;
}
.isotonic-chat__btn:hover { background: #e65212 !important; color: #fff !important; }
.isotonic-chat__btn:disabled { opacity: 0.7; cursor: wait; }


  .isotonic-chat__log { max-height: 160px; margin-bottom: 10px; }
  .isotonic-chat__row { gap: 8px; }
  .isotonic-chat__input,
  .isotonic-chat__btn {
    height: 44px;
    min-height: 44px;
    max-height: 44px;
  }
  .isotonic-chat__input {
    font-size: 13px !important;
    line-height: 44px !important;
    padding: 0 14px !important;
  }
  .isotonic-chat__btn {
    padding: 0 16px !important;
    font-size: 13px !important;
  }
}


}

@media (max-width: 767px) {
  .isotonic-chat {
    max-width: 100% !important;
    margin-top: 8px !important;
    padding: 0 !important;
  }
  .isotonic-chat__log {
    max-height: 140px;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 12px;
  }
  .isotonic-chat__bubble {
    font-size: 13px;
    padding: 8px 12px;
  }
  .isotonic-chat__row {
    gap: 8px;
  }
  .isotonic-chat__input,
  .isotonic-chat__btn {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }
  .isotonic-chat__input {
    font-size: 13px !important;
    line-height: 44px !important;
    padding: 0 14px !important;
  }
  .isotonic-chat__btn {
    padding: 0 14px !important;
    font-size: 13px !important;
    flex: 0 0 auto;
  }
}
@media (max-width: 420px) {
  .isotonic-chat__btn { padding: 0 12px !important; min-width: 72px; }
  .isotonic-chat__input { font-size: 12px !important; }
}
