//
//  Sweetalert2
//

.swal2-container {
  .swal2-title {
    font-size: 20px;
    font-weight: $font-weight-medium;
  }
  .swal2-html-container {
    color: var(--#{$prefix}body-color);
  }
}

.swal2-modal {
  font-size: 14px;
}

.swal2-icon {
  &.swal2-question {
    border-color: $info;
    color: $info;
  }
  &.swal2-success {
    [class^='swal2-success-line'] {
      background-color: $success;
    }

    .swal2-success-ring {
      border-color: rgba($success, 0.3);
    }
  }
  &.swal2-warning {
    border-color: $warning;
    color: $warning;
  }
}

.swal2-styled {
  &:focus {
    box-shadow: none;
  }
}

.swal2-progress-steps {
  .swal2-progress-step {
    background: $primary;
    &.swal2-active-progress-step {
      background: $primary;
      & ~ .swal2-progress-step,
      & ~ .swal2-progress-step-line {
        background: rgba($primary, 0.3);
      }
    }
  }

  .swal2-progress-step-line {
    background: $primary;
  }
}

.swal2-loader {
  border-color: $primary transparent $primary transparent;
}
.swal2-popup {
  background: var(--#{$prefix}secondary-bg);
}

.swal2-title,
.swal2-html-container {
  color: var(--#{$prefix}emphasis-color);
}

.swal2-file,
.swal2-input,
.swal2-textarea {
  border-color: var(--#{$prefix}border-color);
  color: var(--#{$prefix}body-color);
  &:focus {
    box-shadow: none;
    border-color: var(--#{$prefix}border-color);
  }
}

div:where(.swal2-container) div:where(.swal2-popup) {
  color: var(--#{$prefix}secondary-color);
}
