/* Travis Technology Website Care chat component */
.webcare-chat {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
  text-align: left;
}

.webcare-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
  color: var(--muted, #c6cec4);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.webcare-chat-header::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green, #a8ef79);
  box-shadow: 0 0 0 4px rgba(168,239,121,.09);
}

.webcare-chat-header span:first-child {
  margin-right: auto;
}

.webcare-chat-bubble {
  width: fit-content;
  max-width: 92%;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px 16px 16px 5px;
  color: var(--ink, #f5f7f4);
  background: rgba(255,255,255,.075);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  font-size: .91rem;
  line-height: 1.42;
  opacity: 0;
  transform: translateY(8px) scale(.985);
  transition: opacity .32s ease, transform .32s ease;
}

.webcare-chat-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.webcare-chat-bubble.tt {
  justify-self: end;
  border-color: rgba(168,239,121,.20);
  border-radius: 16px 16px 5px 16px;
  color: #172113;
  background: linear-gradient(135deg, rgba(168,239,121,.96), rgba(115,204,67,.92));
}

.webcare-chat-bubble strong {
  display: block;
  margin-bottom: 3px;
  color: var(--green, #a8ef79);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.webcare-chat-bubble.tt strong {
  color: rgba(20,32,17,.68);
}

.webcare-chat-typing {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 50px;
  padding: 10px 13px;
  border: 1px solid rgba(168,239,121,.16);
  border-radius: 16px 16px 5px 16px;
  background: rgba(168,239,121,.09);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}

.webcare-chat-typing.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.webcare-chat-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green, #a8ef79);
  animation: tt-chat-dot 1s infinite ease-in-out;
}

.webcare-chat-typing i:nth-child(2) { animation-delay: .14s; }
.webcare-chat-typing i:nth-child(3) { animation-delay: .28s; }

@keyframes tt-chat-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.webcare-chat-note {
  margin: -3px 0 0;
  color: var(--muted, #c6cec4);
  font-size: .72rem;
  line-height: 1.35;
}

/* Homepage price card gets a compact conversation. */
.webcare-price-card .webcare-chat {
  margin-top: 20px;
  margin-bottom: 22px;
}

.webcare-price-card .webcare-chat-bubble {
  max-width: 96%;
  font-size: .85rem;
}

/* Full WebCare page uses the chat as the visual focal point. */
.example .webcare-chat {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  background: rgba(10,15,12,.48);
  box-shadow: 0 16px 44px rgba(0,0,0,.18);
}

.example .webcare-chat-bubble {
  font-size: .98rem;
}

@media (prefers-reduced-motion: reduce) {
  .webcare-chat-bubble,
  .webcare-chat-typing {
    transition: none;
    animation: none;
  }

  .webcare-chat-typing i {
    animation: none;
  }
}
