/* A separate advertising surface, outside the assistant answer and sources. */
.chat-ad {
  --ad-accent: #be1920;
  --ad-wash: #fff8f5;
  width: min(100%, 560px);
  min-width: 0;
  margin: 26px auto 14px;
  color: #242824;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-align: left;
}
.chat-ad[data-chat-ad="bmw"] { --ad-accent: #15466a; --ad-wash: #f3f6f8; }
.chat-ad[data-chat-ad="skip"] { --ad-accent: #194a87; --ad-wash: #f5f8ee; }
.chat-ad[data-chat-ad="logo-seguros"] { --ad-accent: #325414; --ad-wash: #f5f9e9; }
.chat-ad[data-chat-ad="compal"] { --ad-accent: #386228; --ad-wash: #fff8e9; }
.chat-ad[data-chat-ad="mimosa"] { --ad-accent: #145b85; --ad-wash: #f1f7fa; }
.chat-ad[data-chat-ad="kinder"] { --ad-accent: #ab2428; --ad-wash: #fff6ed; }
.chat-ad-label {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: 2px;
  color: #6e6b65;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .02em;
}
.chat-ad-label strong { font-weight: 500; }
.chat-ad-label span[aria-hidden] { padding: 0 5px; }
.chat-ad-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #6e6b65;
  background: transparent;
  cursor: pointer;
}
.chat-ad-close:hover { color: #242824; background: #eae5de; }
.chat-ad-creative {
  overflow: hidden;
  border: 1px solid #24282412;
  border-radius: 20px;
  background: var(--ad-wash);
  box-shadow: 0 4px 16px #24282405;
}
.chat-ad-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.9;
  background: var(--ad-wash);
}
.chat-ad-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chat-ad-photo img[hidden] { display: none; }
.chat-ad-brand {
  position: absolute;
  left: 16px;
  top: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 13px;
  border-radius: 8px;
  background: #fffffff2;
  color: var(--ad-accent);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.04em;
  box-shadow: 0 2px 12px #00000008;
}
.chat-ad[data-chat-ad="bmw"] .chat-ad-brand { letter-spacing: .09em; font-weight: 700; }
.chat-ad-copy { padding: 21px 24px 23px; }
.chat-ad-category {
  display: block;
  color: var(--ad-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.chat-ad-copy h3 {
  max-width: 23ch;
  margin: 8px 0 9px;
  color: #242824;
  font-size: clamp(21px, 4.9vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.chat-ad-copy p { max-width: 43ch; margin: 0; color: #5e625b; font-size: 13px; line-height: 1.65; }
.chat-ad-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 44px;
  margin-top: 17px;
  padding: 10px 16px;
  border: 1px solid var(--ad-accent);
  border-radius: 9px;
  color: var(--ad-accent);
  background: #ffffffa6;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.chat-ad-link:hover { background: #fff; text-decoration: underline; text-underline-offset: 3px; }
.chat-ad-link span { font-size: 19px; line-height: 1; }
.chat-ad :is(button, a):focus-visible { outline: 3px solid var(--ad-accent); outline-offset: 3px; }
.chat-ad-note { margin: 8px 2px 0; color: #746f66; font-size: 10px; line-height: 1.5; }
.chat-ad-photo.image-unavailable::after { content: 'Imagem indisponível'; position: absolute; bottom: 18px; left: 18px; color: #5e625b; font-size: 12px; }
@media (max-width: 380px) {
  .chat-ad-copy { padding: 18px; }
  .chat-ad-brand { top: 12px; left: 12px; font-size: 16px; }
}
