.atg-chat-root {
  font:
    400 14px/1.5 Inter,
    Arial,
    sans-serif;
  color: #14284b;
  position: relative;
  z-index: 500;
}
.atg-chat-root * {
  box-sizing: border-box;
}
.atg-chat-root button,
.atg-chat-root input,
.atg-chat-root select {
  font: inherit;
}
.atg-chat-root button,
.atg-chat-root a {
  touch-action: manipulation;
}
.atg-chat-root button {
  cursor: pointer;
}
.atg-chat-root button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.atg-chat-root :focus-visible {
  outline: 3px solid #dfa935;
  outline-offset: 3px;
}
.atg-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border: 1px solid #14284b;
  background: #14284b;
  color: white;
  border-radius: 4px;
  box-shadow: 0 8px 28px #14284b35;
  font-weight: 650 !important;
}
.atg-chat-launcher svg {
  color: #dfa935;
}
.atg-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 86px;
  width: min(410px, calc(100vw - 32px));
  height: min(680px, calc(100dvh - 115px));
  background: white;
  border: 1px solid rgba(20, 40, 75, 0.16);
  box-shadow: 0 18px 80px rgba(11, 26, 51, 0.25);
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
}
.atg-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #14284b;
  color: white;
  padding: 18px 20px;
  flex-shrink: 0;
}
.atg-chat-header p {
  font:
    700 16px/1.3 "Barlow Condensed",
    Arial,
    sans-serif;
  margin: 0 0 5px;
  color: white;
}
.atg-chat-header span {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: #f4f6f9;
}
.atg-chat-header i {
  width: 6px;
  height: 6px;
  background: #dfa935;
  border-radius: 50%;
}
.atg-chat-header button {
  padding: 8px;
  color: white;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
}
.atg-chat-log {
  padding: 18px;
  overflow: auto;
  flex: 1;
  min-height: 0;
  scroll-behavior: auto;
  overscroll-behavior: contain;
}
.atg-chat-message {
  max-width: 92%;
  margin: 0 0 15px;
  padding: 11px 13px;
  background: #f4f6f9;
  border-radius: 3px;
  border-left: 2px solid #dfa935;
}
.atg-chat-message.user {
  margin-left: auto;
  background: #14284b;
  color: white;
  border-left: 0;
}
.atg-chat-message > span {
  display: block;
  color: rgba(20, 40, 75, 0.8);
  font-size: 10px;
  font-weight: 650;
  margin-bottom: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.atg-chat-message.user > span {
  color: #f4f6f9;
}
.atg-chat-message p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: inherit;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.atg-chat-card,
.atg-chat-estimate {
  padding: 18px;
  border: 1px solid rgba(20, 40, 75, 0.16);
  border-top: 3px solid #dfa935;
  margin: 15px 0;
  background: white;
}
.atg-chat-root .atg-chat-kicker {
  margin: 0 0 6px;
  color: #14284b;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
}
.atg-chat-root h3 {
  font:
    700 18px/1.3 "Barlow Condensed",
    Arial,
    sans-serif;
  margin: 0 0 8px;
  color: #14284b;
  letter-spacing: -0.03em;
}
.atg-chat-card > p:not(.atg-chat-kicker) {
  font-size: 12px;
  color: rgba(20, 40, 75, 0.8);
  margin: 0 0 14px;
}
.atg-chat-field {
  display: block;
  margin: 12px 0;
}
.atg-chat-field > span {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: #14284b;
  margin-bottom: 5px;
}
.atg-chat-field input,
.atg-chat-field select {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(20, 40, 75, 0.24);
  background: white;
  color: #14284b;
  padding: 10px;
  border-radius: 2px;
  height: 41px;
  font-size: 12px;
}
.atg-chat-field small {
  font-size: 10px;
  color: rgba(20, 40, 75, 0.8);
  display: block;
  margin-top: 5px;
  line-height: 1.5;
}
.atg-chat-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.atg-chat-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(20, 40, 75, 0.8);
}
.atg-chat-consent input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 2px 0;
  accent-color: #14284b;
}
.atg-chat-consent a {
  color: #14284b;
  text-decoration: underline;
}
.atg-chat-primary {
  display: block;
  width: 100%;
  border: 1px solid #14284b;
  background: #14284b;
  color: white;
  padding: 11px;
  font-weight: 650 !important;
  font-size: 12px !important;
}
.atg-chat-secondary {
  padding: 7px 10px;
  background: white;
  border: 1px solid rgba(20, 40, 75, 0.25);
  color: #14284b;
  font-size: 11px !important;
}
.atg-chat-estimate h3 {
  font-size: 23px;
  white-space: normal;
}
.atg-chat-estimate h3 > span {
  font:
    400 12px Inter,
    Arial,
    sans-serif;
  color: rgba(20, 40, 75, 0.8);
  margin: 0 3px;
}
.atg-chat-estimate ul {
  list-style: none;
  padding: 0;
  margin: 13px 0;
  border-top: 1px solid rgba(20, 40, 75, 0.14);
}
.atg-chat-estimate li {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-size: 11px;
  border-bottom: 1px solid rgba(20, 40, 75, 0.14);
  padding: 8px 0;
  margin: 0;
}
.atg-chat-estimate li strong {
  white-space: nowrap;
}
.atg-chat-root .atg-chat-assumption {
  font-size: 10px;
  color: rgba(20, 40, 75, 0.8);
  margin: 6px 0;
}
.atg-chat-root .atg-chat-disclaimer {
  font-size: 11px;
  color: #14284b;
  font-weight: 650;
  margin: 15px 0 8px;
}
.atg-chat-root .atg-chat-reference {
  font-size: 10px;
  color: rgba(20, 40, 75, 0.8);
  margin: 0 0 12px;
}
.atg-chat-handoff {
  border-top: 1px solid rgba(20, 40, 75, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 10px 16px;
  flex-shrink: 0;
}
.atg-chat-handoff a,
.atg-chat-handoff button {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #14284b;
  font-size: 10px;
  text-decoration: none;
  font-weight: 600;
}
.atg-chat-handoff button {
  padding: 0;
  border: 0;
  background: none;
}
.atg-chat-handoff a:hover {
  text-decoration: underline;
}
.atg-chat-compose {
  display: flex;
  gap: 8px;
  padding: 5px 14px 12px;
  flex-shrink: 0;
}
.atg-chat-compose input {
  min-width: 0;
  flex: 1;
  font-size: 12px;
  padding: 11px;
  border: 1px solid rgba(20, 40, 75, 0.2);
  border-radius: 2px;
  background: white;
  color: #14284b;
}
.atg-chat-compose button {
  display: grid;
  place-items: center;
  width: 43px;
  background: #dfa935;
  color: #14284b;
  border: 1px solid #dfa935;
  border-radius: 2px;
}
.atg-chat-root .atg-chat-footer {
  font-size: 9px;
  color: rgba(20, 40, 75, 0.8);
  text-align: center;
  margin: 0;
  padding: 0 16px 12px;
  flex-shrink: 0;
}
.atg-chat-root .atg-chat-error {
  margin: 12px 0;
  font-size: 12px;
  color: #14284b;
  background: #f4f6f9;
  padding: 10px;
  border-left: 2px solid #dfa935;
}
.atg-chat-root .atg-chat-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: rgba(20, 40, 75, 0.8);
  margin: 12px 0;
}
.atg-chat-progress svg {
  animation: atg-chat-spin 1s linear infinite;
}
.atg-chat-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes atg-chat-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 600px) {
  .atg-chat-launcher {
    bottom: 82px;
    right: 14px;
    padding: 11px 14px;
    font-size: 12px !important;
  }
  .atg-chat-panel {
    right: 10px;
    bottom: 135px;
    width: calc(100vw - 20px);
    height: min(650px, calc(100dvh - 150px));
  }
  .atg-chat-log {
    padding: 12px;
  }
  .atg-chat-header {
    padding: 14px 16px;
  }
  .atg-chat-root input,
  .atg-chat-root select {
    font-size: 16px !important;
  }
  .atg-chat-compose input {
    font-size: 16px !important;
  }
  .atg-chat-launcher span {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .atg-chat-progress svg {
    animation: none;
  }
}

.atg-chat-panel {
  border-radius: 4px;
}
.atg-chat-panel :focus-visible {
  outline-color: #14284b;
}
.atg-chat-header :focus-visible {
  outline-color: #dfa935;
}
