.modal {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  height: auto;
  overflow-y: auto;          /* Scroll vertical se conteúdo for maior */
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1.3rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal h4 {
  font-size: 1.15rem;
  margin: 0;
  font-weight: 700;
}

#modalDesc {
  text-align: justify;
  margin: 0.5em 0 1em 0;
}

.modal b {
  font-size: 1em;
}

.modal .flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 0.7em;
}

.modal img {
  border: 1px solid #000;
  width: 140px;
  height: 140px;
}

.modal .btn-close {
  cursor: pointer;
  transform: none;
  padding: 0.2rem 0.6rem;
  background: #eee;
  border-radius: 2px;
  border: none;
  font-size: 1.1em;
  font-weight: normal;
  margin-left: 1em;
}

.btn-custom-secundary {
      background: #343a40;;
      color: #ffffff;
  }

.btn-custom-secundary:hover {
  background-color: #343a50; !important;
  color: #ffffff;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1040;
}

.hidden {
  display: none !important;
}
