

:host {
  position: absolute;
  display: block;
  height: 50px;
  top: 64px;
  left: 50%;
  width: 150px;
  transform: translateX(-50%);
  &.custom-menu {
    top: 90px;
    left: 80px;
    height: auto;
    transform: translateX(0);
    .toolbar-wrapper {
      column-gap: 10px;
    }
    .toolbar-button {
      cursor: pointer;
      display: flex;
      align-items: center;

      .instant-edit-button {
        display: flex;
        align-items: center;

        ::ng-deep co-icon {
          margin-right: 7px;
          border: none;
          width: 16px;
          height: 16px;
          border-radius: 10px;

          svg g {
            polygon {
              fill: black;
            }
            path {
              fill: black;
            }
          }
        }
      }

      button {
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.1);
        height: 30px;
        width: 30px;
        .mat-icon {
          height: 30px;
          width: 30px;
        }
      }
    }
    .toolbar-label {
      font-size: 12px;
      font-weight: bold;
      margin-right: 22px;
    }
    .edit-menu-wrapper {
      left: 0;
      transform: translateX(0);
    }
  }

  @media screen and (max-width: 768px) {
    &.custom-menu {
      top: 18px;
      left: 5%;
    }
  }
}

.toolbar-wrapper {
  display: flex;
  align-items: center;
  gap: 2px;
}
.toolbar-wrapper button:not(:last-child) {
  margin-right: 5px;
}

/* TODO(mdc-migration): The following rule targets internal classes of button that may no longer apply for the MDC version. */
:host ::ng-deep .mat-mdc-mini-fab .mat-button-wrapper {
  padding: 0;
  display: flex;
  line-height: 0px;
  align-items: center;
  justify-content: center;
}
:host ::ng-deep .mat-mdc-unelevated-button.mat-accent,
:host ::ng-deep .mat-mdc-raised-button.mat-accent,
:host ::ng-deep .mat-mdc-fab.mat-accent,
:host ::ng-deep .mat-mdc-mini-fab.mat-accent {
  background-color: #17253391;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  co-icon {
    width: 16px;
    height: 16px;
    svg {
      fill: #FFF;
    }
  }
}

:host ::ng-deep .mat.mat-mdc-mini-fab {
  margin-right: 200px;
}

:host ::ng-deep .mat-icon {
  height: 40px;
  width: 40px;
}

.element-pointer {
  pointer-events: none;
  position: absolute;
  width: 0px;
  border-left: 2px dashed #2c67ff;
  transform-origin: top center;
  top: 45px;
  left: 50%;
  margin-left: 20px;
}

.edit-menu-wrapper {
  position: absolute;
  margin-top: 10px;
  min-width: 175px;
  left: 25px;
  transform: translateX(-50%);
  overflow: hidden;
}
.edit-menu-wrapper .edit-menu:not(:last-child) {
  margin-bottom: 5px;
}
.edit-menu {
  font-size: 12px;
  background: white;
  color: #41403D;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 5px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  justify-content: space-between;
  span {
    margin-right: 50px;
  }
  mat-icon {
    width: 20px;
    height: 20px;
  }
}
