/* custom-modal */

.custom-modal {
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  padding: 15px;
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(20, 21, 21, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1031;
  overflow-y: auto;
}

@media (min-width: 560px) {
  .custom-modal {
    padding: 30px;
  }
}

.custom-modal.show {
  display: flex;
}

.custom-modal__body {
  max-width: 400px;
  min-width: 320px;
  width: 100%;
  padding: 24px;
  position: relative;
  background-color: var(--bg-primary-color);
  box-shadow: 0px 1px 35px 0px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
}

.custom-modal__body > h2,
.custom-modal__title {
  margin-right: 48px;
  font-weight: 600;
  font-size: 16px;
}

.custom-modal__title {
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .custom-modal__body > h2,
  .custom-modal__title {
    font-size: 18px;
  }
}

.custom-modal__subtitle {
  font-weight: 600;
  font-size: 14px;
}

@media (min-width: 768px) {
  .custom-modal__subtitle {
    font-size: 16px;
  }
}

.custom-modal__button-close {
  width: 24px;
  height: 24px;
  padding: 0;
  position: absolute;
  top: 24px;
  right: 24px;
  background-color: transparent;
}

.custom-modal__button-close > img {
  width: 100%;
  object-fit: cover;
}

/* add-modal */

.add-modal__form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.add-modal__form > .form-group {
  width: 100%;
  margin: 0;
}

.add-modal__form > .form-group > .form-control {
  padding: 12px 24px;
}

.add-modal__form > .form-group:last-child {
  display: flex;
  gap: 16px;
}

.add-modal__form > .form-group:last-child > .btn {
  width: 50%;
}
