/* ===============================
   O Casal
   =============================== */
.cabecalho-casal {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.foto-circular {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: var(--sombra-suave);
}
.container-texto-casal {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.video-casal {
  margin: 2rem 0 0;
  width: 100%;
}

.video-player {
  position: relative;
  width: 100%;
  height: var(--altura-carrossel);
  background: #000;
  border-radius: var(--raio-borda);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.video-casal video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  z-index: 2;
  pointer-events: none;
}

.video-play span {
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
  margin-left: 4px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.video-player.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
}

.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
  opacity: 1;
  transition: opacity 0.2s ease;
  z-index: 3;
  pointer-events: auto;
}

.video-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.video-controls button:focus-visible,
.video-controls input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.video-toggle::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #fff;
  margin-left: 2px;
}

.video-toggle::after {
  content: "";
  display: none;
  width: 12px;
  height: 14px;
  background: linear-gradient(
    90deg,
    #fff 0 4px,
    transparent 4px 8px,
    #fff 8px 12px
  );
}

.video-player.is-playing .video-toggle::before {
  display: none;
}

.video-player.is-playing .video-toggle::after {
  display: block;
}

.video-player.controls-hidden .video-controls {
  opacity: 0;
  pointer-events: none;
}

.video-player.controls-hidden .video-play {
  opacity: 0;
  pointer-events: none;
}

.video-range {
  flex: 1;
  height: 4px;
  accent-color: #fff;
  cursor: pointer;
}

.video-volume {
  width: 90px;
  height: 4px;
  accent-color: #fff;
  cursor: pointer;
}

.video-time {
  color: #fff;
  font-size: 0.95rem;
  min-width: 48px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .video-player {
    height: var(--altura-carrossel-mobile);
  }
}

.container-linha-tempo {
  margin-top: 2rem;
}

.linha-tempo-casal {
  --cor-linha-tempo: var(--cor-primaria);
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0.5rem 0 1rem;
}

.linha-tempo-casal::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: var(--cor-linha-tempo);
  border-radius: 999px;
}

.linha-tempo-item {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 56px minmax(180px, 260px);
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 145px;
}

.linha-tempo-lado {
  min-width: 0;
  max-width: 260px;
}

.linha-tempo-lado--texto {
  color: var(--cor-primaria);
  text-align: center;
}

.linha-tempo-lado--texto h4 {
  margin: 0;
  font-family: "Cormorant Garamond", var(--fonte-serifa);
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--cor-primaria);
  font-weight: 500;
}

.linha-tempo-lado--texto p {
  margin: 0.2rem 0 0;
  font-family: "Cormorant Garamond", var(--fonte-serifa);
  font-size: clamp(0.95rem, 1.3vw, 1.3rem);
  color: var(--cor-primaria);
  font-weight: 400;
}

.linha-tempo-centro {
  display: flex;
  justify-content: center;
  align-items: center;
}

.linha-tempo-ponto {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--cor-linha-tempo);
  border: 4px solid #f7f4ef;
  box-shadow: 0 0 0 2px rgba(127, 136, 99, 0.2);
}

.linha-tempo-lado--icone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.linha-tempo-icone {
  color: var(--cor-linha-tempo);
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  line-height: 1;
  opacity: 0.9;
  width: clamp(80px, 7vw, 120px);
  height: clamp(80px, 7vw, 120px);
  display: inline-block;
  object-fit: contain;
}

.linha-tempo-destaque {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.linha-tempo-item--final {
  min-height: 95px;
}

.linha-tempo-final {
  margin: 0;
  font-family: "Cormorant Garamond", var(--fonte-serifa);
  font-size: clamp(1.05rem, 1.45vw, 1.5rem);
  color: var(--cor-primaria);
  letter-spacing: 0.015em;
  font-weight: 600;
}
/* ===============================
   Cerimônia & Evento
   =============================== */
.secao-grande-dia {
  position: relative;
  background: var(--cor-superficie);
  overflow: hidden;
}
.secao-grande-dia .container {
  position: relative;
  z-index: 1;
}
/* Galeria estilo Mosaico Premium */
.galeria-cerimonia {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.6rem;
  margin-bottom: 2.6rem;
  align-items: stretch;
}
.foto-cerimonia {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(194, 168, 120, 0.2);
  background: #f7f2ed;
}
.foto-cerimonia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.08) 100%
  );
  pointer-events: none;
}
.foto-cerimonia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: saturate(1.03);
  display: block;
}
.foto-cerimonia:hover img {
  transform: scale(1.05); /* Zoom suave ao passar o mouse */
}
/* Layout Desktop: 1 Imagem Grande (Esquerda) + 2 Menores (Direita) */
@media (min-width: 900px) {
  .galeria-cerimonia {
    grid-template-columns: 1.7fr 1fr;
    grid-template-rows: repeat(2, 240px);
  }
  .foto-cerimonia:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 480px;
  }
}
@media (min-width: 1200px) {
  .galeria-cerimonia {
    grid-template-rows: repeat(2, 270px);
  }
  .foto-cerimonia:nth-child(1) {
    min-height: 540px;
  }
}
.detalhes-evento {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #faf7f3 100%);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(50, 42, 36, 0.12);
  border: 1px solid rgba(194, 168, 120, 0.2);
}
.info-evento {
  flex: 1;
  min-width: 280px;
}
.info-evento h3 {
  font-family: var(--fonte-serifa);
  font-size: 1.6rem;
  color: var(--cor-primaria);
  margin-bottom: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.item-evento {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(194, 168, 120, 0.2);
}
.icone-evento {
  width: 36px;
  height: 36px;
  color: var(--cor-secundaria);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(244, 237, 229, 0.9);
  box-shadow: inset 0 0 0 1px rgba(194, 168, 120, 0.25);
}
.icone-evento svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.texto-evento strong {
  display: block;
  font-family: var(--fonte-serifa);
  color: var(--cor-primaria);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}
.texto-evento span {
  font-family: var(--fonte-sans);
  color: var(--cor-texto-clara);
  font-size: 1rem;
  line-height: 1.5;
}
.mapa-evento {
  position: relative;
  min-width: 300px;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(194, 168, 120, 0.18);
  box-shadow: 0 18px 40px rgba(50, 42, 36, 0.12);
  background: #f7f2ed;
}
.mapa-evento::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.mapa-evento iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(0.92) contrast(1.05);
}
#link-local-evento {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1;
  border-width: 1px;
}
.acao-local {
  margin-top: 0.8rem;
}
#link-local-evento::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: translateY(-1px);
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354453d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 10.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z'/><path d='M12 21s6-5.5 6-10a6 6 0 1 0-12 0c0 4.5 6 10 6 10Z'/><path d='M6 20h12'/></svg>");
}
@media (min-width: 900px) {
  .detalhes-evento {
    align-items: stretch;
  }
  .info-evento,
  .mapa-evento {
    height: 100%;
  }
  .mapa-evento {
    height: auto;
    min-height: 360px;
  }
}
/* ===============================
   Presentes & RSVP
   =============================== */
.controles-presentes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  width: min(100%, 760px);
  margin: 0 auto 2rem;
}
.controles-presentes label {
  font-family: var(--fonte-serifa);
  color: var(--cor-primaria);
  font-size: 0.85rem;
  text-align: center;
}
.ordenacao-presentes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}
@media (min-width: 769px) {
  .controles-presentes {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }
  .ordenacao-presentes {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 0.55rem;
  }
}
.carrinho-resumo {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(194, 168, 120, 0.6);
  border-radius: var(--raio-borda);
  background-color: #fff;
  color: var(--cor-primaria);
  font-family: var(--fonte-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  width: fit-content;
}
.carrinho-resumo:hover {
  border-color: var(--cor-secundaria);
  box-shadow: 0 6px 14px rgba(84, 75, 69, 0.12);
  transform: translateY(-1px);
}
.carrinho-resumo:disabled,
.carrinho-resumo--vazio {
  cursor: default;
  opacity: 0.8;
  box-shadow: none;
  transform: none;
}
.carrinho-icone {
  width: 18px;
  height: 18px;
  color: var(--cor-secundaria);
}
.selecao-formulario {
  padding: 2px 1.2rem 2px 6px; /* Ajustado para ficar ainda mais compacto */
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  background-color: #fff;
  font-family: var(--fonte-sans);
  font-size: 0.75rem;
  color: var(--cor-texto);
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  width: auto;
  min-width: 72px;
  appearance: none; /* Remove a seta padrão do navegador */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23C2A878%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 0.5rem auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}
.selecao-formulario:hover {
  border-color: var(--cor-secundaria);
  box-shadow: 0 4px 10px rgba(194, 168, 120, 0.15);
  transform: translateY(-1px);
}
.selecao-formulario:focus {
  border-color: var(--cor-secundaria);
  box-shadow: 0 0 0 3px rgba(194, 168, 120, 0.2);
}
/* Estilização básica para as opções (suporte varia conforme navegador) */
.selecao-formulario option {
  padding: 10px;
  background-color: #fff;
  color: var(--cor-texto);
}
.lista-presentes {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 240px));
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .lista-presentes {
    grid-template-columns: repeat(2, minmax(240px, 240px));
    justify-content: center;
  }
}
.lista-presentes__feedback {
  grid-column: 1 / -1;
  text-align: center;
  color: #666;
  padding: 1.5rem 0;
}
.lista-presentes__feedback--erro {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.8rem 1.6rem;
  color: #8d3f3f;
  background: linear-gradient(180deg, #fff, #fff8f7);
  border: 1px solid rgba(176, 75, 75, 0.26);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(141, 63, 63, 0.1);
}
.lista-presentes__feedback-icone {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  font-family: var(--fonte-serifa);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #c56f6f, #ab4e4e);
  box-shadow: 0 8px 18px rgba(171, 78, 78, 0.28);
}
.lista-presentes__feedback--erro h3 {
  margin: 0;
  color: #7b3434;
  font-size: 1.35rem;
}
.lista-presentes__feedback--erro p {
  margin: 0.5rem auto 0;
  max-width: 40ch;
  color: #995252;
  line-height: 1.6;
}
.lista-presentes__retry {
  margin-top: 1.2rem;
  min-width: 240px;
  border-radius: 999px;
  border-width: 1px;
  border-color: #a85f5f;
  color: #7a3d3d;
  background: #fff;
}
.lista-presentes__retry:hover {
  border-color: #8c4747;
  color: #fff;
  background: #8c4747;
}
@media (max-width: 600px) {
  .lista-presentes__feedback--erro {
    padding: 1.3rem 1rem;
    border-radius: 14px;
  }
  .lista-presentes__feedback--erro h3 {
    font-size: 1.15rem;
  }
  .lista-presentes__retry {
    width: 100%;
    min-width: 0;
  }
}
.retorno-suave {
  animation: aparecerSubindo 0.6s ease;
}
/* Estilos para os cards (aplicados quando o JS gerar o Conteúdo) */
.cartao-presente,
.presente.center-block {
  font-family: Lato, var(--fonte-sans), sans-serif;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(45, 58, 74, 0.08);
  overflow: clip;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #c9d5e1;
  padding: 16px;
  height: 420px;
  width: 240px;
  max-width: 240px;
  justify-self: center;
  text-align: center;
  margin: 0 0 20px;
}
.cartao-presente:hover,
.presente.center-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(45, 58, 74, 0.12);
}
.cartao-presente img,
.presente.center-block img {
  width: 100%;
  height: 208px;
  object-fit: contain;
  object-position: center;
  padding: 0;
  margin: 0 auto;
  display: block;
  background: #fff;
  border: 1px solid #d4dee8;
  border-radius: 8px;
}
.cartao-presente h3,
.presente.center-block h3,
.presente.center-block .nome-presente,
.presente.center-block .titulo-presente {
  font-family: var(--fonte-sans);
  font-size: 16px;
  font-weight: 400;
  color: #223b57;
  margin: 14px 0 10px;
  line-height: 1.28;
  min-height: 40px;
  overflow-wrap: anywhere;
}
.cartao-presente .card-presente__preco,
.presente.center-block .preco-presente,
.presente.center-block .preco,
.presente.center-block [class*="preco"] {
  margin: 0 0 16px;
  color: #213953;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
}
.cartao-presente .btn-add-presente,
.presente.center-block .btn-add-presente,
.presente.center-block .btn,
.presente.center-block > .botao,
.presente.center-block > button,
.presente.center-block > a {
  margin-top: auto;
  display: block;
  width: 100%;
  min-height: 50px;
  border-radius: 10px;
  font-family: var(--fonte-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  background-color: var(--cor-primaria);
  border-color: var(--cor-primaria);
  color: var(--cor-clara);
  box-shadow: none;
}
.cartao-presente .btn-add-presente:hover,
.presente.center-block .btn-add-presente:hover,
.presente.center-block .btn:hover,
.presente.center-block > .botao:hover,
.presente.center-block > button:hover,
.presente.center-block > a:hover {
  background-color: var(--cor-primaria);
  border-color: var(--cor-primaria);
  color: var(--cor-clara);
  transform: none;
}
.cartao-presente .btn-add-presente--indisponivel,
.presente.center-block .btn-add-presente--indisponivel {
  opacity: 0.6;
  pointer-events: none;
  background-color: #f3f0ea;
  border-color: #dfd7c8;
  color: #9a8f84;
}
.container-carregar-mais {
  text-align: center;
  margin-top: 2rem;
}
.titulo-confirmacao {
  font-family: var(--fonte-serifa);
  font-size: 2.5rem;
  text-align: center;
  color: var(--cor-primaria);
  margin-bottom: 2rem;
}
.cartao-busca-confirmacao {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: var(--raio-borda);
  box-shadow: var(--sombra-suave);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--cor-borda);
}
.rotulo-confirmacao {
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--cor-primaria);
  font-size: 0.9rem;
  margin-left: 0;
}
.entrada-confirmacao {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  font-family: var(--fonte-sans);
  font-size: 1rem;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  background-color: #fafafa;
}
.entrada-confirmacao:focus {
  outline: none;
  border-color: var(--cor-secundaria);
  box-shadow: 0 0 0 3px rgba(194, 168, 120, 0.1);
  background-color: #fff;
}
#btn-buscar-convite {
  position: relative;
  min-height: 44px;
}
#btn-buscar-convite:disabled {
  cursor: not-allowed;
}
#btn-buscar-convite.is-loading {
  color: transparent !important;
  pointer-events: none;
}
#btn-buscar-convite.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  transform: translate(-50%, -50%);
  animation: spin-btn-busca 0.7s linear infinite;
}
@keyframes spin-btn-busca {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.entrada-erro {
  border-color: #d54c7c;
  box-shadow: 0 0 0 3px rgba(213, 76, 124, 0.2);
  background-color: #fff5f6;
}
.erro-msg {
  color: #d54c7c;
  font-size: 0.85rem;
  text-align: left;
  margin-top: 0.5rem;
  min-height: 1.2rem;
}
.erro-msg.oculto {
  display: none;
}
/* Resultados da Busca (RSVP) */
.resultados-confirmacao {
  list-style: none;
  margin: 1.35rem auto 0;
  width: min(100%, 560px);
  padding: 0;
  text-align: center;
  border-top: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8rem;
}
.resultado-resumo {
  list-style: none;
  margin: 0 auto 0.2rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--cor-primaria);
  background: linear-gradient(180deg, #faf7f2 0%, #f3ece2 100%);
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4d6c1;
  box-shadow:
    0 10px 18px rgba(84, 75, 69, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.item-resultado {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.05rem 1rem 0.95rem 1.1rem;
  border: 1px solid rgba(194, 168, 120, 0.34);
  border-radius: 16px;
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, #fcf9f4 100%);
  text-align: left;
  width: 100%;
  max-width: none;
  box-shadow: 0 12px 24px rgba(84, 75, 69, 0.08);
  animation: aparecerSubindo 0.3s ease forwards;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.item-resultado::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cor-secundaria) 0%, #d8bf93 100%);
}
.item-resultado:hover {
  transform: translateY(-2px);
  border-color: rgba(194, 168, 120, 0.5);
  box-shadow: 0 16px 28px rgba(84, 75, 69, 0.12);
}
.resultado-nome {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--cor-primaria);
  padding-left: 0.35rem;
}
.resultado-telefone {
  font-size: 0.93rem;
  color: var(--cor-texto-clara);
  font-weight: 600;
  padding-left: 0.35rem;
}
.resultado-acao.botao-pequeno {
  width: auto;
  margin-top: 0.2rem;
  margin-left: 0.35rem;
  padding: 0.45rem 0.98rem;
  min-height: 38px;
  border-radius: 999px;
  background: var(--cor-primaria);
  border: 1px solid var(--cor-primaria);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 10px 16px rgba(84, 75, 69, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}
.resultado-acao.botao-pequeno::after {
  content: none;
}
.resultado-acao.botao-pequeno:hover {
  background: #47403a;
  border-color: #47403a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(84, 75, 69, 0.24);
}
.resultado-acao.botao-pequeno:focus-visible {
  outline: 2px solid rgba(84, 75, 69, 0.4);
  outline-offset: 2px;
}
.resultado-acao.botao-pequeno.confirmado {
  background: rgba(40, 167, 69, 0.12);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #1f7a3d;
  font-weight: 600;
  box-shadow: none;
}
.resultado-acao.botao-pequeno.confirmado:hover {
  background: rgba(40, 167, 69, 0.12);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #1f7a3d;
  transform: none;
  box-shadow: none;
}
.resultado-nova {
  list-style: none;
  margin: 0.55rem auto 0;
  text-align: center;
  border-bottom: none;
  width: 100%;
}
.resultado-nova-link {
  color: var(--cor-primaria);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.58rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dfd0b8;
  box-shadow: 0 8px 14px rgba(84, 75, 69, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.resultado-nova-link::after {
  content: none;
}
.resultado-nova-link:hover {
  background: #f9f4ec;
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(84, 75, 69, 0.12);
  border-color: var(--cor-secundaria);
}
.resultado-nova-link:focus-visible {
  outline: 2px solid rgba(84, 75, 69, 0.35);
  outline-offset: 3px;
}
.botao-pequeno {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--cor-secundaria);
  background: transparent;
  color: var(--cor-secundaria);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s;
}
.botao-pequeno:hover {
  background: var(--cor-secundaria);
  color: #fff;
}
.botao-pequeno.confirmado {
  border-color: #28a745;
  color: #28a745;
  cursor: default;
}
.botao-pequeno.confirmado:hover {
  background: transparent;
}
/* ===============================
   Recados
   =============================== */
.titulo-recados {
  font-family: var(--fonte-serifa);
  font-size: 2.4rem;
  text-align: center;
  color: var(--cor-primaria);
}
.cartao-recado {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--cor-borda);
  box-shadow: var(--sombra-suave);
  padding: 2.5rem 2rem;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}
.form-recado {
  display: grid;
  gap: 1.2rem;
}
.grupo-recado label {
  display: block;
  font-weight: 600;
  color: var(--cor-primaria);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.entrada-recado {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid #d9dee6;
  border-radius: 10px;
  font-family: var(--fonte-sans);
  font-size: 1rem;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.entrada-recado:focus {
  outline: none;
  border-color: var(--cor-secundaria);
  box-shadow: 0 0 0 3px rgba(194, 168, 120, 0.15);
}
.entrada-recado--textarea {
  min-height: 120px;
  resize: vertical;
}
.termos-recado {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--cor-texto-clara);
  line-height: 1.4;
  flex-wrap: wrap;
}
.termos-recado input {
  margin-top: 0.2rem;
}
.termos-recado span {
  flex: 1 1 260px;
}
.termos-recado a {
  display: inline-block;
  margin: 0 0.15rem;
}
.termos-recado a {
  color: var(--cor-secundaria);
  text-decoration: none;
  font-weight: 600;
}
.termos-recado a:hover {
  text-decoration: underline;
}
.feedback-recado {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cor-texto-clara);
  min-height: 1.2rem;
  text-align: center;
}
.feedback-recado.erro {
  color: #b04b4b;
}
.feedback-recado.sucesso {
  color: #2f7a4f;
}
.acoes-recado {
  display: flex;
  justify-content: center;
}
.lista-recados {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 1.4rem;
}
.lista-recados.vazia {
  text-align: center;
  color: var(--cor-texto-clara);
}
.recado-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--cor-borda);
  box-shadow: var(--sombra-suave);
  padding: 1.3rem 1.6rem;
  position: relative;
}
.recado-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  background: var(--cor-secundaria);
  border-radius: 8px;
}
.recado-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--fonte-serifa);
  font-size: 1.15rem;
  color: var(--cor-primaria);
}
.recado-item p {
  margin: 0;
  color: var(--cor-texto-clara);
  line-height: 1.6;
}
/* Animacao leve no botao de validar quando usa Enter */
.btn-validar-anim {
  animation: validarPulse 0.35s ease;
}
.btn-validar-anim-cooldown {
  animation: validarShake 0.35s ease;
}
@keyframes validarPulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes validarShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-3px);
  }
  40% {
    transform: translateX(3px);
  }
  60% {
    transform: translateX(-2px);
  }
  80% {
    transform: translateX(2px);
  }
}
/* Feedback e Loader */
.feedback-confirmacao {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: var(--raio-borda);
  font-size: 0.9rem;
}
.feedback-confirmacao.erro {
  background-color: #f8d7da;
  color: #721c24;
}
.feedback-confirmacao.sucesso {
  background-color: #d4edda;
  color: #155724;
}
/* Modal PIX (confirmacao) */
.pix-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  padding: 16px;
  animation: fadeIn 0.3s ease;
 }
#pix-overlay,
#cartao-processando-overlay {
  display: flex;
}
.pix-modal {
  background: #fff;
  max-width: 520px;
  width: 100%;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #f0e6df;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  position: relative;
  font-family: var(--fonte-sans);
  color: #4c4c4c;
  animation: slideUp 0.3s ease;
}
.pix-fechar {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #9a9a9a;
}
.pix-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.pix-header h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #4a4a4a;
}
.pix-header p {
  margin: 0;
  color: #7a7a7a;
  font-size: 0.9rem;
  line-height: 1.35;
}
.pix-header-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e7f6f1;
  color: #1b8f7b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow: inset 0 0 0 1px #d5efe7;
}
.pix-header-icon--logo {
  background: transparent;
  box-shadow: none;
}
.pix-logo-img {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.pix-instrucoes {
  margin: 0 0 18px 18px;
  padding: 0;
  font-size: 0.86rem;
  color: #7a7a7a;
}
.pix-instrucoes li {
  margin-bottom: 8px;
  line-height: 1.35;
}
.pix-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}
.pix-qr-area {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #faf7f4 100%);
  min-height: 180px;
  box-shadow: inset 0 0 0 1px #f4f0ec;
}
.pix-qr {
  width: 176px;
  height: 176px;
  object-fit: contain;
}
.pix-qr-indisponivel {
  color: #999;
  font-size: 0.85rem;
  text-align: center;
}
.pix-resumo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pix-resumo-badge {
  background: #f2f7ff;
  color: #5a6f8f;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.86rem;
  line-height: 1.3;
  border: 1px solid #e6edf6;
}
.pix-resumo-valor {
  font-size: 1rem;
  color: #7a7a7a;
}
.pix-resumo-valor span {
  color: #12a18a;
  font-weight: 700;
}
.pix-copia {
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: #7a7a7a;
}
.pix-copia p {
  margin: 0 0 8px;
}
.pix-copia-linha {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pix-copia-input {
  flex: 1;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  resize: none;
  background: #fff;
  color: #555;
  line-height: 1.3;
}
.pix-copia-input:focus {
  outline: none;
  border-color: #c9e7de;
  box-shadow: 0 0 0 3px rgba(27, 143, 123, 0.12);
}
.pix-copiar-btn {
  border: 1px solid #1b8f7b;
  background: #1b8f7b;
  color: #fff;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
}
.pix-copiar-btn:hover {
  filter: brightness(0.98);
}
.pix-aprovado {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #e9f7ef;
  border: 1px solid #bfe6cc;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.pix-aprovado-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.pix-aprovado-img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.pix-aprovado-texto strong {
  display: block;
  font-size: 1rem;
  color: #204b2a;
  margin-bottom: 4px;
}
.pix-aprovado-texto p {
  margin: 0;
  color: #3c5c45;
}
.pix-aprovado.is-erro {
  background: #fdecee;
  border-color: #f5b5bd;
}
.pix-aprovado.is-erro .pix-aprovado-texto strong {
  color: #8f1d2c;
}
.pix-aprovado.is-erro .pix-aprovado-texto p {
  color: #9b2f3d;
}
.pix-aprovado-hora {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #4b6b55;
}
.pix-rodape {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #8a8a8a;
  text-align: center;
}
.pix-seguro {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #eee;
  padding-top: 10px;
  font-size: 0.75rem;
  color: #9a9a9a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  width: 100%;
}
@media (max-width: 520px) {
  .pix-modal {
    padding: 18px;
  }
  .pix-grid {
    grid-template-columns: 1fr;
  }
  .pix-copia-linha {
    flex-direction: column;
  }
  .pix-copiar-btn {
    width: 100%;
    padding: 10px 14px;
  }
}
.feedback-confirmacao.aviso {
  background-color: #fff3cd;
  color: #856404;
}
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--cor-secundaria);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 1rem auto;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
