.neuron-popup {
  &__display-settings {
    text-align: left;

    .elementor-control-type-section {
      display: none;
    }

    &__group-toggle {
      flex-grow: 1;
    }
  }

  &__display-settings_controls_group {
    display: flex;
    align-items: center;
    height: 60px;
    background-color: #fff;
    margin-bottom: 10px;
    padding-right: 20px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
    border-radius: 3px;

    &:not(.elementor-active) {
      .elementor-control:nth-child(2) {
        h3 {
          color: #a4afb7;
        }
      }
    }

    &.elementor-active {
      span.elementor-switch-label {
        background: #39b54a !important;
      }
    }
  }

  &__display-settings_controls_group__icon {
    width: 60px;
    height: 60px;
    border-right: 1px solid #e6e9ec;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    img {
      width: 35px;
    }
  }

  &__display-settings_controls_group {
    .elementor-control {
      padding: 0;
      margin: 0;

      &:nth-child(2) {
        width: 230px;

        h3 {
          font-size: 14px;
          font-weight: 400;
        }
      }

      &:not(:last-child) {
        margin-left: 25px;
      }

      &.elementor-control-type-switcher {
        label.elementor-switch {
          width: 40px;

          .elementor-switch-label {
            background: #a4afb7;
            box-shadow: none;

            &:before,
            &:after {
              display: none;
            }
          }
        }
      }
    }

    .elementor-control-type-slider {
      .elementor-control-input-wrapper {
        display: flex;
      }

      .elementor-slider-input {
        width: 45%;
      }
    }

    .elementor-control-type-switcher {
      .elementor-control-field {
        justify-content: flex-end;
      }
    }
  }
}

#neuron-popup-timing__controls {
  .select2-selection {
    min-height: 27px;

    &__rendered {
      line-height: 1;
    }

    &__choice {
      font-size: 10px;
    }
  }
}

#neuron-popup__timing-controls-group {
  &--url {
    .elementor-control-url_url {
      .elementor-control-input-wrapper {
        width: 200px;
      }
    }
  }

  &--sources {
    .elementor-control-sources_sources {
      .elementor-control-input-wrapper {
        width: 300px;
      }
    }
  }

  &--devices
    .elementor-control-devices_devices
    .elementor-control-input-wrapper {
    width: 200px;
  }

  &--logged_in {
    .elementor-control-logged_in_roles {
      .elementor-control-input-wrapper {
        width: 195px;
      }
    }
  }
}

#neuron-popup-settings-introduction {
  position: absolute;
  z-index: 1;
  background-color: #fff;
  color: #555;
  box-shadow: -4px -3px 20px 1px rgba(0, 0, 0, 0.07);
  height: 100px;
  width: 260px;
  padding: 20px 20px;
  border-radius: 3px;

  &:before {
    content: "";
    position: absolute;
    border: solid transparent;
    border-width: 5px 7px;
    border-right-color: #fff;
    left: 4px;
    bottom: -12px;
    transform: rotate(270deg);
  }

  .dialog-close-button {
    top: 5px;
    right: 20px;
    font-size: 13px;
  }

  .dialog-header {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
  }
  .dialog-message {
    margin-top: 10px;
  }
}

.elementor-editor-popup {
  .elementor-tab-control-settings {
    a {
      &:before {
        content: "\e922";
      }
    }
  }
}

@media (prefers-color-scheme: dark) {
  #neuron-publish {
    &__tabs {
      background-color: transparent;
    }
  }
  .neuron-publish__tab {
    color: #fff;
    &.elementor-active {
      background: transparent;
    }
  }

  .neuron-popup {
    &__display-settings_controls_group {
      background-color: transparent;
    }
  }

  #elementor-theme-builder-conditions {
    .elementor-control {
      background-color: transparent;
    }
  }

  #elementor-theme-builder-conditions .elementor-repeater-tool-remove {
    background: transparent;
    box-shadow: none;
  }

  #elementor-theme-builder-conditions {
    .elementor-control-type[data-elementor-condition-type="exclude"] {
      select {
        background-color: #d30c5c;
      }
    }
    .elementor-control-type[data-elementor-condition-type="include"] {
      select {
        background-color: #39b54a;
      }
    }
  }
}
