/* ======================== MODAL DEFAULT STYLES ======================== */

/* modal container */
.modal-container {
  position: absolute;
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease-in-out;
}

.modal-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(1px);
  -moz-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  transition: all 0.5s ease-in-out;
  z-index: 998;
  /* Garante que fique acima do conteúdo da página, mas abaixo da modal */
}

.modal-container.active {
  display: flex;
}

/* modal window */
.modal {
  position: relative;
  display: block;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  height: 90%;
  transition: all 0.3s ease-in-out;
  background-color: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  transition: 0.2s ease-in-out;
  z-index: auto;
}

.modal-header {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: none;
}

.modal-title {
  display: block;
  margin: 0;
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
  color: #323232;
  text-align: center;
}

.modal-description {
  display: block;
  margin: 0;
  width: 100%;
  font-size: 12px;
  font-weight: 300;
  color: #000000;
  text-align: center;
}

.modal-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: none;
  overflow: auto;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
}

.modal-content .modal-content-description {
  margin: 0;
  padding: 20px 70px;
  font-size: 12px;
  font-weight: 400;
}

.modal-buttons {
  margin: 10px 0 0 0;
}

/* MODAL */
.modal-window-container {
  display: none;
  transition: 0.2s ease-in-out;
}

.modal-window-container.active {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  padding: 0;
  z-index: 998;
}

.modal-content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 1024px;
  max-height: 95%;
  padding: 0;
  background-color: var(--panel-color);
  border-radius: 20px;
  overflow: auto;
  -webkit-box-shadow: 10px 10px 98px -60px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 10px 10px 98px -60px rgba(0, 0, 0, 0.75);
  box-shadow: 10px 10px 98px -60px rgba(0, 0, 0, 0.75);
  z-index: 999;
}

.modal-content-wrapper.fixed_dimensions {
  width: 95%;
  height: 95%;
}

.modal-cms {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0 10px;
  width: 100%;
  max-width: 100%;
  max-height: calc(95vh - 80px);
  background-color: #ffffff;
}

.modal-header {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 10px 20px;
  border-bottom: none;
}

.modal-header.no-content {
  padding: 20px;
}

.modal-header:not(.no-content) {
  border-bottom: 1px solid #d5d5d5;
}

.modal-description {
  display: block;
  margin: 10px 0 0 0;
  width: 100%;
  font-size: 15px;
  line-height: normal;
  font-weight: 400;
  color: #000000;
  text-align: center;
}

.modal-buttons-container.visible {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 3px 20px;
  background-color: #ffffff;
  border-top: 1px solid #d5d5d5;
}

.modal-buttons-container.visible button {
  margin: 3px;
}