.ai-promo {
  --ai-promo-pine: #0b4a33;
  --ai-promo-green: #0e8f57;
  --ai-promo-mint: #c9ecd9;
  --ai-promo-marker: #ffd23f;
  --ai-promo-ink: #12352a;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-areas: "copy demo" "action demo";
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 36px;
  row-gap: 16px;
  position: relative;
  margin: 10px 0;
  padding: 24px 30px 26px;
  overflow: hidden;
  background-color: var(--ai-promo-pine);
  color: #ffffff;
  font-family: "Open Sans", Arial, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.ai-promo *,
.ai-promo *::before,
.ai-promo *::after {
  box-sizing: border-box;
}
.ai-promo:hover,
.ai-promo:focus,
.ai-promo:active {
  color: #ffffff;
  text-decoration: none;
}
.ai-promo:focus {
  outline: none;
}
.ai-promo:focus-visible {
  outline: 3px solid var(--ai-promo-marker);
  outline-offset: 3px;
}
/* the site's green under the pine edge, as the filter below it */
.ai-promo::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: var(--ai-promo-green);
}

.ai-promo-copy {
  grid-area: copy;
  align-self: end;
}
.ai-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ai-promo-mint);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.ai-promo-badge-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd23f' d='M4 3h16a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-9l-5 4v-4H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3Cpath fill='%230b4a33' d='M12 6.2l1.25 3.05L16.3 10.5l-3.05 1.25L12 14.8l-1.25-3.05L7.7 10.5l3.05-1.25z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* .ai-promo prefixed: the page's own text rules (.page-content-wrapper p, div) are as specific as one class */
.ai-promo .ai-promo-title {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
/* a sentence per line where there is room */
.ai-promo .ai-promo-title span {
  display: block;
}
.ai-promo .ai-promo-text {
  max-width: 46ch;
  margin: 10px 0 0;
  color: var(--ai-promo-mint);
  font-size: 14px;
  line-height: 1.55;
}

.ai-promo-action {
  grid-area: action;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.ai-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 23px;
  background-color: var(--ai-promo-marker);
  color: var(--ai-promo-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.ai-promo:hover .ai-promo-cta {
  background-color: #ffe27a;
}
.ai-promo:active .ai-promo-cta {
  transform: scale(0.98);
}
.ai-promo-note {
  color: var(--ai-promo-mint);
  font-size: 13px;
  line-height: 1.3;
}

/* ---- the demo: a chat field and what the assistant made of it ---- */
.ai-promo-demo {
  grid-area: demo;
  align-self: center;
  min-width: 0;
}
.ai-promo-field {
  position: relative;
  min-height: 92px;
  padding: 16px 64px 16px 18px;
  border-radius: 14px 14px 14px 4px;
  background-color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 20, 12, 0.28);
}
.ai-promo .ai-promo-q {
  margin: 0;
  color: var(--ai-promo-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
  transition: opacity 0.25s ease;
}
.ai-promo-q[hidden] {
  display: none;
}
.ai-promo-demo.is-clearing .ai-promo-q,
.ai-promo-demo.is-clearing .ai-promo-chip {
  opacity: 0;
}
/* the highlighter: swept left to right once the question is sent */
/* padding only inward of the letters' box, so the space between two marks stays a gap */
.ai-promo mark {
  margin: 0;
  padding: 1px 1px;
  border-radius: 3px;
  background: linear-gradient(var(--ai-promo-marker), var(--ai-promo-marker)) left center / 0% 100% no-repeat;
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.45s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.ai-promo mark.is-on {
  background-size: 100% 100%;
}
.ai-promo-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background-color: var(--ai-promo-green);
  animation: ai-promo-blink 1s steps(1) infinite;
}
@keyframes ai-promo-blink {
  50% {
    opacity: 0;
  }
}
.ai-promo-send {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ai-promo-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.ai-promo-send.is-sent {
  background-color: var(--ai-promo-pine);
  transform: scale(0.86);
}

/* one row, so the banner keeps its height (narrower than 992px a long set fades out at the right edge) */
.ai-promo-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  height: 32px;
  margin-top: 14px;
  overflow: hidden;
}
.ai-promo-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1.3);
}
.ai-promo-chip.is-in {
  opacity: 1;
  transform: none;
}
.ai-promo-chip::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: center / contain no-repeat;
}
.ai-promo-chip.is-car::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd23f' fill-rule='evenodd' d='M4 12.5 5.8 7a2.5 2.5 0 0 1 2.4-1.7h7.6A2.5 2.5 0 0 1 18.2 7l1.8 5.5v6a1 1 0 0 1-1 1h-1.5a1 1 0 0 1-1-1V17h-9v1.5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-6Zm2.4-.5h11.2l-1.3-4.2a1 1 0 0 0-1-.7H8.7a1 1 0 0 0-1 .7L6.4 12ZM7.5 15.4a1.3 1.3 0 1 0 0-2.6 1.3 1.3 0 0 0 0 2.6Zm9 0a1.3 1.3 0 1 0 0-2.6 1.3 1.3 0 0 0 0 2.6Z'/%3E%3C/svg%3E");
}
.ai-promo-chip.is-part::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd23f' fill-rule='evenodd' d='M12 2.5a9.5 9.5 0 1 1 0 19 9.5 9.5 0 0 1 0-19Zm0 6.2a3.3 3.3 0 1 0 0 6.6 3.3 3.3 0 0 0 0-6.6ZM12 4.6a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2Zm0 12.6a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2ZM5.7 10.9a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2Zm12.6 0a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2Z'/%3E%3C/svg%3E");
}
.ai-promo-chip.is-price::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd23f' fill-rule='evenodd' d='M3 4a1 1 0 0 1 1-1h7.6a1 1 0 0 1 .7.3l8.4 8.4a1 1 0 0 1 0 1.4l-7.6 7.6a1 1 0 0 1-1.4 0L3.3 12.3a1 1 0 0 1-.3-.7V4Zm4.5 1.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z'/%3E%3C/svg%3E");
}
.ai-promo-chip.is-code::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd23f' d='M3 5h2.2v14H3zM7 5h1.2v14H7zM10 5h2.4v14H10zM14.2 5h1.2v14h-1.2zM17.2 5h1.2v14h-1.2zM19.8 5H21v14h-1.2z'/%3E%3C/svg%3E");
}
.ai-promo-chip.is-oil::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd23f' d='M12 2.8s-6.5 7-6.5 11.7a6.5 6.5 0 0 0 13 0C18.5 9.8 12 2.8 12 2.8Z'/%3E%3C/svg%3E");
}

@media (max-width: 991px) {
  .ai-promo {
    column-gap: 24px;
    padding: 22px 22px;
  }
  .ai-promo .ai-promo-title {
    font-size: 23px;
  }
  .ai-promo .ai-promo-q {
    font-size: 16px;
  }
  .ai-promo-chips {
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
    mask-image: linear-gradient(90deg, #000 86%, transparent);
  }
}

/* phones: copy, demo, then the button across; the whole banner opens the chat */
@media (max-width: 767px) {
  .ai-promo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "demo" "action";
    row-gap: 14px;
    margin: 10px 0;
    padding: 18px 16px 22px;
  }
  .ai-promo-copy {
    align-self: auto;
  }
  .ai-promo .ai-promo-title {
    margin-top: 8px;
    font-size: 20px;
    line-height: 1.22;
  }
  .ai-promo .ai-promo-title span {
    display: inline;
  }
  .ai-promo .ai-promo-text,
  .ai-promo-note {
    display: none;
  }
  .ai-promo-field {
    min-height: 74px;
    padding: 12px 54px 12px 14px;
    border-radius: 12px 12px 12px 4px;
    box-shadow: 0 10px 22px rgba(0, 20, 12, 0.28);
  }
  .ai-promo .ai-promo-q {
    font-size: 15px;
    line-height: 1.6;
  }
  .ai-promo-send {
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    background-size: 16px;
  }
  .ai-promo-chips {
    height: 30px;
    margin-top: 10px;
  }
  .ai-promo-chip {
    height: 30px;
    padding: 0 12px 0 9px;
    font-size: 12px;
  }
  .ai-promo-action {
    display: block;
  }
  .ai-promo-cta {
    display: flex;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-promo mark,
  .ai-promo-chip,
  .ai-promo-q,
  .ai-promo-send,
  .ai-promo-cta {
    transition: none;
  }
  .ai-promo-caret {
    animation: none;
  }
}

@media print {
  .ai-promo {
    display: none;
  }
}
