
/* Expressinho IA — interface independente do catálogo */
.promo-mascot-trigger {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 24px;
}
.promo-mascot-trigger:focus-visible {
  outline: 3px solid #efbd91;
  outline-offset: 4px;
}
.expressinho-floating-launcher {
  position: fixed;
  z-index: 39;
  left: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 7px 15px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--brown);
  box-shadow: 0 10px 30px rgba(77,44,24,.18);
  font-size: 12px;
  font-weight: 800;
}
.expressinho-floating-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(77,44,24,.23);
}
.expressinho-floating-launcher img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: cover;
  object-position: center 38%;
  border: 2px solid #efbd91;
  border-radius: 50%;
}
.expressinho-floating-launcher span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.expressinho-panel {
  position: fixed;
  z-index: 60;
  left: 22px;
  bottom: 88px;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 32px));
  max-height: min(650px, calc(100vh - 112px));
  overflow: hidden;
  border: 1px solid #e8d2bb;
  border-radius: 22px;
  background: #fffdfa;
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(46,33,25,.25);
}
.expressinho-panel-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  background: linear-gradient(120deg, #4a2b1c, #75472e);
  color: #fff8ef;
}
.expressinho-panel-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  object-position: center 38%;
  border: 2px solid #efbd91;
  border-radius: 50%;
  background: #f4e5d1;
}
.expressinho-panel-title {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.expressinho-panel-title strong {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  line-height: 1.2;
}
.expressinho-panel-title small {
  color: #f0d6bd;
  font-size: 10px;
  line-height: 1.35;
}
.expressinho-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: transparent;
  color: #fff8ef;
  font-size: 22px;
  line-height: 1;
}
.expressinho-close:hover { background: rgba(255,255,255,.12); }
.expressinho-notice {
  margin: 12px 13px 0;
  padding: 9px 10px;
  border: 1px solid #efdfcd;
  border-radius: 11px;
  background: #fbf3e8;
  color: #79583f;
  font-size: 10px;
  line-height: 1.45;
}
.expressinho-modes {
  display: flex;
  gap: 6px;
  padding: 11px 13px 8px;
}
.expressinho-mode {
  flex: 1;
  min-width: 0;
  padding: 8px 5px;
  border: 1px solid #ead9c6;
  border-radius: 999px;
  background: #fffaf3;
  color: #70462d;
  font-size: 10px;
  font-weight: 800;
}
.expressinho-mode[aria-pressed="true"] {
  border-color: var(--brown);
  background: var(--brown);
  color: #fff8ef;
}
.expressinho-messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 9px;
  min-height: 120px;
  max-height: 260px;
  overflow-y: auto;
  padding: 10px 13px;
  overscroll-behavior: contain;
}
.expressinho-message {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.expressinho-message.assistant {
  align-self: flex-start;
  border: 1px solid #efdfcd;
  border-bottom-left-radius: 5px;
  background: #fbf3e8;
  color: #4a3425;
}
.expressinho-message.user {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: #4a2b1c;
  color: #fff8ef;
}
.expressinho-message.pending { color: #8b7868; font-style: italic; }
.expressinho-quick-prompts {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 13px 10px;
  scrollbar-width: thin;
}
.expressinho-quick-prompts button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #e8d2bb;
  border-radius: 999px;
  background: #fffaf3;
  color: #70462d;
  font-size: 10px;
  font-weight: 700;
}
.expressinho-quick-prompts button:hover { background: #f4e5d1; }
.expressinho-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-top: 1px solid #efdfcd;
  background: #fffaf4;
}
.expressinho-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #e7d5c0;
  border-radius: 999px;
  outline: 0;
  background: white;
  color: var(--ink);
  font-size: 12px;
}
.expressinho-form input:focus { border-color: var(--caramel); }
.expressinho-send {
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--brown);
  color: #fff8ef;
  font-size: 11px;
  font-weight: 800;
}
.expressinho-send:disabled { opacity: .55; cursor: wait; }
.expressinho-disclaimer {
  margin: 0;
  padding: 0 13px 12px;
  background: #fffaf4;
  color: #927d68;
  font-size: 9px;
  line-height: 1.4;
}
.expressinho-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 620px) {
  .expressinho-floating-launcher { left: 12px; bottom: 14px; gap: 8px; padding: 6px 11px 6px 6px; font-size: 11px; }
  .expressinho-floating-launcher img { width: 40px; height: 40px; flex-basis: 40px; }
  .expressinho-panel {
    left: 12px;
    bottom: 72px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 88px);
    border-radius: 19px;
  }
  .expressinho-messages { max-height: 32vh; }
}
