.atomgo-assistant {
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: calc(100vw - 32px);
  position: fixed;
  right: 22px;
  z-index: 120;
}

.atomgo-assistant-launcher {
  align-items: center;
  align-self: flex-end;
  background: linear-gradient(135deg, #0876dc, #0658ad);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  box-shadow: 0 16px 44px rgba(3, 31, 60, .28);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  padding: 11px 18px 11px 12px;
}

.atomgo-assistant-launcher:hover {
  background: linear-gradient(135deg, #0d84ed, #0764c3);
  transform: translateY(-1px);
}

.atomgo-assistant-launcher:focus-visible,
.atomgo-assistant-close:focus-visible,
.atomgo-assistant-form textarea:focus-visible,
.atomgo-assistant-form button:focus-visible,
.atomgo-contact-card input:focus-visible,
.atomgo-contact-card button:focus-visible {
  outline: 3px solid #7fcaff;
  outline-offset: 3px;
}

.atomgo-assistant-launcher-icon {
  align-items: center;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.atomgo-assistant-launcher-icon svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.atomgo-assistant-panel {
  background: #fff;
  border: 1px solid #c9ddeb;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(3, 26, 50, .3);
  color: #132e49;
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto auto;
  max-height: min(680px, calc(100vh - 112px));
  overflow: hidden;
  width: min(390px, calc(100vw - 32px));
}

.atomgo-assistant-panel[hidden] {
  display: none;
}

.atomgo-assistant-header {
  align-items: center;
  background: #071a33;
  color: #fff;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 17px 18px;
}

.atomgo-assistant-header strong,
.atomgo-assistant-header span {
  display: block;
}

.atomgo-assistant-header strong {
  color: #fff;
  font-size: 15px;
}

.atomgo-assistant-header span {
  color: #b9d9f1;
  font-size: 12px;
  margin-top: 2px;
}

.atomgo-assistant-close {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 42px;
  font: inherit;
  font-size: 24px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.atomgo-assistant-log {
  background: #f4f8fb;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
}

.atomgo-assistant-message {
  border-radius: 15px;
  line-height: 1.5;
  max-width: 88%;
  overflow-wrap: anywhere;
  padding: 11px 13px;
  white-space: pre-wrap;
}

.atomgo-assistant-message p {
  color: inherit;
  font-size: 14px;
  margin: 0;
}

.atomgo-assistant-message--assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #d2e2ed;
  color: #183550;
}

.atomgo-assistant-message--visitor {
  align-self: flex-end;
  background: #086fd1;
  color: #fff;
}

.atomgo-assistant-message--system {
  align-self: stretch;
  background: #fff8e9;
  border: 1px solid #ead8ae;
  color: #5a4519;
  max-width: none;
}

.atomgo-assistant-message a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.atomgo-contact-card {
  align-self: stretch;
  background: #fff;
  border: 1px solid #bfd8e9;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(7, 42, 74, .1);
  color: #173550;
  padding: 14px;
}

.atomgo-contact-card-header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.atomgo-contact-card h3 {
  color: #102e49;
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
}

.atomgo-contact-card-dismiss {
  background: transparent;
  border: 0;
  color: #526a80;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.atomgo-contact-card-intro,
.atomgo-contact-card-privacy,
.atomgo-contact-card-status {
  color: #526a80;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.atomgo-contact-card-intro {
  margin-top: 5px;
}

.atomgo-contact-card-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.atomgo-contact-card-field {
  display: grid;
  font-size: 12px;
  font-weight: 720;
  gap: 4px;
}

.atomgo-contact-card-field input {
  background: #fff;
  border: 1px solid #b9cfdf;
  border-radius: 10px;
  color: #071a33;
  font: inherit;
  font-size: 13px;
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

.atomgo-contact-card-consent {
  align-items: flex-start;
  background: #eef7ff;
  border: 1px solid #c5def0;
  border-radius: 10px;
  display: grid;
  font-size: 11px;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr);
  line-height: 1.4;
  padding: 10px;
}

.atomgo-contact-card-consent input {
  height: 17px;
  margin: 1px 0 0;
  width: 17px;
}

.atomgo-contact-card-consent strong,
.atomgo-contact-card-consent span span {
  display: block;
}

.atomgo-contact-card-consent strong {
  color: #173550;
  font-size: 11px;
}

.atomgo-contact-card-consent span span {
  color: #526a80;
  margin-top: 2px;
}

.atomgo-contact-card-actions {
  display: flex;
}

.atomgo-contact-card-actions[hidden] {
  display: none;
}

.atomgo-contact-card-actions button {
  background: #0873d8;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  min-height: 42px;
  padding: 9px 13px;
}

.atomgo-contact-card-privacy a,
.atomgo-contact-card-status a {
  color: #0568c5;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.atomgo-contact-card-status:empty {
  display: none;
}

.atomgo-contact-card-status:not(:empty) {
  background: #f2f7fa;
  border: 1px solid #d5e2ea;
  border-radius: 9px;
  padding: 9px 10px;
}

.atomgo-contact-card-status[data-tone="success"] {
  background: #edf9f1;
  border-color: #b8dfc3;
  color: #215f35;
}

.atomgo-contact-card-status[data-tone="warning"] {
  background: #fff8e9;
  border-color: #ead8ae;
  color: #624b1e;
}

.atomgo-contact-card-status[data-tone="error"] {
  background: #fff2f2;
  border-color: #e5c2c2;
  color: #7b2d2d;
}

.atomgo-assistant-form {
  background: #fff;
  border-top: 1px solid #dbe6ee;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.atomgo-assistant-compose {
  align-items: end;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.atomgo-assistant-form textarea {
  background: #fff;
  border: 1px solid #b9cfdf;
  border-radius: 12px;
  color: #071a33;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  max-height: 142px;
  min-height: 48px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.atomgo-assistant-form button[type="submit"] {
  align-items: center;
  background: #0873d8;
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  min-width: 70px;
  padding: 10px 13px;
}

.atomgo-assistant-form button[disabled],
.lead-capture-form button[disabled],
.atomgo-contact-card button[disabled] {
  cursor: wait;
  opacity: .58;
}

.atomgo-assistant-status,
.atomgo-assistant-note {
  color: #526a80;
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
}

.atomgo-assistant-status:empty {
  display: none;
}

.atomgo-assistant-note {
  background: #f7fafc;
  border-top: 1px solid #e2eaf0;
  padding: 10px 14px 12px;
}

.atomgo-assistant-note a,
.lead-status a,
.lead-contact-alternative a {
  color: #0568c5;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.commercial-turnstile:empty,
.commercial-turnstile[hidden] {
  display: none;
}

.commercial-turnstile {
  max-width: 100%;
  min-height: 1px;
  overflow: hidden;
  width: 100%;
}

.commercial-honeypot {
  height: 1px !important;
  left: -10000px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  top: auto !important;
  width: 1px !important;
}

.lead-form-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-form-help {
  color: #526a80;
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.lead-privacy-consent,
.lead-marketing-consent {
  align-items: flex-start;
  border-radius: 12px;
  display: grid;
  font-size: 13px;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
  line-height: 1.5;
  padding: 13px;
}

.lead-privacy-consent {
  background: #f5f9fc;
  border: 1px solid #d3e2ec;
}

.lead-marketing-consent {
  background: #eef7ff;
  border: 1px solid #c5def0;
}

.lead-privacy-consent input,
.lead-marketing-consent input {
  height: 18px;
  margin: 2px 0 0;
  width: 18px;
}

.lead-consent-label {
  color: #173550;
  display: block;
  font-weight: 760;
}

.lead-consent-detail {
  color: #526a80;
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 3px;
}

.lead-status {
  border-radius: 10px;
  color: #38536d;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  min-height: 0;
}

.lead-status:not(:empty) {
  background: #f2f7fa;
  border: 1px solid #d5e2ea;
  padding: 12px 14px;
}

.lead-status[data-tone="success"] {
  background: #edf9f1;
  border-color: #b8dfc3;
  color: #215f35;
}

.lead-status[data-tone="warning"] {
  background: #fff8e9;
  border-color: #ead8ae;
  color: #624b1e;
}

.lead-status[data-tone="error"] {
  background: #fff2f2;
  border-color: #e5c2c2;
  color: #7b2d2d;
}

@media (max-width: 760px) {
  .atomgo-assistant {
    bottom: 14px;
    left: 14px;
    max-width: none;
    right: 14px;
  }

  .atomgo-assistant-launcher {
    max-width: 100%;
  }

  .atomgo-assistant-panel {
    border-radius: 18px;
    max-height: calc(100dvh - 92px);
    width: 100%;
  }

  .atomgo-assistant-log {
    min-height: 190px;
  }

  .lead-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-field-full {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .atomgo-assistant-launcher {
    min-height: 50px;
    padding-right: 15px;
  }

  .atomgo-assistant-panel {
    max-height: calc(100dvh - 80px);
  }

  .atomgo-assistant-compose {
    grid-template-columns: minmax(0, 1fr);
  }

  .atomgo-assistant-form button[type="submit"] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atomgo-assistant-launcher {
    transition: none;
  }
}
