/* Excite AI Assistant widget, on-brand (red / ink / paper, editorial). */
.excite-chat { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 900; font-family: var(--ff-body, system-ui, sans-serif); }

.excite-chat__fab {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--red, #C8102E); color: #fff; border: 0; cursor: pointer;
  padding: 0.8rem 1.15rem; border-radius: var(--radius-pill, 999px);
  font-family: var(--ff-display, sans-serif); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem;
  box-shadow: 6px 6px 0 0 var(--ink, #0E0E10); transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.excite-chat__fab:hover { background: var(--red-dark, #9F0C24); box-shadow: 4px 4px 0 0 var(--ink, #0E0E10); transform: translateY(1px); }
.excite-chat__fab svg { width: 20px; height: 20px; }
.excite-chat.is-open .excite-chat__fab { display: none; }

.excite-chat__panel {
  position: absolute; right: 0; bottom: 0; width: min(92vw, 380px); height: min(72vh, 560px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--cream, #FAF6EE); border: 1px solid var(--line-2, #D9D5CB); border-radius: var(--radius-lg, 14px);
  box-shadow: var(--shadow-lg, 0 24px 56px rgba(0,0,0,0.2)); animation: excite-chat-in .18s ease;
}
.excite-chat__panel[hidden] { display: none; }
@keyframes excite-chat-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.excite-chat__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.8rem 1rem; background: var(--ink, #0E0E10); color: #fff; }
.excite-chat__brand { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.excite-chat__brand strong { font-family: var(--ff-display, sans-serif); font-size: 1rem; display: block; }
.excite-chat__logo { height: 26px; width: auto; display: block; }
.excite-chat__brand span { font-size: 0.72rem; opacity: 0.7; }
.excite-chat__close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; opacity: 0.8; }
.excite-chat__close:hover { opacity: 1; }

.excite-chat__log { position: relative; flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.excite-chat__msg { max-width: 85%; padding: 0.6rem 0.85rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; }
.excite-chat__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line, #E5E2DC); color: var(--charcoal, #1B1B1F); border-bottom-left-radius: 4px; }
.excite-chat__msg--user { align-self: flex-end; background: var(--red, #C8102E); color: #fff; border-bottom-right-radius: 4px; }
.excite-chat__msg a { color: inherit; text-decoration: underline; }
.excite-chat__msg--bot a { color: var(--red, #C8102E); }
.excite-chat__msg p { margin: 0 0 0.55rem; }
.excite-chat__msg p:last-child { margin-bottom: 0; }
.excite-chat__msg ul { margin: 0 0 0.55rem; padding-left: 1.1rem; }
.excite-chat__msg li { margin: 0.15rem 0; }
.excite-chat__msg strong { font-weight: 700; }
.excite-chat__msg.is-typing { display: inline-flex; gap: 4px; align-items: center; }
.excite-chat__msg.is-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted, #6B6B72); animation: excite-chat-blink 1s infinite; }
.excite-chat__msg.is-typing span:nth-child(2) { animation-delay: .2s; }
.excite-chat__msg.is-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes excite-chat-blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.excite-chat__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.5rem; }
.excite-chat__chip { background: #fff; border: 1px solid var(--line-2, #D9D5CB); color: var(--ink, #0E0E10); border-radius: 999px; padding: 0.4rem 0.7rem; font-size: 0.78rem; cursor: pointer; }
.excite-chat__chip:hover { border-color: var(--red, #C8102E); color: var(--red, #C8102E); }

.excite-chat__form { display: flex; gap: 0.5rem; padding: 0.6rem; border-top: 1px solid var(--line, #E5E2DC); background: #fff; }
.excite-chat__input { flex: 1; border: 1px solid var(--line-2, #D9D5CB); border-radius: 999px; padding: 0.6rem 0.9rem; font-size: 0.9rem; outline: none; }
.excite-chat__input:focus { border-color: var(--red, #C8102E); }
.excite-chat__send { background: var(--ink, #0E0E10); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.excite-chat__send:hover { background: var(--red, #C8102E); }
.excite-chat__send svg { width: 18px; height: 18px; }

.excite-chat__cta { display: block; text-align: center; background: var(--red, #C8102E); color: #fff; padding: 0.65rem; font-family: var(--ff-display, sans-serif); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; text-decoration: none; }
.excite-chat__cta:hover { background: var(--red-dark, #9F0C24); }

@media (max-width: 480px) {
  .excite-chat__panel { width: 94vw; height: 78vh; }
}
