/* ═══════════════════════════════════════════════════════════
   ASK STYLIST / TRY ON — réplica das telas do Mosso
   Segue o mesmo container do app: max-width 430px, centralizado.
   ═══════════════════════════════════════════════════════════ */

/* ── tela base (celular, centralizada como o resto do app) ── */
*.ask-wrap, .ask-wrap *, .tio-fundo, .tio-fundo *, .mod-wrap, .mod-wrap * {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ask-wrap {
  position: fixed; top: 0; bottom: 80px;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  z-index: 400;
  display: none; flex-direction: column;
  background: linear-gradient(175deg, #FCFAF8 0%, #F9F1EC 45%, #F2E3DA 100%);
  box-shadow: 0 0 42px rgba(0, 0, 0, .07);
}
.ask-wrap.on { display: flex; }

/* topo */
.ask-top {
  padding: 14px 16px 12px; text-align: center;
  font-size: 15px; font-weight: 600; color: #2A2520;
  background: #FBF9F7; border-bottom: 1px solid rgba(0, 0, 0, .05);
  flex-shrink: 0;
}
.ask-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; flex-shrink: 0; gap: 10px;
}
.ask-quem { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ask-quem img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  background: #E8DFD6; flex-shrink: 0;
}
.ask-quem .nome { font-size: 16px; font-weight: 600; color: #2A2520; line-height: 1.2; }
.ask-quem .ativo { font-size: 12.5px; color: #17A34A; margin-top: 1px; }

.ask-avatar-btn {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  background: #fff; border: none; border-radius: 99px;
  padding: 10px 15px; font-size: 13.5px; color: #2A2520;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  transition: opacity .16s;
}
.ask-avatar-btn:active { opacity: .6; }
.ask-avatar-btn svg { width: 15px; height: 15px; stroke: #6B6055; fill: none; stroke-width: 1.8; }

/* corpo da conversa */
.ask-corpo {
  flex: 1; overflow-y: auto; padding: 10px 16px 4px;
  display: flex; flex-direction: column;
  -webkit-overflow-scrolling: touch;
}
.ask-vazio {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding-bottom: 40px;
}
.ask-saudacao {
  font-size: 20px; font-weight: 600; color: #2A2520;
  line-height: 1.35; max-width: 280px; margin-bottom: 24px;
}
.ask-sugestoes {
  display: flex; gap: 9px; overflow-x: auto; padding: 0 16px 10px;
  flex-shrink: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ask-sugestoes::-webkit-scrollbar { display: none; }
.ask-sug {
  background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 99px;
  padding: 11px 17px; font-size: 13.5px; color: #2A2520;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: opacity .16s;
}
.ask-sug:active { opacity: .6; }

/* ── animação de carregando (pontos) ── */
.ask-load { flex: 1; display: flex; align-items: center; justify-content: center; }
.ask-orb { position: relative; width: 110px; height: 110px; }
.ask-orb i {
  position: absolute; border-radius: 50%; background: #C14E1A;
  animation: askPulse 1.9s ease-in-out infinite;
}
@keyframes askPulse {
  0%, 100% { opacity: .25; transform: scale(.7); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

/* balões */
.ask-msg { display: flex; flex-direction: column; margin-bottom: 14px; align-items: flex-start; }
.ask-msg.eu { align-items: flex-end; }
.ask-hora { font-size: 11px; color: #A89C90; margin-top: 5px; padding: 0 4px; }
.ask-msg.eu { justify-content: flex-end; }
.ask-bolha {
  max-width: 84%; padding: 13px 17px; border-radius: 20px;
  font-size: 14px; line-height: 1.55; white-space: pre-wrap;
  word-break: break-word;
}
.ask-msg.eu .ask-bolha {
  background: #fff; color: #2A2520; border-radius: 99px;
  padding: 12px 20px; border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ask-msg.ela .ask-bolha {
  background: #fff; color: #2A2520; border-radius: 20px;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ask-digitando { display: flex; gap: 4px; padding: 13px 16px; }
.ask-digitando i {
  width: 7px; height: 7px; border-radius: 50%; background: #C9BCB0;
  animation: askDot 1.3s infinite;
}
.ask-digitando i:nth-child(2) { animation-delay: .18s; }
.ask-digitando i:nth-child(3) { animation-delay: .36s; }
@keyframes askDot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

/* campo de escrever */
.ask-input-wrap {
  padding: 10px 16px 12px;
  flex-shrink: 0;
}
.ask-input {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border-radius: 99px; padding: 6px 6px 6px 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
}
.ask-cam { width: 21px; height: 21px; flex-shrink: 0; opacity: .5; cursor: pointer; }
.ask-input input {
  flex: 1; border: none; outline: none; background: none;
  font-size: 14px; font-family: inherit; color: #2A2520; min-width: 0;
}
.ask-input input::placeholder { color: #A89C90; }
.ask-enviar {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: #C14E1A; color: #fff; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .16s;
}
.ask-enviar:active { opacity: .65; }
.ask-enviar svg { width: 14px; height: 14px; fill: #fff; }

/* ═══ modal "Try It On" ═══ */
.tio-fundo {
  position: fixed; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 600;
  background: rgba(42, 37, 32, .42);
  display: none; align-items: center; justify-content: center;
  padding: 18px;
}
.tio-fundo.on { display: flex; animation: tioFade .28s ease; }
@keyframes tioFade { from { opacity: 0; } to { opacity: 1; } }
.tio-card {
  background: #FAF6F2; border-radius: 24px; padding: 26px 20px 20px;
  width: 100%; position: relative; text-align: center;
  animation: tioSobe .34s cubic-bezier(.22, .9, .3, 1);
  max-height: 90vh; overflow-y: auto;
}
@keyframes tioSobe { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.tio-x {
  position: absolute; top: 15px; right: 15px;
  width: 28px; height: 28px; border: none; background: none;
  cursor: pointer; color: #6B6055; font-size: 23px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.tio-card h2 {
  font-size: 24px; font-weight: 700; color: #2A2520;
  margin: 2px 0 10px; letter-spacing: -.01em;
}
.tio-card p {
  font-size: 14.5px; color: #4A423A; line-height: 1.45;
  margin-bottom: 18px; padding: 0 4px;
}
.tio-foto {
  width: 100%; border-radius: 16px; overflow: hidden;
  margin-bottom: 18px; background: #EFE9E1;
}
.tio-foto img { width: 100%; display: block; }
.tio-btn {
  width: 100%; padding: 15px; border: 1.5px solid #2A2520;
  background: none; border-radius: 99px; cursor: pointer;
  font-size: 15px; font-family: inherit; color: #2A2520;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .16s;
}
.tio-btn:active { opacity: .6; }
.tio-btn svg { width: 17px; height: 17px; stroke: #2A2520; fill: none; stroke-width: 1.8; }

/* ═══ tela "Your model" ═══ */
.mod-wrap {
  position: fixed; top: 0; bottom: 80px;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 500;
  background: #FAF8F6; display: none; flex-direction: column;
  box-shadow: 0 0 42px rgba(0, 0, 0, .07);
}
.mod-wrap.on { display: flex; }
.mod-top {
  display: flex; align-items: center; padding: 13px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .05); flex-shrink: 0;
  background: #FBF9F7;
}
.mod-voltar {
  width: 32px; height: 32px; border: none; background: none;
  cursor: pointer; display: flex; align-items: center;
}
.mod-voltar svg { width: 19px; height: 19px; stroke: #2A2520; fill: none; stroke-width: 1.8; }
.mod-titulo { flex: 1; text-align: center; font-size: 15px; font-weight: 600; margin-right: 32px; }
.mod-corpo {
  flex: 1; overflow-y: auto;
  padding: 14px 16px calc(90px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}
.mod-foto {
  background: #fff; border-radius: 18px; overflow: hidden;
  margin-bottom: 18px; box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}
.mod-foto img { width: 100%; display: block; }
.mod-upload {
  width: 100%; padding: 15px; border: 1.5px solid #C9BCB0;
  background: none; border-radius: 99px; cursor: pointer;
  font-size: 15px; font-family: inherit; color: #2A2520;
  margin-bottom: 14px; transition: opacity .16s;
}
.mod-upload:active { opacity: .6; }
.mod-continuar {
  display: block; width: 100%; text-align: center; background: none;
  border: none; font-size: 15px; color: #2A2520; cursor: pointer;
  font-family: inherit; text-decoration: underline; padding: 6px;
}
.mod-continuar:active { opacity: .6; }

/* foto enviada no chat */
.ask-bolha.ask-foto { padding: 6px; max-width: 58%; border-radius: 16px; background: #fff; }
.ask-bolha.ask-foto img { width: 100%; display: block; border-radius: 14px; }

/* markdown dentro do balao */
.ask-bolha p { margin: 0 0 9px; }
.ask-bolha p:last-child { margin-bottom: 0; }
.ask-bolha strong { font-weight: 700; }
.ask-lista { margin: 0 0 9px; padding-left: 18px; list-style: disc; }
.ask-lista:last-child { margin-bottom: 0; }
.ask-lista li { margin-bottom: 7px; line-height: 1.5; }
.ask-lista li:last-child { margin-bottom: 0; }
.ask-foto-vazia { display:flex; align-items:center; justify-content:center; width:150px; height:200px; }
.ask-spin { width:26px; height:26px; border:2.5px solid #EFE7DC; border-top-color:#C14E1A; border-radius:50%; animation: askSpin .85s linear infinite; }
@keyframes askSpin { to { transform: rotate(360deg); } }

/* ── FOTO NO CHAT: precisa vencer o border-radius 99px do balao do usuario ── */
.ask-msg.eu .ask-bolha.ask-foto,
.ask-msg.ela .ask-bolha.ask-foto {
  border-radius: 16px; padding: 6px; max-width: 62%;
  background: #fff; border: 1px solid rgba(0,0,0,.05);
}
.ask-bolha.ask-foto img {
  width: 100%; display: block; border-radius: 12px;
  object-fit: cover; background: #F7F3ED;
}

/* ── TRY ON NO CHAT ── */
.ask-msg.eu .ask-bolha.ask-foto-peca,
.ask-msg.ela .ask-bolha.ask-foto-peca {
  max-width: 46%; padding: 5px; border-radius: 14px;
}
.ask-bolha.ask-foto-peca img { aspect-ratio: 3/4; object-fit: contain; background: #fff; }
.ask-msg.ela .ask-bolha.ask-foto-prova { max-width: 80%; padding: 6px; border-radius: 16px; }
.ask-bolha.ask-foto-prova img { aspect-ratio: 3/4; object-fit: contain; background: #F2EEE8; border-radius: 12px; }
/* pilula 'Give me a moment' */
.ask-msg.ela .ask-bolha.ask-pilula {
  border-radius: 99px; padding: 13px 22px; font-weight: 500;
}
/* texto pequeno de status */
.ask-status {
  font-size: 12px; color: #A89C90; padding: 4px 6px 10px; line-height: 1.45;
}
/* botao Upgrade */
.ask-upgrade {
  margin-top: 9px; background: #C14E1A; color: #fff; border: none;
  border-radius: 99px; padding: 12px 30px; font-size: 15px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: opacity .16s;
}
.ask-upgrade:active { opacity: .7; }

/* ── SEM BARRA DE ROLAGEM (o Mosso nao mostra) ── */
.ask-corpo, .mod-corpo, .chk-corpo, .tio-card, .chk-modal-card, .pv-card {
  scrollbar-width: none; -ms-overflow-style: none;
}
.ask-corpo::-webkit-scrollbar,
.mod-corpo::-webkit-scrollbar,
.chk-corpo::-webkit-scrollbar,
.tio-card::-webkit-scrollbar,
.chk-modal-card::-webkit-scrollbar,
.pv-card::-webkit-scrollbar {
  width: 0; height: 0; display: none;
}
