/* Overlay com transição */
#overlay.custom-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
#overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Modal com transição */
#modal.custom-modal {
  position: fixed;

  bottom: 0;
  left: 50%;
  width: 320px;

  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
              0 8px 10px -6px rgb(0 0 0 / 0.1);
  padding: 1.5rem;

  text-align: center;
  background-color: white; color: black;

  z-index: 1055;
  opacity: 0;
  visibility: hidden;

  transform: translate(-50%, 100%) scale(0.95);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
#modal.show {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  visibility: visible;
}

/* Botão abrir modal */
#openModal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; 
  height: 100%;
  background-color: #1E6091;
  color: white;    
  border: 1px solid #cccccc2b;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  gap: 8px;
  transition: background-color 0.2s ease;
}
#openModal:hover {
  background-color: #15507b;
}
