:root {
  --verde: #008069;
  --verde-escuro: #005c4b;
  --fundo: #efeae2;
  --entrada: #ffffff;
  --saida: #d9fdd3;
  --texto: #111b21;
  --texto-suave: #667781;
  --azul-link: #027eb5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #d1d7db;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--texto);
}

.tela {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 860px;
  margin: 0 auto;
  background: var(--fundo);
  position: relative;
  overflow: hidden;
}

/* Marca d'água do logo da pousada, desfocada, ao fundo (estilo papel de parede do WhatsApp) */
.tela::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/fotos/logo_pousada_512.png');
  background-repeat: no-repeat;
  background-position: center 45%;
  background-size: 340px;
  filter: blur(2px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.topo, .conversa, .rodape, #digitando {
  position: relative;
  z-index: 1;
}

/* ========================================================
   TOPO (ESTILO WHATSAPP)
   ======================================================== */
.topo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--verde);
  color: #ffffff;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.topo-voltar {
  font-size: 28px;
  line-height: 1;
  opacity: 0.9;
  cursor: pointer;
  user-select: none;
}

.topo-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.topo-info strong {
  font-size: 16.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topo-info span {
  font-size: 13px;
  opacity: 0.88;
}

/* Touch target confortável para tablet/mobile (mínimo 44px) */
.topo-menu {
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 24px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.topo-menu:hover, .topo-menu:active {
  background: rgba(255, 255, 255, 0.15);
}

.menu {
  position: absolute;
  right: 12px;
  top: 58px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  z-index: 30;
  overflow: hidden;
  min-width: 250px;
}

.menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 14px 20px;
  border: 0;
  background: #ffffff;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
  color: var(--texto);
  transition: background 0.15s ease;
}

.menu button:hover, .menu button:active {
  background: #f0f2f5;
}

/* Avatar: recorte do rosto do Geninho a partir da foto de referência */
.avatar-geninho {
  --s: 44px;
  flex: 0 0 var(--s);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #1f6b3a url(/fotos/geninho_referencia.png) no-repeat;
  background-size: calc(var(--s) * 1.913) auto;
  background-position: calc(var(--s) * -0.453) calc(var(--s) * -0.353);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

/* ========================================================
   ÁREA DE CONVERSA E MENSAGENS
   ======================================================== */
.conversa {
  flex: 1;
  overflow-y: auto;
  padding: 14px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.aviso-cripto {
  align-self: center;
  max-width: 90%;
  background: #ffeecd;
  color: #54656f;
  font-size: 13px;
  text-align: center;
  padding: 7px 14px;
  border-radius: 8px;
  margin: 4px 0 12px;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.08);
}

.atalhos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 6px 0 12px;
}

/* Touch targets de atalhos confortáveis para toque no tablet (mínimo 44px) */
.atalhos button {
  border: 1px solid #c9d6d0;
  background: #ffffff;
  color: var(--verde-escuro);
  border-radius: 22px;
  padding: 10px 18px;
  min-height: 44px;
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.08);
  transition: all 0.15s ease;
}

.atalhos button:hover {
  background: #f0f7f4;
  border-color: var(--verde);
}

.atalhos button:active {
  background: #e7f5ef;
  transform: scale(0.98);
}

/* Bolhas de mensagem */
.bolha {
  position: relative;
  max-width: 95%;
  padding: 8px 12px 20px;
  border-radius: 10px;
  font-size: 17px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

/* Links em mensagens do chat */
.bolha a {
  color: var(--azul-link);
  text-decoration: underline;
  word-break: break-all;
}

.bolha a:hover {
  filter: brightness(0.85);
}

/* Link destacado para WhatsApp com touch target de 44px */
.bolha a.link-whatsapp-chat {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  margin: 4px 0 2px;
  background: #e7f5ef;
  color: var(--verde-escuro);
  font-weight: 600;
  text-decoration: underline;
  border-radius: 8px;
  word-break: normal;
  transition: background 0.15s ease, color 0.15s ease;
}

.bolha a.link-whatsapp-chat:hover,
.bolha a.link-whatsapp-chat:active {
  background: #d4ede2;
  color: #003d32;
}

/* Link destacado para Instagram com gradiente oficial e touch target >= 44px */
.bolha a.link-instagram-chat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  margin: 8px 0 4px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  border-radius: 22px;
  word-break: normal;
  box-shadow: 0 3px 10px rgba(220, 39, 67, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.bolha a.link-instagram-chat:hover,
.bolha a.link-instagram-chat:active {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.45);
  color: #ffffff !important;
}

.bolha a.link-instagram-chat svg {
  flex-shrink: 0;
  fill: #ffffff;
}

.bolha.entrada {
  align-self: flex-start;
  background: var(--entrada);
  border-top-left-radius: 2px;
}

.bolha.saida {
  align-self: flex-end;
  background: var(--saida);
  border-top-right-radius: 2px;
}

.bolha .hora {
  position: absolute;
  right: 10px;
  bottom: 4px;
  font-size: 11px;
  color: var(--texto-suave);
}

.bolha.saida .hora::after {
  content: " ✓✓";
  color: #53bdeb;
}

.bolha.voucher {
  background: #fffdf3;
  border: 1px solid #f1e3a6;
  font-size: 14.5px;
}

.bolha.aviso {
  background: #fff4e5;
  border: 1px solid #ffd59a;
}

.digitando {
  display: flex;
  gap: 5px;
  margin: 0 12px 6px;
  padding: 12px 16px;
  width: fit-content;
}

.digitando[hidden] {
  display: none;
}

.digitando span {
  width: 7px;
  height: 7px;
  background: #9aa5ab;
  border-radius: 50%;
  animation: pula 1.2s infinite;
}

.digitando span:nth-child(2) { animation-delay: 0.2s; }
.digitando span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pula {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ========================================================
   CARDS DE SUÍTES E PRATOS (LISTA VERTICAL — SEM CARROSSEL LATERAL)
   ======================================================== */
.cards {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 14px;
  padding: 6px 0 10px;
  align-self: stretch;
  width: 100%;
  max-width: 520px;
}

.card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(11, 20, 26, 0.16);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #dfe5e7;
}

.card-corpo {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-corpo h3 {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--texto);
}

.card-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--texto-suave);
  line-height: 1.4;
}


.card-preco {
  color: var(--verde-escuro);
  font-weight: 700;
  font-size: 15.5px;
}

.card-preco small {
  color: var(--texto-suave);
  font-weight: 400;
  font-size: 13px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chips span {
  background: #f0f2f5;
  border-radius: 10px;
  padding: 3px 9px;
  font-size: 12px;
  color: #3b4a54;
}

.card-acoes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

/* Botões de ação dos cards com mínimo 44px de toque para tablet */
.card-acoes button {
  border: 0;
  border-radius: 22px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-principal {
  background: var(--verde);
  color: #ffffff;
}

.btn-principal:hover, .btn-principal:active {
  background: var(--verde-escuro);
}

.btn-secundario {
  background: #e7f5ef;
  color: var(--verde-escuro);
}

.btn-secundario:hover, .btn-secundario:active {
  background: #d4ede2;
}

/* ========================================================
   CALENDÁRIO DE DATAS LIVRES DENTRO DO CHAT
   ======================================================== */
.calendario {
  align-self: flex-start;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 10px;
  box-shadow: 0 2px 6px rgba(11, 20, 26, 0.16);
  font-size: 14px;
}

.cal-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.cal-topo > div {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.cal-topo strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.cal-topo button {
  border: 0;
  background: #f0f2f5;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.cal-topo button:hover, .cal-topo button:active {
  background: #e2e8f0;
}

.cal-topo button.cal-fechar {
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: 700;
  color: var(--texto-suave);
  flex-shrink: 0;
}

.cal-grade {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
  width: 100%;
}

.cal-grade .sem {
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-suave);
  padding: 4px 0;
  min-width: 0;
}

.cal-grade span {
  min-width: 0;
}

/* Botões dos dias no calendário com mínimo 44px de toque */
.cal-dia {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  min-width: 0;
  width: 100%;
  padding: 4px 0;
  font-size: 14.5px;
  font-weight: 600;
  background: #e7f5ef;
  color: var(--verde-escuro);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.cal-dia:hover {
  filter: brightness(0.96);
}

.cal-dia.passado, .cal-dia.esgotado {
  background: #f3f3f3;
  color: #b8bec2;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-dia.parcial {
  background: #fff4e5;
  color: #8a5a00;
}

.cal-dia.selecionado {
  background: var(--verde);
  color: #ffffff;
  font-weight: 700;
}

.cal-dia.no-periodo {
  background: #b7e4d3;
  color: var(--verde-escuro);
}

.cal-legenda {
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--texto-suave);
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid #f0f2f5;
}

.cal-dica {
  font-size: 13px;
  color: var(--texto-suave);
  margin: 8px 0 0;
  line-height: 1.35;
}

.cal-confirmar {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 24px;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--verde);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 128, 105, 0.25);
  transition: background 0.15s ease;
}

.cal-confirmar:hover, .cal-confirmar:active {
  background: var(--verde-escuro);
}

/* ========================================================
   RODAPÉ FIXO (INPUT BAR SEMPRE VISÍVEL)
   ======================================================== */
.rodape {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 12px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: #f0f2f5;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.06);
}

.rodape textarea {
  flex: 1;
  resize: none;
  border: 0;
  border-radius: 24px;
  padding: 12px 18px;
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
  min-height: 46px;
  max-height: 120px;
  outline: none;
  background: #ffffff;
  color: var(--texto);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.rodape button {
  flex: 0 0 48px;
  height: 48px;
  width: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--verde);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.rodape button:hover:not(:disabled) {
  background: var(--verde-escuro);
}

.rodape button:disabled {
  opacity: 0.5;
  cursor: default;
}

.rodape button#btn-anexo {
  flex: 0 0 44px;
  height: 44px;
  width: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--texto-suave);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-shadow: none;
  margin-bottom: 2px;
}

.rodape button#btn-anexo:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--texto);
}

.comprovante-preview {
  margin-top: 6px;
  border-radius: 8px;
  max-width: 100%;
  max-height: 220px;
  display: block;
}

.codigo-pix {
  display: block;
  background: #f0f2f5;
  border: 1px dashed #b4c0c9;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.4;
  word-break: break-all;
  user-select: all;
  margin: 8px 0;
  color: #111b21;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.codigo-pix:hover {
  background: #e7edec;
  border-color: #008069;
}

.voucher-acoes-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-voucher-acao {
  width: 100%;
  border: 0;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.btn-copiar-pix {
  background: #008069;
  color: #ffffff;
}

.btn-copiar-pix:hover {
  background: #006a57;
  transform: translateY(-1px);
}

.btn-copiar-pix.copiado {
  background: #054640;
  color: #a4f3d6;
}

.btn-salvar-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-salvar-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-1px);
}

.btn-anexar-comprovante,
.btn-anexar-comprovante-voucher {
  background: #f0f2f5;
  color: #111b21;
  border: 1px solid #d1d7db;
}

.btn-anexar-comprovante:hover,
.btn-anexar-comprovante-voucher:hover {
  background: #e4e7eb;
}

.toast-copiado-pix {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #111b21;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  animation: fadeInOutPix 2.8s ease forwards;
  pointer-events: none;
}

@keyframes fadeInOutPix {
  0% { opacity: 0; transform: translate(-50%, 10px); }
  15% { opacity: 1; transform: translate(-50%, 0); }
  80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}

/* ========================================================
   ADAPTAÇÃO ESPECÍFICA PARA TABLET (768px A 1024px)
   ======================================================== */
@media (min-width: 768px) {
  .tela {
    box-shadow: 0 0 32px rgba(0, 0, 0, 0.16);
  }
  .conversa {
    padding: 16px 20px 8px;
    gap: 8px;
  }
  .bolha {
    max-width: 88%;
    font-size: 18px;
  }
  .card img {
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 320px;
  }
  .calendario {
    width: 390px;
    max-width: 390px;
    padding: 16px;
  }
  .cal-dia {
    min-height: 46px;
    font-size: 15px;
  }
}


/* Box de Arquivamento da Conversa no Chat */
.box-arquivar-conversa {
  align-self: center;
  width: min(440px, 94%);
  background: #ffffff;
  border: 1.5px solid #d1fae5;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 14px auto;
  box-shadow: 0 4px 12px rgba(11, 20, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.box-arquivar-conversa.box-confirmado {
  border-color: var(--verde);
  background: #f0fdf4;
}

.box-arquivar-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.box-arquivar-icone {
  font-size: 28px;
  line-height: 1;
}

.box-arquivar-info strong {
  display: block;
  font-size: 15px;
  color: var(--verde-escuro);
}

.box-arquivar-info p {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--texto-suave);
  line-height: 1.35;
}

.btn-arquivar-acao {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 24px;
  background: var(--verde);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 128, 105, 0.25);
  transition: all 0.15s ease;
}

.btn-arquivar-acao:hover, .btn-arquivar-acao:active {
  background: var(--verde-escuro);
  transform: scale(0.99);
}

/* Link destacado para Google Maps */
.bolha a.link-mapa-chat {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 4px 10px;
  margin: 4px 0 2px;
  background: #f0f4f9;
  color: #1a73e8;
  font-weight: 600;
  text-decoration: underline;
  border-radius: 6px;
  word-break: normal;
  transition: background 0.15s ease, color 0.15s ease;
}
.bolha a.link-mapa-chat:hover,
.bolha a.link-mapa-chat:active {
  background: #e2ecf8;
  color: #0b57d0;
}

/* ========================================================
   WIDGET DE AVALIAÇÃO DE ATENDIMENTO
   ======================================================== */
.widget-avaliacao-atendimento {
  align-self: center !important;
  flex-shrink: 0 !important;
  white-space: normal !important;
  width: min(520px, calc(100% - 16px)) !important;
  max-width: 520px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 128, 105, 0.16) !important;
  border-radius: 20px !important;
  padding: 0 !important;
  margin: 14px auto 12px !important;
  box-shadow: 0 12px 30px rgba(0, 92, 75, 0.14), 0 2px 8px rgba(17, 24, 39, 0.06) !important;
  box-sizing: border-box !important;
}

.avaliacao-cabecalho {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #005c4b 0%, #008f78 100%);
}

.avaliacao-icone {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  color: #ffd166;
  background: rgba(255, 255, 255, 0.13);
  font-size: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.avaliacao-titulo-grupo {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.avaliacao-kicker {
  display: block;
  color: #0f766e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.avaliacao-cabecalho .avaliacao-kicker {
  color: #b7f4e6;
}

.avaliacao-titulo {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.avaliacao-subtitulo {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.35;
}

.avaliacao-corpo {
  padding: 17px 18px 14px;
  background: #ffffff;
}

.avaliacao-estrelas {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 7px 0 14px;
}

.avaliacao-linha-estrelas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.avaliacao-instrucao {
  color: #4b635f;
  font-size: 12px;
  font-weight: 600;
}

.btn-estrela {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid #e4eeeb;
  border-radius: 13px;
  background: #f7fbfa;
  color: #c9d5d2;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  touch-action: manipulation;
}

.btn-estrela:hover,
.btn-estrela:focus-visible {
  transform: scale(1.18);
}

.btn-estrela.ativa {
  border-color: #f7d58a;
  color: #f59e0b;
  background: #fff8e8;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.14);
}

.avaliacao-rotulo-nota {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.avaliacao-label {
  display: block;
  margin-bottom: 6px;
  color: #334e49;
  font-size: 12px;
  font-weight: 700;
}

.avaliacao-label span {
  color: #8b9a97;
  font-size: 11px;
  font-weight: 500;
}

.avaliacao-linha-baixo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avaliacao-linha-baixo input {
  flex: 1;
  min-width: 0;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid #d9e8e4;
  border-radius: 12px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  background: #f8fbfa;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.avaliacao-linha-baixo input:focus {
  border-color: #008f78;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 143, 120, 0.11);
}

.btn-enviar-avaliacao {
  flex: 0 0 auto;
  height: 44px;
  min-height: 44px;
  padding: 0 15px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #008f78, #006b57);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(0, 92, 75, 0.2);
  transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-enviar-avaliacao:hover,
.btn-enviar-avaliacao:active {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 7px 15px rgba(0, 92, 75, 0.25);
}

.btn-enviar-avaliacao:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.avaliacao-rodape {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 13px;
  color: #84918e;
  font-size: 10.5px;
}

.avaliacao-sucesso {
  text-align: center;
  padding: 23px 20px 21px;
  background: linear-gradient(180deg, #f5fffc 0%, #ffffff 100%);
}

.avaliacao-sucesso-icone {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #d9f7ed;
  color: #008069;
  font-size: 24px;
  font-weight: 900;
}

.avaliacao-sucesso strong {
  display: block;
  margin-top: 5px;
  color: #064e3b;
  font-size: 16px;
}

.avaliacao-sucesso p {
  max-width: 380px;
  margin: 7px auto 0;
  color: #4b635f;
  font-size: 12.5px;
  line-height: 1.5;
}

.avaliacao-despedida-final {
  max-width: 380px;
  margin: 13px auto 0;
  padding-top: 11px;
  border-top: 1px dashed #cfe5df;
  font-size: 12.5px;
  line-height: 1.45;
  color: #31534c;
}

@media (max-width: 480px) {
  .widget-avaliacao-atendimento {
    width: calc(100% - 12px) !important;
    border-radius: 17px !important;
  }

  .avaliacao-cabecalho {
    padding: 16px 15px 14px;
  }

  .avaliacao-corpo {
    padding: 15px 14px 13px;
  }

  .avaliacao-subtitulo {
    font-size: 11.5px;
  }

  .avaliacao-linha-estrelas {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .avaliacao-estrelas {
    justify-content: space-between;
    gap: 5px;
  }

  .btn-estrela {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .avaliacao-linha-baixo {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-enviar-avaliacao {
    width: 100%;
  }
}
