.components-toolbar .components-button.is-pressed.dxp-ai-experiment-button {
  &::before {
    background-image: linear-gradient(135deg, rgb(75, 28, 221) 0%, rgb(228, 21, 160) 75%, rgb(231, 28, 28) 100%);
    transition: all 200ms ease-in-out;
  }

  svg {
    transition: all 200ms ease-in-out;

    path {
      fill: white !important;
    }
  }
}

.dxp-ai-dropdown-controls {
  animation-duration: 0.2s;
  animation-iteration-count: 1;
  animation-name: fadeInOpacity;
  animation-timing-function: ease-in-out;
  background: white;
  border: 1px solid black;
  border-radius: 4px;
  display: flex;
  height: auto;
  left: 0;
  min-height: 240px;
  min-width: 590px;

  // transition effects
  opacity: 1;
  padding: 15px;
  position: absolute;
  top: 125%;
  width: 100%;
  z-index: 999999;

  & > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
  }

  & .quick-actions-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    height: 100%;
  }

  & .prompt-wrapper {
    height: 100%;
    margin-top: 20px;

    & input {
      width: 70%;
    }

    & button {
      background: black;
      border: none;
      border-radius: 4px;
      color: white;
      height: 30px;
      padding: 5px 20px;
    }

    & textarea {
      margin-right: 25px;
      min-height: 100px;
      min-width: 250px;
      padding: 10px;
      vertical-align: middle;
      width: 75%;
    }
  }

  & .quick-action {
    align-content: center;
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    height: 35px;
    justify-content: center;
    transition: all 200ms ease-in-out;

    & .components-dropdown-menu__toggle {
      height: auto;
    }
  }

  & .quick-action-undo-redo {
    align-content: center;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    height: 32px;
    justify-content: center;
    margin-top: 10px;
    transition: all 200ms ease-in-out;

    &:hover,
    &:focus {
      box-shadow: none !important;
    }
  }

  & .quick-action-spinner {
    height: 25px;
    left: 82%;
    position: absolute;
    top: 70%;
    width: 25px;
    z-index: 99;
  }
}

@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.loader {
  background-color: #eceaea;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50px;
  filter: alpha(opacity=40);
  height: 100%;
  opacity: 0.4;
  position: absolute;
  right: 0px;
  top: 0px;
  width: 100%;
  z-index: 10000000;
}

.components-popover.block-editor-block-popover {
  z-index: 35;
}
