.pa-chat-home {
  align-items: center;
  background:
    radial-gradient(circle at 10% 10%, rgba(196, 255, 78, 0.14), transparent 32%),
    #11150f;
  border-radius: 22px;
  color: #fff;
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.15fr);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  max-width: 1372px;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  width: calc(100% - 24px);
}

.pa-chat-home__copy h2 {
  color: #fff;
  font-family: var(--display, Georgia, serif);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  margin: 0.7rem 0 1.2rem;
}

.pa-chat-home__copy > p:not(.eyebrow) {
  color: #c5cdc5;
  line-height: 1.7;
  margin: 0;
  max-width: 620px;
}

.pa-chat-home__copy .eyebrow {
  color: var(--lime, #c4ff4e);
}

.pa-chat-home__email {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: inline-block;
  font-size: 0.78rem;
  margin-top: 1.5rem;
  padding-bottom: 0.15rem;
}

.pa-chat {
  background: #fbfaf6;
  border: 1px solid rgba(16, 20, 15, 0.15);
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
  color: #10140f;
  padding: 1.15rem;
}

.pa-chat [hidden] {
  display: none !important;
}

.pa-chat__header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.pa-chat__eyebrow,
.pa-chat__connected {
  align-items: center;
  color: #596158;
  display: flex;
  font-size: 0.65rem;
  font-weight: 800;
  gap: 0.45rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.pa-chat__status {
  background: #40a84d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(64, 168, 77, 0.12);
  display: inline-block;
  height: 8px;
  width: 8px;
}

.pa-chat__title {
  font-family: var(--display, Georgia, serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0.35rem 0 0;
}

.pa-chat__close {
  background: transparent;
  border: 0;
  color: #10140f;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0;
}

.pa-chat__intro {
  color: #596158;
  font-size: 0.83rem;
  line-height: 1.5;
  margin: 0 0 0.9rem;
}

.pa-chat__loading {
  background: #eef3e8;
  border-radius: 8px;
  color: #495247;
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
  padding: 0.65rem 0.8rem;
}

.pa-chat__start,
.pa-chat__composer {
  display: grid;
  gap: 0.7rem;
}

.pa-chat__fields {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pa-chat__start > label,
.pa-chat__fields > label {
  color: #394037;
  display: grid;
  font-size: 0.66rem;
  font-weight: 800;
  gap: 0.3rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.pa-chat input:not([type="checkbox"]),
.pa-chat select,
.pa-chat textarea {
  background: #fff;
  border: 1px solid #d9ddd5;
  border-radius: 9px;
  color: #10140f;
  font: inherit;
  min-height: 44px;
  padding: 0.66rem 0.75rem;
  width: 100%;
}

.pa-chat textarea {
  line-height: 1.45;
  resize: vertical;
}

.pa-chat input:focus,
.pa-chat select:focus,
.pa-chat textarea:focus {
  border-color: #10140f;
  outline: 2px solid rgba(196, 255, 78, 0.5);
  outline-offset: 1px;
}

.pa-chat__consent {
  align-items: flex-start;
  color: #596158 !important;
  display: flex !important;
  flex-direction: row;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  gap: 0.5rem !important;
  letter-spacing: 0 !important;
  line-height: 1.45;
  text-transform: none !important;
}

.pa-chat__consent input {
  margin-top: 0.2rem;
}

.pa-chat__consent a {
  border-bottom: 1px solid currentColor;
}

.pa-chat .button {
  cursor: pointer;
  min-height: 44px;
}

.pa-chat__honeypot {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.pa-chat__conversation {
  display: grid;
  gap: 0.75rem;
}

.pa-chat__connected {
  color: #2c6c35;
}

.pa-chat__messages {
  background: #f0f1ec;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: min(310px, 38vh);
  overflow-y: auto;
  padding: 0.85rem;
  scroll-behavior: smooth;
}

.pa-chat__message {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}

.pa-chat__message--agent {
  align-self: flex-end;
  align-items: flex-end;
}

.pa-chat__message--visitor {
  align-self: flex-start;
}

.pa-chat__bubble {
  background: #fff;
  border-radius: 4px 13px 13px 13px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  font-size: 0.86rem;
  line-height: 1.5;
  padding: 0.65rem 0.8rem;
  white-space: pre-wrap;
}

.pa-chat__message--agent .pa-chat__bubble {
  background: #10140f;
  border-radius: 13px 4px 13px 13px;
  color: #fff;
}

.pa-chat__meta {
  color: #717971;
  font-size: 0.61rem;
  margin-top: 0.22rem;
}

.pa-chat__waiting {
  color: #6e766d;
  font-size: 0.72rem;
  margin: 0;
}

.pa-chat__composer {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
}

.pa-chat__new {
  background: transparent;
  border: 0;
  color: #697067;
  cursor: pointer;
  font-size: 0.7rem;
  justify-self: start;
  padding: 0.15rem 0;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.pa-chat__error {
  background: #f7dfda;
  border: 1px solid #cf8f84;
  border-radius: 8px;
  color: #7d2115;
  font-size: 0.76rem;
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.8rem;
}

.pa-chat-fab {
  align-items: center;
  background: var(--lime, #c4ff4e);
  border: 1px solid #10140f;
  border-radius: 100px;
  bottom: 1.2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
  color: #10140f;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 850;
  gap: 0.55rem;
  letter-spacing: 0.055em;
  padding: 0.9rem 1.15rem;
  position: fixed;
  right: 1.2rem;
  text-transform: uppercase;
  z-index: 1200;
}

.pa-chat-fab__dot {
  background: #238b34;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(35, 139, 52, 0.12);
  height: 8px;
  width: 8px;
}

.pa-chat--floating {
  bottom: 4.65rem;
  max-height: min(640px, calc(100vh - 6rem));
  max-width: 390px;
  overflow-y: auto;
  padding: 1rem;
  position: fixed;
  right: 1rem;
  width: calc(100vw - 2rem);
  z-index: 1199;
}

@media (max-width: 900px) {
  .pa-chat-home {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .pa-chat-home__copy {
    padding: 0.5rem 0.25rem 0;
  }
}

@media (max-width: 520px) {
  .pa-chat-home {
    border-radius: 16px;
    margin-top: 2rem;
    width: calc(100% - 16px);
  }

  .pa-chat-home__copy h2 {
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .pa-chat {
    border-radius: 14px;
    padding: 0.9rem;
  }

  .pa-chat__fields {
    grid-template-columns: 1fr;
  }

  .pa-chat input:not([type="checkbox"]),
  .pa-chat select,
  .pa-chat textarea {
    font-size: 16px;
  }

  .pa-chat__composer {
    grid-template-columns: 1fr;
  }

  .pa-chat__composer .button {
    width: 100%;
  }

  .pa-chat__messages {
    height: min(270px, 36vh);
  }

  .pa-chat-fab {
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .pa-chat--floating {
    bottom: 4.5rem;
    right: 0.75rem;
    width: calc(100vw - 1.5rem);
  }
}
