.trahus-chat {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 9998;
  font-family: var(
    --wp--preset--font-family--sans,
    "Instrument Sans",
    sans-serif
  );
  color: #2d2d2d;
}
.trahus-chat__launcher {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: #2e3d24;
  color: #fff;
  padding: 13px 19px;
  font: 600 15px/1.2 inherit;
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.2);
  cursor: pointer;
}
.trahus-chat__launcher:hover,
.trahus-chat__launcher:focus-visible {
  background: #4a5d3a;
  transform: translateY(-1px);
}
.trahus-chat button:focus-visible,
.trahus-chat input:focus-visible,
.trahus-chat a:focus-visible {
  outline: 3px solid #8a9672;
  outline-offset: 3px;
}
.trahus-chat__dialog {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: min(390px, calc(100vw - 24px));
  max-height: min(650px, calc(100vh - 100px));
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedbd2;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(26, 26, 26, 0.25);
}
.trahus-chat__dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #2e3d24;
  color: #fff;
}
.trahus-chat__dialog h2 {
  margin: 0;
  color: inherit;
  font: 500 24px/1.15 var(--wp--preset--font-family--heading, Georgia, serif);
}
.trahus-chat__close {
  border: 0;
  background: transparent;
  color: #fff;
  font: 300 32px/1 sans-serif;
  padding: 4px 8px;
  cursor: pointer;
}
.trahus-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 310px;
  overflow: auto;
  padding: 18px;
  background: #f4efe3;
}
.trahus-chat__message {
  max-width: 88%;
  border-radius: 14px;
  padding: 11px 13px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.trahus-chat__message p {
  margin: 0;
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.55;
}
.trahus-chat__message--user {
  align-self: flex-end;
  background: #4a5d3a;
  color: #fff;
}
.trahus-chat__message--status {
  font-style: italic;
  color: #595959;
}
.trahus-chat__sources {
  border-top: 1px solid #e5e5e5;
  margin-top: 10px;
  padding-top: 8px;
  font-size: 12px;
}
.trahus-chat__sources ul {
  margin: 5px 0 0;
  padding-left: 18px;
}
.trahus-chat__sources a {
	color: #2e3d24;
}
.trahus-chat__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 12px 14px 0;
}
.trahus-chat__actions a {
	display: block;
	border-radius: 9px;
	background: #2e3d24;
	color: #fff;
	padding: 9px 8px;
	text-align: center;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
}
.trahus-chat__actions a:hover {
	background: #4a5d3a;
	color: #fff;
}
.trahus-chat__suggestions {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 14px 0;
  background: #fff;
}
.trahus-chat__suggestions button {
  flex: 0 0 auto;
  border: 1px solid #8a9672;
  border-radius: 999px;
  background: #fff;
  color: #2e3d24;
  padding: 7px 10px;
  font: 600 11px/1.2 inherit;
  cursor: pointer;
}
.trahus-chat form {
  display: flex;
  gap: 8px;
  padding: 12px 14px 8px;
}
.trahus-chat form input[name="message"] {
  min-width: 0;
  flex: 1;
  border: 1px solid #b8b8b8;
  border-radius: 10px;
  padding: 11px 12px;
  font: 14px/1.3 inherit;
}
.trahus-chat form button {
  border: 0;
  border-radius: 10px;
  background: #4a5d3a;
  color: #fff;
  padding: 0 15px;
  font: 600 13px/1 inherit;
  cursor: pointer;
}
.trahus-chat__notice {
  margin: 0;
  padding: 0 14px 13px;
  color: #595959;
  font-size: 10px;
  line-height: 1.35;
}
.trahus-chat__website {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 600px) {
  .trahus-chat {
    right: 12px;
    bottom: 12px;
  }
  .trahus-chat__dialog {
    position: fixed;
    inset: 12px;
    width: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
  }
  .trahus-chat__messages {
    height: auto;
    flex: 1;
  }
  .trahus-chat__launcher {
    padding: 12px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trahus-chat__launcher {
    transform: none !important;
  }
}
