/* Background overlay */
.bid-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 5000;
}

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

.bid-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* Modal box */
.bid-modal-content {
  position: relative;
  display: inline-flex;
  border-radius: 16px;
  background: #fff;
  padding: 32px;
  align-items: flex-start;
  gap: 32px;
  width: 90%;
  max-width: 494px;
  z-index: 20;
  -webkit-animation: fadeIn 0.25s ease;
  animation: fadeIn 0.25s ease;
}

/* Description */
.modal-description {
  color: var(--black1);
  text-align: center;
}

.bid-modal-title-description-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Checkboxes */
.modal-check a {
  color: var(--blue1);
}

.modal-check a:hover {
  text-decoration: underline;
}

/* hide native checkbox */
.modal-check input {
  display: none;
}

/* custom checkbox */
.modal-check .checkmark {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--toggleGrey);
  border-radius: 2px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

/* when checked */
.modal-check input:checked + .checkmark {
  background-color: var(--blue1);
  border-color: transparent;
}

.modal-check .checkmark svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.15s ease;
  transform: scale(1.07);
  transform-origin: center;
}

.modal-check input:checked + .checkmark svg {
  opacity: 1;
}

.modal-check .checkmark:hover {
  border-color: var(--grey1);
}

.modal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.bid-modal-checkbox-btn-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.bid-modal-content label:last-child {
  margin-bottom: 0px;
}
/* modal btns */
.bid-modal-btns-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bid-modal-btns-wrapper .btn-component {
  color: var(--white1);
}

.bid-modal-btns-wrapper .btn-component:disabled {
  background: var(--border1, #e6edf6);
  color: var(--grey1);
  cursor: not-allowed;
}

/* Cancel */
.modal-cancel {
  background: transparent;
  border: none;
  color: var(--grey1);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.modal-cancel:hover,
.modal-cancel svg:hover {
  text-decoration: underline;
}

.modal-cancel svg {
  width: 18px;
  height: 18px;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 700px) {
  .bid-modal-content {
    padding: 24px 20px;
    gap: 24px;
  }
  /* Description */
  .modal-description {
    text-align: left;
  }
}
