.compatible-motors-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1em;
}

.compatible-motor-item {
  background-color: white;
  color: #374047 !important;
  text-align: center;
 /* Sharp bottom-right corner */
  padding: 0px;
  padding-top: 0;
  font-size: 14px;
  transform: scale(1,1);
  transition: transform .2s ease 0s;
  width: 80px;
}

.compatible-motor-item:hover {
    color: var(--color-primary) !important;
    transform: scale(1.05,1.05);
    transition: transform .2s ease 0s;
  }


:root {
  --color-motor: var(--color-primary);
}

.compatible-motor-item.power-range-05 {
  --color-motor: var(--color-power-range-05);
}
.compatible-motor-item.power-range-07 {
  --color-motor: var(--color-power-range-07);
}
.compatible-motor-item.power-range-08 {
  --color-motor: var(--color-power-range-08);
}
.compatible-motor-item.power-range-10 {
  --color-motor: var(--color-power-range-10);
}
.compatible-motor-item.power-range-20 {
  --color-motor: var(--color-power-range-20);
}
.compatible-motor-item.power-range-25 {
  --color-motor: var(--color-power-range-25);
}
.compatible-motor-item.power-range-30 {
  --color-motor: var(--color-power-range-30);
}
.compatible-motor-item{
  background: transparent;
}
.compatible-motor-item .inner{
  clip-path: polygon(88% 0, 100% 22%, 100% 100%, 0 100%, 0 0);
  padding: 2px;
  padding-bottom: 2px;
  background: #f4f4f4;
  transition: background-color .33s ease 0s;
}
.compatible-motor-item:hover .inner{
  background: var(--color-primary);
  transition: background-color .33s ease 0s;
}
.compatible-motor-item p{
  margin: 0;
  padding: 4px;
  background: white;
  clip-path: polygon(88% 0, 100% 30%, 100% 100%, 0 100%, 0 0);
}

.compatible-motor-item .bottom-border{
  width: 100%;
  height: 8px;
  display: flex;
  justify-content: space-between;
  gap: 0px;
}

.blue-part{
  border-radius: 0px;
  background-color:var(--color-primary);
  width: 66.67%;
  height: 100%;
}

.power-range-part{
  border-radius: 0px;
  flex-grow: 1;
  height: 100%;
  background-color: var(--color-motor);
}
.compatible-motor-item .blue-part{
  transition: width .33s ease 0s;
}
.compatible-motor-item:hover .blue-part{
  width: 0;
  transition: width .33s ease 0s;
}