/* Chat atendimento — SS22.fun (tela cheia na coluna do celular) */
.vita-support-chat {
  --l7-chat-bg: #f6f2fc;
  --l7-chat-card: #ffffff;
  --l7-chat-ink: #241b45;
  --l7-chat-muted: #7a7198;
  --l7-chat-lilac: #b9a6e8;
  --l7-chat-purple: #2860B9;
  --l7-chat-purple-2: #4A90E2;
  --l7-chat-line: rgba(106, 69, 212, .14);
  position: fixed;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--phone-w, 516px);
  height: 100%;
  height: 100dvh;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(139, 108, 240, .22), transparent 55%),
    linear-gradient(180deg, #efe8fb 0%, #f7f4fc 38%, #ffffff 100%);
  color: var(--l7-chat-ink);
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(80, 60, 140, .12), 0 24px 80px rgba(0,0,0,.45);
  z-index: 12060;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.vita-support-chat.is-open {
  display: flex;
  animation: vitaChatIn .24s cubic-bezier(.22,.9,.3,1);
}
@keyframes vitaChatIn {
  from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@media (max-width: 515px) {
  .vita-support-chat {
    left: 0;
    transform: none;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  .vita-support-chat.is-open {
    animation: vitaChatInMobile .24s cubic-bezier(.22,.9,.3,1);
  }
  @keyframes vitaChatInMobile {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.vita-support-chat-head {
  padding: 10px 12px 8px;
  flex-shrink: 0;
  background: transparent;
}
.vita-support-chat-head-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 8px 8px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--l7-chat-line);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(80, 50, 140, .1);
  backdrop-filter: blur(8px);
}
.vita-support-chat-head-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.vita-support-chat-head-copy {
  min-width: 0;
}
.vita-support-chat-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1a1235;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px rgba(139, 108, 240, .55);
}
.vita-support-chat-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.vita-support-online {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .25);
}
.vita-support-chat-head strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--l7-chat-ink);
  letter-spacing: .15px;
  line-height: 1.15;
  background: linear-gradient(90deg, #c9a227 0%, #4A90E2 55%, #4A90E2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vita-support-chat-head small {
  display: block;
  font-size: 11px;
  color: var(--l7-chat-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 56vw;
}
.vita-support-chat-head .vita-online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 4px;
  box-shadow: 0 0 0 2px rgba(34,197,94,.25);
}
.vita-support-chat-head .vita-online-dot.is-typing {
  animation: vitaDotPulse 1s ease infinite;
}
@keyframes vitaDotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.vita-support-chat-head button {
  border: 0;
  background: rgba(106, 69, 212, .08);
  color: #5b4a86;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 15px;
  transition: background .15s ease, color .15s ease;
}
.vita-support-chat-head button:hover {
  background: rgba(106, 69, 212, .16);
  color: var(--l7-chat-purple);
}

/* Quadro de avisos */
.vita-chat-bulletin {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 8px;
  padding: 8px 10px;
  background: linear-gradient(90deg, #ebe2fb 0%, #e4daf8 100%);
  border: 1px solid rgba(139, 108, 240, .18);
  border-radius: 12px;
  flex-shrink: 0;
  min-height: 36px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.vita-chat-bulletin[hidden] { display: none !important; }
.vita-chat-bulletin-bell {
  color: var(--l7-chat-purple);
  font-size: 13px;
  flex-shrink: 0;
}
.vita-chat-bulletin-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.vita-chat-bulletin-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 11.5px;
  color: #4a3a78;
  font-weight: 600;
  padding-left: 100%;
  animation: vitaBulletin 28s linear infinite;
}
@keyframes vitaBulletin {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.vita-chat-bulletin-x {
  border: 0;
  background: transparent;
  color: #8a7ab0;
  width: 22px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.vita-support-chat-msgs {
  flex: 1;
  overflow: auto;
  padding: 6px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,108,240,.35) transparent;
}
.vita-support-chat-empty {
  margin: auto;
  text-align: center;
  color: #9a90b8;
  font-size: 13px;
  padding: 16px;
  line-height: 1.45;
}

.vita-support-msg {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 94%;
  align-self: flex-start;
}
.vita-support-msg.is-enter {
  animation: vitaMsgIn .35s cubic-bezier(.22,.9,.3,1) both;
}
@keyframes vitaMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.vita-support-msg.is-user {
  align-self: flex-end;
  align-items: flex-end;
}
.vita-support-msg.is-admin {
  align-items: flex-start;
}
.vita-support-msg-top {
  display: flex;
  align-items: center;
  gap: 7px;
}
.vita-support-msg.is-user .vita-support-msg-top {
  flex-direction: row-reverse;
}
.vita-support-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #1a1235;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1.5px rgba(139, 108, 240, .35);
}
.vita-support-msg.is-user .vita-support-msg-avatar {
  background: linear-gradient(145deg, #4A90E2, #1E4F9A);
  padding: 5px;
  box-sizing: border-box;
}
.vita-support-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vita-support-msg.is-user .vita-support-msg-avatar img {
  object-fit: contain;
}
.vita-support-msg-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #6a6090;
  letter-spacing: .2px;
  line-height: 1;
}
.vita-support-bubble {
  max-width: 100%;
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 13.2px;
  line-height: 1.55;
  word-break: break-word;
  box-shadow: 0 6px 18px rgba(80, 60, 140, .08);
  margin-left: 41px;
  color: var(--l7-chat-ink);
}
.vita-support-msg.is-user .vita-support-bubble {
  margin-left: 0;
  margin-right: 41px;
}
.vita-support-bubble time {
  display: block;
  font-size: 9.5px;
  opacity: .5;
  margin-top: 6px;
}
.vita-support-bubble.is-user {
  background: linear-gradient(135deg, #4A90E2 0%, #2860B9 100%);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.vita-support-bubble.is-admin {
  background: var(--l7-chat-card);
  border: 1px solid var(--l7-chat-line);
  border-bottom-left-radius: 5px;
}
.vita-support-bubble.is-promo {
  padding: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.vita-support-text {
  white-space: pre-wrap;
}
.vita-support-promo {
  display: block;
  width: 100%;
  max-width: 280px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(80, 50, 140, .18);
  border: 1px solid rgba(139, 108, 240, .2);
}
.vita-support-promo img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.vita-chat-topics-label {
  margin: 12px 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #8a80a8;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.vita-chat-topics {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.vita-chat-topic {
  width: 100%;
  border: 1px solid rgba(139, 108, 240, .14);
  background: linear-gradient(180deg, #f8f5fd 0%, #f1ecf9 100%);
  color: var(--l7-chat-purple);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 11px 12px;
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background .15s ease, transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.vita-chat-topic i {
  font-size: 11px;
  opacity: .55;
  flex-shrink: 0;
}
.vita-chat-topic:hover {
  background: linear-gradient(180deg, #efe8fb 0%, #e7dff7 100%);
  border-color: rgba(139, 108, 240, .35);
  box-shadow: 0 4px 12px rgba(106, 69, 212, .1);
}
.vita-chat-topic:active {
  transform: scale(.985);
}
.vita-chat-topic.is-picked {
  background: #e5ddf5;
  pointer-events: none;
  opacity: .7;
}

.vita-support-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--l7-chat-line);
  margin-left: 41px;
  box-shadow: 0 4px 14px rgba(80, 60, 140, .06);
}
.vita-support-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9a8bc4;
  animation: vitaTyping 1s ease infinite;
}
.vita-support-typing span:nth-child(2) { animation-delay: .15s; }
.vita-support-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes vitaTyping {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.vita-support-composer {
  position: relative;
  flex-shrink: 0;
  z-index: 5;
}
.vita-attach-menu {
  position: absolute;
  left: 12px;
  bottom: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--l7-chat-line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(80, 50, 140, .18);
  z-index: 8;
}
.vita-attach-menu[hidden] { display: none !important; }
.vita-attach-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--l7-chat-ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.vita-attach-opt i {
  width: 1.4rem;
  color: var(--l7-chat-purple);
  text-align: center;
}
.vita-attach-opt:hover {
  background: #f3eefc;
}
.vita-emoji-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% + 8px);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  max-height: 180px;
  overflow: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--l7-chat-line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(80, 50, 140, .18);
  z-index: 8;
}
.vita-emoji-panel[hidden] { display: none !important; }
.vita-emoji-btn {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1.4;
  border-radius: 8px;
  cursor: pointer;
  padding: 4px 0;
}
.vita-emoji-btn:hover {
  background: #f3eefc;
}

.vita-support-chat-form {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
  padding: 6px 6px 6px 8px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--l7-chat-line);
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(80, 50, 140, .12);
  position: relative;
  z-index: 2;
}
.vita-support-attach,
.vita-support-emoji {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #8a80a8;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0;
  transition: color .15s ease, background .15s ease;
}
.vita-support-attach:hover,
.vita-support-emoji:hover,
.vita-support-attach[aria-expanded="true"],
.vita-support-emoji[aria-expanded="true"] {
  color: var(--l7-chat-purple);
  background: rgba(106, 69, 212, .08);
}
.vita-support-chat-form input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0 8px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--l7-chat-ink);
  outline: none;
}
.vita-support-chat-form input[type="text"]::placeholder {
  color: #a098bc;
}
.vita-support-chat-form button[type="submit"] {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #ece8f5;
  color: #8a80a8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 15px;
  transition: background .15s, color .15s, transform .12s;
}
.vita-support-chat-form button[type="submit"].is-ready,
.vita-support-chat-form.is-ready button[type="submit"] {
  background: linear-gradient(135deg, #4A90E2, #2860B9);
  color: #fff;
  box-shadow: 0 6px 14px rgba(106, 69, 212, .35);
}
.vita-support-chat-form.is-ready button[type="submit"]:active {
  transform: scale(.96);
}

.vita-support-media img,
.vita-support-media video {
  max-width: 100%;
  border-radius: 10px;
  display: block;
}
.vita-support-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
}
.vita-support-name-gate {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vita-support-name-hint {
  margin: 0 0 0 41px;
  font-size: 11px;
  color: #8a80a8;
}

body.vita-support-chat-open {
  overflow: hidden;
}
body.vita-support-chat-open .vita-sup-fab,
body.vita-support-chat-open .tabbar,
body.vita-support-chat-open .app-dl-banner {
  display: none !important;
}
