.estimator-bot,
.estimator-bot-chat,
.estimator-bot-chat-output,
.estimator-bot-proposal {
	display: flex;
	flex-direction: column;
}

.estimator-bot label,
.estimator-bot input,
.estimator-bot textarea,
.estimator-bot button {
	box-sizing: border-box;
	width: 100%;
}

.estimator-bot-chat-output,
.estimator-bot-pdf-preview,
.estimator-bot-chat,
.estimator-bot-proposal {
	//border: 1px solid gray;
}

.estimator-bot-chat,
.estimator-bot-proposal {
	//margin-bottom: 10px;
	//padding: 10px;
}

.page-id-10569 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.estimator-bot-agent > div,
.estimator-bot-user > div {
	color: white;
	font-weight: bold;
	padding: 5px 8px;
	max-width: 80%;
}

.estimator-bot-agent > div {
	background: #f1f5f9;
	color: #2C3749;
	border-radius: 20px;
	border-bottom-left-radius: 4px;
	margin-left: 10px;
}

.estimator-bot-user > div {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-radius: 20px;
	border-bottom-right-radius: 4px;
	margin-right: 10px;
}

.estimator-bot-user {
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: end;
}

.estimator-bot-chat-submit {
	width: 40px !important;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	flex-shrink: 0;
}

.estimator-bot-chat-submit:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.estimator-bot-chat-input:focus {
  border: 2px solid #764ba2 !important;
  box-shadow: 0px 4px 12px rgba(102, 126, 234, 0.5) !important;
}

.estimator-bot-chat-input {
  padding: 8px 15px !important;
  line-height: 1px;
  border-radius: 20px !important;
  font-size: 16px;
  border: 2px solid transparent !important;
}

.estimator-bot-chat-submit {
  /* make it a perfect circle */
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;

  /* center the arrow pseudo-element */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;

  /* remove any default text (if you had "Submit" in there) */
  font-size: 0;
}

/* draw the white triangle */
.estimator-bot-chat-submit::before {
  content: '';
  display: block;
  /* zero box, but borders form the triangle */
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
  transform: translateX(1px);
}

.estimator-bot-ctrls-ctr {
  display: flex;
  flex-direction: revert;
  align-items: center;
  gap: 12px;
}
.estimator-bot-ctrls-ctr {
  background-color: #f1f5f9;
  padding: 15px;
  border-top: 1px solid #ccc;
  margin-top: 40px;
}

.estimator-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 20px;
	text-align: center;
	position: relative;
	flex-shrink: 0;
}

.estimator-header h2 {
	font-size: 1.2em;
	font-weight: 600;
	margin-bottom: 5px;
	color: white;
}

.estimator-header p {
	font-size: 0.9em;
	opacity: 0.9;
}

.estimator-bot-agent,
.estimator-bot-user,
#proposal-email,
.estimator-bot-chat-input,
.estimator-bot-chat-output,
.estimator-bot-pdf-preview {
	margin-top: 5px;
	margin-bottom: 5px;
}

.estimator-bot-pdf-preview {
	font-family: "Georgia", serif;
	max-width: 794px;
	margin-bottom: 10px;
	background: #fff;
	padding: 10px;
	box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.estimator-bot-pdf-preview h3 {
	margin-top: 1rem;
}

.estimator-disclaimer {
	font-size: 0.8em;
	margin-top: 2rem;
	opacity: 0.6;
}

.estimator-bot-chat-output,
.estimator-bot-pdf-preview {
	max-height: 300px;
	overflow-y: scroll;
}

.estimator-bot {
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.1);
	width: 100%;
	max-width: 700px;
	height: auto;
	max-height: 750px;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	margin: 40px auto !important;
	font-size: 16px;
}

@media screen and (min-width: 768px) {
	.estimator-bot {
		//flex-direction: row;
	}
	
	.estimator-bot-chat-output,
	.estimator-bot-pdf-preview {
		max-height: 450px;
		overflow-y: scroll;
	}
}