[data-confirmar-volta] {
  cursor: pointer;
}

[data-confirmar-volta]:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
  border-radius: 6px;
}

body.retorno-modal-aberto {
  overflow: hidden;
}

.retorno-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 20, 16, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.retorno-modal-overlay[hidden] {
  display: none;
}

.retorno-modal-caixa {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #ffffff;
  color: #15352e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  text-align: center;
  animation: retornoModalEntrada 160ms ease-out;
}

.retorno-modal-icone {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e8f4ef;
  color: #08755b;
  font-size: 28px;
  font-weight: 800;
}

.retorno-modal-caixa h2 {
  margin: 0 0 8px;
  color: #0b4a3a;
  font: 700 22px/1.25 Arial, Helvetica, sans-serif;
}

.retorno-modal-caixa p {
  margin: 0;
  color: #50655f;
  font: 400 16px/1.5 Arial, Helvetica, sans-serif;
}

.retorno-modal-acoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.retorno-modal-botao {
  min-height: 46px;
  padding: 11px 18px;
  border: 0;
  border-radius: 10px;
  font: 700 15px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.retorno-modal-botao:hover {
  transform: translateY(-1px);
}

.retorno-modal-botao:focus-visible {
  outline: 3px solid rgba(8, 117, 91, 0.3);
  outline-offset: 2px;
}

.retorno-modal-sim {
  background: #08755b;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(8, 117, 91, 0.24);
}

.retorno-modal-sim:hover {
  background: #075e4a;
}

.retorno-modal-nao {
  background: #edf2f0;
  color: #23453d;
}

.retorno-modal-nao:hover {
  background: #e2eae7;
}

@keyframes retornoModalEntrada {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .retorno-modal-caixa {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .retorno-modal-caixa,
  .retorno-modal-botao {
    animation: none;
    transition: none;
  }
}
