/* AI Chat Widget CSS - Version 1.1.2 */
.ai-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.ai-chat-toggle {
  background: #0a6;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  cursor: pointer;
}

.ai-chat-toggle:hover {
  background: #087;
}

.ai-chat-panel {
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 520px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  bottom: 74px;
  right: 20px;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
}

.ai-chat-title {
  font-weight: 600;
}

.ai-chat-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.ai-chat-close:hover {
  opacity: 0.7;
}

.ai-chat-log {
  flex: 1;
  overflow: auto;
  padding: 12px;
  background: #fff;
}

.ai-chat-hint {
  font-size: 12px;
  color: #666;
  padding: 0 12px 8px;
  border-bottom: 1px dashed #eee;
}

.ai-chat-form {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid #eee;
  align-items: stretch;
}

.ai-chat-form input {
  flex: 1 1 auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  min-width: 0;
  outline: none;
  width: 100%;
}

.ai-chat-form input:focus {
  border-color: #0a6;
}

.ai-chat-send {
  background: #0a6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  cursor: pointer;
  flex: 0 0 auto;
  width: 50px;
  flex-shrink: 0;
}

.ai-chat-send:hover {
  background: #087;
}

.ai-chat-msg {
  margin-bottom: 12px;
}

.ai-chat-role {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
}

.ai-chat-bubble {
  background: #f2f2f2;
  border-radius: 12px;
  padding: 10px 12px;
  display: inline-block;
  max-width: 90%;
  white-space: pre-wrap;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ai-user .ai-chat-bubble {
  background: #e8f7f1;
}

.ai-chat-bubble a {
  text-decoration: underline;
  word-break: break-word;
  display: inline;
}

@media (max-width: 480px) {
  .ai-chat-panel {
    height: 70vh;
  }
}.wpcf7 .screen-reader-response {
	position: absolute;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	word-wrap: normal !important;
}

.wpcf7 form .wpcf7-response-output {
	margin: 2em 0.5em 1em;
	padding: 0.2em 1em;
	border: 2px solid #00a0d2; /* Blue */
}

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
	display: none;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #46b450; /* Green */
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	border-color: #dc3232; /* Red */
}

.wpcf7 form.spam .wpcf7-response-output {
	border-color: #f56e28; /* Orange */
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	border-color: #ffb900; /* Yellow */
}

.wpcf7-form-control-wrap {
	position: relative;
}

.wpcf7-not-valid-tip {
	color: #dc3232; /* Red */
	font-size: 1em;
	font-weight: normal;
	display: block;
}

.use-floating-validation-tip .wpcf7-not-valid-tip {
	position: relative;
	top: -2ex;
	left: 1em;
	z-index: 100;
	border: 1px solid #dc3232;
	background: #fff;
	padding: .2em .8em;
	width: 24em;
}

.wpcf7-list-item {
	display: inline-block;
	margin: 0 0 0 1em;
}

.wpcf7-list-item-label::before,
.wpcf7-list-item-label::after {
	content: " ";
}

.wpcf7-spinner {
	visibility: hidden;
	display: inline-block;
	background-color: #23282d; /* Dark Gray 800 */
	opacity: 0.75;
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 100%;
	padding: 0;
	margin: 0 24px;
	position: relative;
}

form.submitting .wpcf7-spinner {
	visibility: visible;
}

.wpcf7-spinner::before {
	content: '';
	position: absolute;
	background-color: #fbfbfc; /* Light Gray 100 */
	top: 4px;
	left: 4px;
	width: 6px;
	height: 6px;
	border: none;
	border-radius: 100%;
	transform-origin: 8px 8px;
	animation-name: spin;
	animation-duration: 1000ms;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

@media (prefers-reduced-motion: reduce) {
	.wpcf7-spinner::before {
		animation-name: blink;
		animation-duration: 2000ms;
	}
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes blink {
	from {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

.wpcf7 [inert] {
	opacity: 0.5;
}

.wpcf7 input[type="file"] {
	cursor: pointer;
}

.wpcf7 input[type="file"]:disabled {
	cursor: default;
}

.wpcf7 .wpcf7-submit:disabled {
	cursor: not-allowed;
}

.wpcf7 input[type="url"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
	direction: ltr;
}

.wpcf7-reflection > output {
	display: list-item;
	list-style: none;
}

.wpcf7-reflection > output[hidden] {
	display: none;
}
